Skip to content

benchmark: differentiate whatwg and legacy url - #47377

Merged
nodejs-github-bot merged 2 commits into
nodejs:mainfrom
anonrig:benchmark-urls
Apr 13, 2023
Merged

benchmark: differentiate whatwg and legacy url#47377
nodejs-github-bot merged 2 commits into
nodejs:mainfrom
anonrig:benchmark-urls

Conversation

@anonrig

@anonrig anonrig commented Apr 3, 2023

Copy link
Copy Markdown
Member

After merging Ada pull request, Ada will be 3x faster than the legacy url.parse method, and we don't even need to run the legacy benchmarks most of the time. This pull request splits the benchmarks into multiple benchmarks.

@nodejs-github-bot nodejs-github-bot added benchmark Issues and PRs related to Node.js benchmarks and benchmarking infrastructure. url Issues and PRs related to the legacy built-in url module. labels Apr 3, 2023
@richardlau

Copy link
Copy Markdown
Member

After merging Ada pull request legacy url.parse method will be 3x slower.

Huh? That sounds like a good reason not to backport Ada to Node.js 18 if it's going to cause a regression.
cc @nodejs/releasers @nodejs/lts

@anonrig

anonrig commented Apr 3, 2023

Copy link
Copy Markdown
Member Author

After merging Ada pull request legacy url.parse method will be 3x slower.

Huh? That sounds like a good reason not to backport Ada to Node.js 18 if it's going to cause a regression.

cc @nodejs/releasers @nodejs/lts

I mean Ada is faster than url.parse by 3x. Bad way to rephrase it, my bad!

@anonrig

anonrig commented Apr 3, 2023

Copy link
Copy Markdown
Member Author

cc @nodejs/url @nodejs/performance appreciate reviews

@anonrig
anonrig requested review from TimothyGu and jasnell April 6, 2023 13:35
@anonrig anonrig added the author ready PRs with CI started, the required approvals, and no outstanding review comments. label Apr 6, 2023

@TimothyGu TimothyGu left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm ok with this as long as the results between the new legacy-only and whatwg-only benchmarks are still comparable – which they seem to be.

Comment thread benchmark/url/legacy-url-parse.js Outdated
Comment thread benchmark/url/legacy-url-parse.js Outdated
Comment thread benchmark/url/legacy-url-get-prop.js Outdated
@anonrig anonrig added commit-queue PRs queued for automated landing through the Commit Queue. commit-queue-squash PRs the Commit Queue should land as one squashed commit. labels Apr 13, 2023
@nodejs-github-bot nodejs-github-bot removed the commit-queue PRs queued for automated landing through the Commit Queue. label Apr 13, 2023
@nodejs-github-bot

Copy link
Copy Markdown
Collaborator
Commit Queue failed
- Loading data for nodejs/node/pull/47377
✔  Done loading data for nodejs/node/pull/47377
----------------------------------- PR info ------------------------------------
Title      benchmark: differentiate whatwg and legacy url (#47377)
Author     Yagiz Nizipli  (@anonrig)
Branch     anonrig:benchmark-urls -> nodejs:main
Labels     url, benchmark, author ready, commit-queue-squash
Commits    2
 - benchmark: differentiate whatwg and legacy url
 - fixup! benchmark: differentiate whatwg and legacy url
Committers 1
 - Yagiz Nizipli 
PR-URL: https://github.com/nodejs/node/pull/47377
Reviewed-By: Benjamin Gruenbaum 
Reviewed-By: Tiancheng "Timothy" Gu 
------------------------------ Generated metadata ------------------------------
PR-URL: https://github.com/nodejs/node/pull/47377
Reviewed-By: Benjamin Gruenbaum 
Reviewed-By: Tiancheng "Timothy" Gu 
--------------------------------------------------------------------------------
   ⚠  Commits were pushed since the last review:
   ⚠  - fixup! benchmark: differentiate whatwg and legacy url
   ℹ  This PR was created on Mon, 03 Apr 2023 02:09:09 GMT
   ✔  Approvals: 2
   ✔  - Benjamin Gruenbaum (@benjamingr): https://github.com/nodejs/node/pull/47377#pullrequestreview-1374972136
   ✔  - Tiancheng "Timothy" Gu (@TimothyGu) (TSC): https://github.com/nodejs/node/pull/47377#pullrequestreview-1375735658
   ✔  Last GitHub CI successful
   ℹ  Green GitHub CI is sufficient
--------------------------------------------------------------------------------
   ✔  Aborted `git node land` session in /home/runner/work/node/node/.ncu
https://github.com/nodejs/node/actions/runs/4693909020

@nodejs-github-bot nodejs-github-bot added the commit-queue-failed PRs whose Commit Queue landing failed and need manual intervention before retrying. label Apr 13, 2023
@anonrig
anonrig requested review from TimothyGu and benjamingr April 13, 2023 21:21
@anonrig

anonrig commented Apr 13, 2023

Copy link
Copy Markdown
Member Author

@nodejs/performance can you review?

@anonrig anonrig added commit-queue PRs queued for automated landing through the Commit Queue. and removed commit-queue-failed PRs whose Commit Queue landing failed and need manual intervention before retrying. labels Apr 13, 2023
@nodejs-github-bot nodejs-github-bot removed the commit-queue PRs queued for automated landing through the Commit Queue. label Apr 13, 2023
@nodejs-github-bot
nodejs-github-bot merged commit cd0fcf2 into nodejs:main Apr 13, 2023
@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

Landed in cd0fcf2

@anonrig
anonrig deleted the benchmark-urls branch April 13, 2023 21:38
targos pushed a commit that referenced this pull request May 2, 2023
PR-URL: #47377
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: Tiancheng "Timothy" Gu <timothygu99@gmail.com>
Reviewed-By: Matthew Aitken <maitken033380023@gmail.com>
@targos targos mentioned this pull request May 2, 2023
danielleadams pushed a commit that referenced this pull request Jul 6, 2023
PR-URL: #47377
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: Tiancheng "Timothy" Gu <timothygu99@gmail.com>
Reviewed-By: Matthew Aitken <maitken033380023@gmail.com>
@MoLow

MoLow commented Jul 6, 2023

Copy link
Copy Markdown
Member

depends on #47351 and #47179
CC @danielleadams

targos pushed a commit that referenced this pull request Nov 10, 2023
PR-URL: #47377
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: Tiancheng "Timothy" Gu <timothygu99@gmail.com>
Reviewed-By: Matthew Aitken <maitken033380023@gmail.com>
sercher added a commit to sercher/graaljs that referenced this pull request Apr 25, 2024
PR-URL: nodejs/node#47377
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: Tiancheng "Timothy" Gu <timothygu99@gmail.com>
Reviewed-By: Matthew Aitken <maitken033380023@gmail.com>
sercher added a commit to sercher/graaljs that referenced this pull request Apr 25, 2024
PR-URL: nodejs/node#47377
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: Tiancheng "Timothy" Gu <timothygu99@gmail.com>
Reviewed-By: Matthew Aitken <maitken033380023@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

author ready PRs with CI started, the required approvals, and no outstanding review comments. benchmark Issues and PRs related to Node.js benchmarks and benchmarking infrastructure. commit-queue-squash PRs the Commit Queue should land as one squashed commit. url Issues and PRs related to the legacy built-in url module.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants