Title: The performance gap between node16 and node21 changes as the n of the benchmark changes · Issue #50571 · nodejs/node · GitHub
Open Graph Title: The performance gap between node16 and node21 changes as the n of the benchmark changes · Issue #50571 · nodejs/node
X Title: The performance gap between node16 and node21 changes as the n of the benchmark changes · Issue #50571 · nodejs/node
Description: Version node 16.x and node 21.1 Platform Linux wpe-icx 6.2.0-26-generic #26~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Jul 13 16:27:29 UTC 2 x86_64 x86_64 x86_64 GNU/Linux Subsystem No response What steps will reproduce the bug? I tested nod...
Open Graph Description: Version node 16.x and node 21.1 Platform Linux wpe-icx 6.2.0-26-generic #26~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Jul 13 16:27:29 UTC 2 x86_64 x86_64 x86_64 GNU/Linux Subsystem No response What st...
X Description: Version node 16.x and node 21.1 Platform Linux wpe-icx 6.2.0-26-generic #26~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Jul 13 16:27:29 UTC 2 x86_64 x86_64 x86_64 GNU/Linux Subsystem No response What st...
Opengraph URL: https://github.com/nodejs/node/issues/50571
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"The performance gap between node16 and node21 changes as the n of the benchmark changes","articleBody":"### Version\r\n\r\nnode 16.x and node 21.1\r\n\r\n### Platform\r\n\r\nLinux wpe-icx 6.2.0-26-generic #26~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Jul 13 16:27:29 UTC 2 x86_64 x86_64 x86_64 GNU/Linux\r\n\r\n### Subsystem\r\n\r\n_No response_\r\n\r\n### What steps will reproduce the bug?\r\n\r\nI tested node-benchmark `es/string-concatenations.js` with `node 21.1` and `node 16.x`.\r\n\r\nWhen `n` is the default `1e3`, the score difference between the two version reaches `50%`. \r\n\r\nBut when `n` is set to `5000` or `10000` or other larger numbers, there is no performance gap between the two versions. \r\n\r\n### How often does it reproduce? Is there a required condition?\r\n\r\n_No response_\r\n\r\n### What is the expected behavior? Why is that the expected behavior?\r\n\r\nExpected\r\n- When I adjust n to 5e3 or 1e4, the score difference between the two versions should remain around 50%.\r\n\r\nReason\r\n- I think the number of `n` has not changed much, and the performance gap between `node 16.x` and `node 21.1` should not change so much too.\r\n\r\n### What do you see instead?\r\n\r\n- n = 1e3 (default number)\r\n```\r\nNODE 16.x es/string-concatenations.js mode=\"multi-join\" n=1000: 2,275,198.9661495895\r\nNODE 21.1 es/string-concatenations.js mode=\"multi-join\" n=1000: 975,159.7555469525\r\n```\r\n- n = 5e3\r\n```\r\nNODE 16.x es/string-concatenations.js mode=\"multi-join\" n=5000: 1,972,248.1025001006\r\nNODE 21.1 es/string-concatenations.js mode=\"multi-join\" n=5000: 1,983,125.977681107\r\n```\r\n- n = 1e4\r\n```\r\nNODE 16.x es/string-concatenations.js mode=\"multi-join\" n=10000: 2,678,989.303063612\r\nNODE 21.1 es/string-concatenations.js mode=\"multi-join\" n=10000: 2,739,590.924283186\r\n```\r\n\r\n### Additional information\r\n\r\nI'm not sure whether this problem can be counted as an issue. Or is this a pre-existing problem?","author":{"url":"https://github.com/Septa2112","@type":"Person","name":"Septa2112"},"datePublished":"2023-11-06T08:34:01.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":8},"url":"https://github.com/50571/node/issues/50571"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:bbbf1092-5f9f-7277-0eba-9b105a0b6ed5 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C3A4:2D2FEF:1600A3E:1D88364:6969A457 |
| html-safe-nonce | fe400e03732acb8c2b28acd4bcfdf254443059c288a91873514ecafcb21a44b2 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDM0E0OjJEMkZFRjoxNjAwQTNFOjFEODgzNjQ6Njk2OUE0NTciLCJ2aXNpdG9yX2lkIjoiNTkwMjAxMjY4MjcwODA1NSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 0c141e3bd8199bd5c7f2f03e31f90876fd73f4ea0ecd3d791de2817a202f373a |
| hovercard-subject-tag | issue:1978577906 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/nodejs/node/50571/issue_layout |
| twitter:image | https://opengraph.githubassets.com/1386374ac4b058aa5cfcdf4c77448c1b0de4263aba9f4454ea3d4b02ab5ad016/nodejs/node/issues/50571 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/1386374ac4b058aa5cfcdf4c77448c1b0de4263aba9f4454ea3d4b02ab5ad016/nodejs/node/issues/50571 |
| og:image:alt | Version node 16.x and node 21.1 Platform Linux wpe-icx 6.2.0-26-generic #26~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Jul 13 16:27:29 UTC 2 x86_64 x86_64 x86_64 GNU/Linux Subsystem No response What st... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | Septa2112 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 24c4c97a2d520cb286b35e1a4c22d7a4df3c26a2fa28dd7cdf0e65db327b4de7 |
| turbo-cache-control | no-preview |
| go-import | github.com/nodejs/node git https://github.com/nodejs/node.git |
| octolytics-dimension-user_id | 9950313 |
| octolytics-dimension-user_login | nodejs |
| octolytics-dimension-repository_id | 27193779 |
| octolytics-dimension-repository_nwo | nodejs/node |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 27193779 |
| octolytics-dimension-repository_network_root_nwo | nodejs/node |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 124667f43168afb6c9c03b7c02eb5b1d2e1be3d9 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width