Title: lib: include ESM loader in the built-in snapshot by joyeecheung · Pull Request #61769 · nodejs/node · GitHub
Open Graph Title: lib: include ESM loader in the built-in snapshot by joyeecheung · Pull Request #61769 · nodejs/node
X Title: lib: include ESM loader in the built-in snapshot by joyeecheung · Pull Request #61769 · nodejs/node
Description: Benchmark number from an ARM64 Linux machine: empty/minimal CJS startup is now slightly slower in worker but other metrics get a slight boost (because they all incur ESM loader initialization). In reality ESM loading is likely to happen at some point in the lifetime of an application especially with the growing adoption of ESM and require(esm), so real-world applications that are more than just an empty script should get a bit of speed up from being able to just deserialize the ESM loader instead of initializing it from scrach. confidence improvement accuracy (*) (**) (***) misc/startup-core.js n=30 mode='process' script='benchmark/fixtures/empty.mjs' *** 6.06 % ±0.60% ±0.80% ±1.04% misc/startup-core.js n=30 mode='process' script='benchmark/fixtures/import-builtins.mjs' *** 2.40 % ±0.30% ±0.40% ±0.52% misc/startup-core.js n=30 mode='process' script='benchmark/fixtures/require-builtins.js' *** 0.57 % ±0.32% ±0.42% ±0.55% misc/startup-core.js n=30 mode='process' script='test/fixtures/semicolon.js' -0.22 % ±0.56% ±0.75% ±0.97% misc/startup-core.js n=30 mode='worker' script='benchmark/fixtures/empty.mjs' *** 1.89 % ±0.26% ±0.34% ±0.44% misc/startup-core.js n=30 mode='worker' script='benchmark/fixtures/import-builtins.mjs' *** 0.74 % ±0.28% ±0.38% ±0.49% misc/startup-core.js n=30 mode='worker' script='benchmark/fixtures/require-builtins.js' *** -2.20 % ±0.26% ±0.34% ±0.44% misc/startup-core.js n=30 mode='worker' script='test/fixtures/semicolon.js' *** -1.95 % ±0.30% ±0.40% ±0.52%
Open Graph Description: Benchmark number from an ARM64 Linux machine: empty/minimal CJS startup is now slightly slower in worker but other metrics get a slight boost (because they all incur ESM loader initialization). In ...
X Description: Benchmark number from an ARM64 Linux machine: empty/minimal CJS startup is now slightly slower in worker but other metrics get a slight boost (because they all incur ESM loader initialization). In ...
Opengraph URL: https://github.com/nodejs/node/pull/61769
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:d72b66f8-7533-3885-466c-c8dbdba1b3d8 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | BC1A:115683:16C23D1:1ECAE73:6A4C8A87 |
| html-safe-nonce | b94a56e8f9efb272fb29c3d095f65030eeba353bed5c068a90329cc8148d9465 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCQzFBOjExNTY4MzoxNkMyM0QxOjFFQ0FFNzM6NkE0QzhBODciLCJ2aXNpdG9yX2lkIjoiMjAzMTAzMTM4Mjg1OTE0NzU5IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 0f8c222d363f4bf62e5a7c7f2d74ced43dd461adf6f71421a1c994a3bef4b700 |
| hovercard-subject-tag | pull_request:3270035164 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,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/nodejs/node/pull/61769/files |
| twitter:image | https://avatars.githubusercontent.com/u/4299420?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/4299420?s=400&v=4 |
| og:image:alt | Benchmark number from an ARM64 Linux machine: empty/minimal CJS startup is now slightly slower in worker but other metrics get a slight boost (because they all incur ESM loader initialization). In ... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 3d11bb817438277de2a940854450e83a7d32b6aeb5014e9e6b00a6423900251c |
| turbo-cache-control | no-preview |
| diff-view | unified |
| 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 full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 7a2dede45637df6b92ddcfe2a557e67d4b5854ae |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width