René's URL Explorer Experiment


Title: esm: use wasm version of cjs-module-lexer by joyeecheung · Pull Request #60663 · nodejs/node · GitHub

Open Graph Title: esm: use wasm version of cjs-module-lexer by joyeecheung · Pull Request #60663 · nodejs/node

X Title: esm: use wasm version of cjs-module-lexer by joyeecheung · Pull Request #60663 · nodejs/node

Description: benchmark: use typescript for import cjs benchmark The original benchmark uses a not very realistic fixture (it has a huge try-catch block that would throw on the first line and then export at the end, hardly representative of real-world code). Also, it measures the entire import including evaluation, not just parsing. This updates the name to import-cjs to be more accurate, and use the typescript.js as the fixture which has been reported to be slow to import, leading users to use require() to work around the peformance impact. It splits the measurement into two different types: parsing CJS for the first time (where the overhead of loading the lexer makes a difference) and parsing CJS after the lexer has been loaded. esm: use wasm version of cjs-module-lexer The synchronous version has been available since 1.4.0. Refs: #59913 confidence improvement accuracy (*) (**) (***) esm/import-cjs.js type='cold' *** 22.09 % ±3.65% ±5.00% ±6.81% esm/import-cjs.js type='warm' *** -3.93 % ±1.69% ±2.29% ±3.06%

Open Graph Description: benchmark: use typescript for import cjs benchmark The original benchmark uses a not very realistic fixture (it has a huge try-catch block that would throw on the first line and then export at the ...

X Description: benchmark: use typescript for import cjs benchmark The original benchmark uses a not very realistic fixture (it has a huge try-catch block that would throw on the first line and then export at the ...

Opengraph URL: https://github.com/nodejs/node/pull/60663

X: @github

direct link

Domain: github.com

route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:8baba256-e56f-dc45-c65f-d4a834f914d8
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idA906:1E79:4FCCB0:735D66:6A4CE6A8
html-safe-noncec452a8ae537ca344875fef51364280a9db1c85586ba035109e87102862cbfe77
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBOTA2OjFFNzk6NEZDQ0IwOjczNUQ2Njo2QTRDRTZBOCIsInZpc2l0b3JfaWQiOiI1OTAxNzMwNTI3NjEwNDYzOTEyIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac2fcffb861f01591b4adc38b9c1b03cfc557aed266eec47a7b12360f4cc59cce1
hovercard-subject-tagpull_request:2995155746
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/nodejs/node/pull/60663/files
twitter:imagehttps://avatars.githubusercontent.com/u/4299420?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/4299420?s=400&v=4
og:image:altbenchmark: use typescript for import cjs benchmark The original benchmark uses a not very realistic fixture (it has a huge try-catch block that would throw on the first line and then export at the ...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None299b43bca6e02ad35197ffeba30d2466846d5fb02ab96fbced5b5e6cec589fb8
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/nodejs/node git https://github.com/nodejs/node.git
octolytics-dimension-user_id9950313
octolytics-dimension-user_loginnodejs
octolytics-dimension-repository_id27193779
octolytics-dimension-repository_nwonodejs/node
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id27193779
octolytics-dimension-repository_network_root_nwonodejs/node
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releasec5a57f04eeb310f57c73fd6d751d957e2ca27ed2
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/nodejs/node/pull/60663/files#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fnodejs%2Fnode%2Fpull%2F60663%2Ffiles
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fnodejs%2Fnode%2Fpull%2F60663%2Ffiles
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=nodejs%2Fnode
Reloadhttps://github.com/nodejs/node/pull/60663/files
Reloadhttps://github.com/nodejs/node/pull/60663/files
Reloadhttps://github.com/nodejs/node/pull/60663/files
Please reload this pagehttps://github.com/nodejs/node/pull/60663/files
nodejs https://github.com/nodejs
nodehttps://github.com/nodejs/node
Please reload this pagehttps://github.com/nodejs/node/pull/60663/files
Notifications https://github.com/login?return_to=%2Fnodejs%2Fnode
Fork 36k https://github.com/login?return_to=%2Fnodejs%2Fnode
Star 118k https://github.com/login?return_to=%2Fnodejs%2Fnode
Code https://github.com/nodejs/node
Issues 1.4k https://github.com/nodejs/node/issues
Pull requests 961 https://github.com/nodejs/node/pulls
Actions https://github.com/nodejs/node/actions
Projects https://github.com/nodejs/node/projects
Security and quality 0 https://github.com/nodejs/node/security
Insights https://github.com/nodejs/node/pulse
Code https://github.com/nodejs/node
Issues https://github.com/nodejs/node/issues
Pull requests https://github.com/nodejs/node/pulls
Actions https://github.com/nodejs/node/actions
Projects https://github.com/nodejs/node/projects
Security and quality https://github.com/nodejs/node/security
Insights https://github.com/nodejs/node/pulse
Sign up for GitHub https://github.com/signup?return_to=%2Fnodejs%2Fnode%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fnodejs%2Fnode%2Fissues%2Fnew%2Fchoose
joyeecheunghttps://github.com/joyeecheung
nodejs:mainhttps://github.com/nodejs/node/tree/main
joyeecheung:cjs-lexer-inithttps://github.com/joyeecheung/node/tree/cjs-lexer-init
Conversation 12 https://github.com/nodejs/node/pull/60663
Commits 2 https://github.com/nodejs/node/pull/60663/commits
Checks 50 https://github.com/nodejs/node/pull/60663/checks
Files changed https://github.com/nodejs/node/pull/60663/files
Please reload this pagehttps://github.com/nodejs/node/pull/60663/files
esm: use wasm version of cjs-module-lexer https://github.com/nodejs/node/pull/60663/files#top
Show all changes 2 commits https://github.com/nodejs/node/pull/60663/files
86940f4 benchmark: use typescript for import cjs benchmark joyeecheung Nov 10, 2025 https://github.com/nodejs/node/pull/60663/commits/86940f4b67d122a21da8ee26c54398e4019b4589
19b3154 esm: use wasm version of cjs-module-lexer joyeecheung Nov 10, 2025 https://github.com/nodejs/node/pull/60663/commits/19b315471cc6d43c0aa117fe0e56c604f8963482
Clear filters https://github.com/nodejs/node/pull/60663/files
Please reload this pagehttps://github.com/nodejs/node/pull/60663/files
Please reload this pagehttps://github.com/nodejs/node/pull/60663/files
cjs-parse.js https://github.com/nodejs/node/pull/60663/files#diff-4fcd9fffb8e9dddb4497c135e431f70139de20abc3c9d4d73b50e8dd0d74bb60
import-cjs.js https://github.com/nodejs/node/pull/60663/files#diff-e0f74858234afdab24a3e3d2f3c0d5b550742eade99273f588d5b90d8889ba16
translators.js https://github.com/nodejs/node/pull/60663/files#diff-b1de5e9ce1e9b411001c63d11a5092dbba32e1586269a20dc11408375eb2f16c
test-import-cjs-jitless.mjs https://github.com/nodejs/node/pull/60663/files#diff-8c8535f9ec8a6ee0879404c190c92265e79795ce2bbd44919985ab7e1c174f0d
benchmark/esm/cjs-parse.jshttps://github.com/nodejs/node/pull/60663/files#diff-4fcd9fffb8e9dddb4497c135e431f70139de20abc3c9d4d73b50e8dd0d74bb60
View file https://github.com/nodejs/node/blob/408aba6190367d15c34d0437c60c480fe022852d/benchmark/esm/cjs-parse.js
Open in desktop https://desktop.github.com
Please reload this pagehttps://github.com/nodejs/node/pull/60663/files
benchmark/esm/import-cjs.jshttps://github.com/nodejs/node/pull/60663/files#diff-e0f74858234afdab24a3e3d2f3c0d5b550742eade99273f588d5b90d8889ba16
View file https://github.com/joyeecheung/node/blob/19b315471cc6d43c0aa117fe0e56c604f8963482/benchmark/esm/import-cjs.js
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/nodejs/node/pull/60663/{{ revealButtonHref }}
lib/internal/modules/esm/translators.jshttps://github.com/nodejs/node/pull/60663/files#diff-b1de5e9ce1e9b411001c63d11a5092dbba32e1586269a20dc11408375eb2f16c
View file https://github.com/joyeecheung/node/blob/19b315471cc6d43c0aa117fe0e56c604f8963482/lib/internal/modules/esm/translators.js
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/nodejs/node/pull/60663/{{ revealButtonHref }}
https://github.com/nodejs/node/pull/60663/files#diff-b1de5e9ce1e9b411001c63d11a5092dbba32e1586269a20dc11408375eb2f16c
https://github.com/nodejs/node/pull/60663/files#diff-b1de5e9ce1e9b411001c63d11a5092dbba32e1586269a20dc11408375eb2f16c
test/es-module/test-import-cjs-jitless.mjshttps://github.com/nodejs/node/pull/60663/files#diff-8c8535f9ec8a6ee0879404c190c92265e79795ce2bbd44919985ab7e1c174f0d
View file https://github.com/joyeecheung/node/blob/19b315471cc6d43c0aa117fe0e56c604f8963482/test/es-module/test-import-cjs-jitless.mjs
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/nodejs/node/pull/60663/{{ revealButtonHref }}
Please reload this pagehttps://github.com/nodejs/node/pull/60663/files
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.