René's URL Explorer Experiment


Title: url: remove array.reduce usage to make inspect faster by gurgunday · Pull Request #60748 · nodejs/node · GitHub

Open Graph Title: url: remove array.reduce usage to make inspect faster by gurgunday · Pull Request #60748 · nodejs/node

X Title: url: remove array.reduce usage to make inspect faster by gurgunday · Pull Request #60748 · nodejs/node

Description: branch: url/url-searchparams-inspect.js url/url-searchparams-inspect.js n=100000 kind="params" variant="empty": 4,532,381.098194127 url/url-searchparams-inspect.js n=100000 kind="iterator-keys" variant="empty": 1,515,353.3785894632 url/url-searchparams-inspect.js n=100000 kind="iterator-values" variant="empty": 1,492,998.7614679476 url/url-searchparams-inspect.js n=100000 kind="iterator-entries" variant="empty": 1,450,254.4522195323 url/url-searchparams-inspect.js n=100000 kind="params" variant="small": 403,675.9409357187 url/url-searchparams-inspect.js n=100000 kind="iterator-keys" variant="small": 427,352.2536421096 url/url-searchparams-inspect.js n=100000 kind="iterator-values" variant="small": 420,388.7130120308 url/url-searchparams-inspect.js n=100000 kind="iterator-entries" variant="small": 207,149.16684729385 url/url-searchparams-inspect.js n=100000 kind="params" variant="medium": 78,324.92739345282 url/url-searchparams-inspect.js n=100000 kind="iterator-keys" variant="medium": 103,255.19317270137 url/url-searchparams-inspect.js n=100000 kind="iterator-values" variant="medium": 105,868.77834677565 url/url-searchparams-inspect.js n=100000 kind="iterator-entries" variant="medium": 42,676.903041653466 url/url-searchparams-inspect.js n=100000 kind="params" variant="large": 10,407.476332765786 url/url-searchparams-inspect.js n=100000 kind="iterator-keys" variant="large": 15,924.216229468899 url/url-searchparams-inspect.js n=100000 kind="iterator-values" variant="large": 15,842.239285517238 url/url-searchparams-inspect.js n=100000 kind="iterator-entries" variant="large": 6,287.244407894947 main: url/url-searchparams-inspect.js url/url-searchparams-inspect.js n=100000 kind="params" variant="empty": 4,141,001.0870127855 url/url-searchparams-inspect.js n=100000 kind="iterator-keys" variant="empty": 1,456,942.7876779065 url/url-searchparams-inspect.js n=100000 kind="iterator-values" variant="empty": 975,149.1432105592 url/url-searchparams-inspect.js n=100000 kind="iterator-entries" variant="empty": 1,385,660.492394456 url/url-searchparams-inspect.js n=100000 kind="params" variant="small": 382,729.5216981326 url/url-searchparams-inspect.js n=100000 kind="iterator-keys" variant="small": 402,301.29698277207 url/url-searchparams-inspect.js n=100000 kind="iterator-values" variant="small": 403,590.5432681854 url/url-searchparams-inspect.js n=100000 kind="iterator-entries" variant="small": 197,061.3393303881 url/url-searchparams-inspect.js n=100000 kind="params" variant="medium": 78,651.96299050128 url/url-searchparams-inspect.js n=100000 kind="iterator-keys" variant="medium": 101,996.0845906241 url/url-searchparams-inspect.js n=100000 kind="iterator-values" variant="medium": 101,739.53835371115 url/url-searchparams-inspect.js n=100000 kind="iterator-entries" variant="medium": 41,671.14631489552 url/url-searchparams-inspect.js n=100000 kind="params" variant="large": 9,892.61944926823 url/url-searchparams-inspect.js n=100000 kind="iterator-keys" variant="large": 15,148.689404508617 url/url-searchparams-inspect.js n=100000 kind="iterator-values" variant="large": 15,377.710695515232 url/url-searchparams-inspect.js n=100000 kind="iterator-entries" variant="large": 5,952.288479327792 Reduce is slow, we should prefer iteration

Open Graph Description: branch: url/url-searchparams-inspect.js url/url-searchparams-inspect.js n=100000 kind="params" variant="empty": 4,532,381.098194127 url/url-searchparams-inspect.js n=100000 kind...

X Description: branch: url/url-searchparams-inspect.js url/url-searchparams-inspect.js n=100000 kind="params" variant="empty": 4,532,381.098194127 url/url-searchparams-inspect....

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

X: @github

direct link

Domain: github.com

route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:7ab158cb-cdea-2933-e173-979fc445bd55
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idEB36:6E493:CDC753:11434DE:6A4C593F
html-safe-nonce244c6b9caa5dedc337def51d2dad4b22abfa7210b6e68af3b038e80779077fbe
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFQjM2OjZFNDkzOkNEQzc1MzoxMTQzNERFOjZBNEM1OTNGIiwidmlzaXRvcl9pZCI6IjY2NTMwNTczNDYwNzI5NjgzMSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac0603dd8af2ae2a03e77243009f939d6f906c153a3c3d845587a83851f5d9df84
hovercard-subject-tagpull_request:3015076002
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/60748/files
twitter:imagehttps://avatars.githubusercontent.com/u/74139498?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/74139498?s=400&v=4
og:image:altbranch: url/url-searchparams-inspect.js url/url-searchparams-inspect.js n=100000 kind="params" variant="empty": 4,532,381.098194127 url/url-searchparams-inspect.js n=100000 kind...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None3d11bb817438277de2a940854450e83a7d32b6aeb5014e9e6b00a6423900251c
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
release14099438da5379150f15a2892474c7c7e6c0e55e
ui-targetcanary-2
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/nodejs/node/pull/60748/files#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fnodejs%2Fnode%2Fpull%2F60748%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%2F60748%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/60748/files
Reloadhttps://github.com/nodejs/node/pull/60748/files
Reloadhttps://github.com/nodejs/node/pull/60748/files
Please reload this pagehttps://github.com/nodejs/node/pull/60748/files
nodejs https://github.com/nodejs
nodehttps://github.com/nodejs/node
Please reload this pagehttps://github.com/nodejs/node/pull/60748/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 964 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
nodejs-github-bothttps://github.com/nodejs-github-bot
nodejs:mainhttps://github.com/nodejs/node/tree/main
gurgunday:remove-reduce-urlhttps://github.com/gurgunday/node/tree/remove-reduce-url
Conversation 7 https://github.com/nodejs/node/pull/60748
Commits 2 https://github.com/nodejs/node/pull/60748/commits
Checks 42 https://github.com/nodejs/node/pull/60748/checks
Files changed https://github.com/nodejs/node/pull/60748/files
Please reload this pagehttps://github.com/nodejs/node/pull/60748/files
url: remove array.reduce usage to make inspect faster https://github.com/nodejs/node/pull/60748/files#top
Show all changes 2 commits https://github.com/nodejs/node/pull/60748/files
cd0ec1a url: remove array.reduce usage gurgunday Nov 16, 2025 https://github.com/nodejs/node/pull/60748/commits/cd0ec1a813e0eec7d21e36bd9c5e91d40c69cafc
7e3b871 apply suggestion gurgunday Nov 16, 2025 https://github.com/nodejs/node/pull/60748/commits/7e3b8710c45e81a67c9723705617b813812a84b4
Clear filters https://github.com/nodejs/node/pull/60748/files
Please reload this pagehttps://github.com/nodejs/node/pull/60748/files
Please reload this pagehttps://github.com/nodejs/node/pull/60748/files
url-searchparams-inspect.js https://github.com/nodejs/node/pull/60748/files#diff-ddc714aac85d63f41bbe99f294052d571162576560b4d6a8cb8fee99edaaa843
url.js https://github.com/nodejs/node/pull/60748/files#diff-26e6b1e2a90040b1ce20e7f305b2ff3140b483f863ee2573b4c6af9b696ad31e
benchmark/url/url-searchparams-inspect.jshttps://github.com/nodejs/node/pull/60748/files#diff-ddc714aac85d63f41bbe99f294052d571162576560b4d6a8cb8fee99edaaa843
View file https://github.com/gurgunday/node/blob/7e3b8710c45e81a67c9723705617b813812a84b4/benchmark/url/url-searchparams-inspect.js
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/nodejs/node/pull/60748/{{ revealButtonHref }}
lib/internal/url.jshttps://github.com/nodejs/node/pull/60748/files#diff-26e6b1e2a90040b1ce20e7f305b2ff3140b483f863ee2573b4c6af9b696ad31e
View file https://github.com/gurgunday/node/blob/7e3b8710c45e81a67c9723705617b813812a84b4/lib/internal/url.js
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/nodejs/node/pull/60748/{{ revealButtonHref }}
https://github.com/nodejs/node/pull/60748/files#diff-26e6b1e2a90040b1ce20e7f305b2ff3140b483f863ee2573b4c6af9b696ad31e
https://github.com/nodejs/node/pull/60748/files#diff-26e6b1e2a90040b1ce20e7f305b2ff3140b483f863ee2573b4c6af9b696ad31e
https://github.com/nodejs/node/pull/60748/files#diff-26e6b1e2a90040b1ce20e7f305b2ff3140b483f863ee2573b4c6af9b696ad31e
https://github.com/nodejs/node/pull/60748/files#diff-26e6b1e2a90040b1ce20e7f305b2ff3140b483f863ee2573b4c6af9b696ad31e
https://github.com/nodejs/node/pull/60748/files#diff-26e6b1e2a90040b1ce20e7f305b2ff3140b483f863ee2573b4c6af9b696ad31e
https://github.com/nodejs/node/pull/60748/files#diff-26e6b1e2a90040b1ce20e7f305b2ff3140b483f863ee2573b4c6af9b696ad31e
Please reload this pagehttps://github.com/nodejs/node/pull/60748/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.