-
Notifications
You must be signed in to change notification settings - Fork 29.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
benchmark: Add NodeError and Error benchmark #43077
Conversation
Furthermore, I can go deeper into the analysis and share my thoughts here. |
What is the purpose of |
7a0b11e
to
f5ece4a
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
Well, lately I have had no time to investigate/improve how the A few insights to solve it can be found in: nodejs/undici#1203 (comment). |
f5ece4a
to
64fc8c1
Compare
Can you add a test, similarly as node/test/benchmark/test-benchmark-misc.js Lines 1 to 7 in 9e40df7
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
64fc8c1
to
df87435
Compare
Just did, I knew I was forgetting something. |
df87435
to
da88923
Compare
Just rebased on master to check if the flaky tests are gone |
Commit Queue failed- Loading data for nodejs/node/pull/43077 ✔ Done loading data for nodejs/node/pull/43077 ----------------------------------- PR info ------------------------------------ Title benchmark: Add NodeError and Error benchmark (#43077) Author Rafael Gonzaga (@RafaelGSS) Branch RafaelGSS:benchmark/node-error -> nodejs:master Labels discuss, author ready, needs-ci Commits 1 - benchmark: add node-error benchmark Committers 1 - RafaelGSS PR-URL: https://github.com/nodejs/node/pull/43077 Reviewed-By: Matteo Collina Reviewed-By: Juan José Arboleda Reviewed-By: Antoine du Hamel ------------------------------ Generated metadata ------------------------------ PR-URL: https://github.com/nodejs/node/pull/43077 Reviewed-By: Matteo Collina Reviewed-By: Juan José Arboleda Reviewed-By: Antoine du Hamel -------------------------------------------------------------------------------- ⚠ Commits were pushed since the last review: ⚠ - benchmark: add node-error benchmark ℹ This PR was created on Thu, 12 May 2022 19:26:45 GMT ✔ Approvals: 3 ✔ - Matteo Collina (@mcollina) (TSC): https://github.com/nodejs/node/pull/43077#pullrequestreview-983394804 ✔ - Juan José Arboleda (@juanarbol): https://github.com/nodejs/node/pull/43077#pullrequestreview-985584535 ✔ - Antoine du Hamel (@aduh95) (TSC): https://github.com/nodejs/node/pull/43077#pullrequestreview-985886311 ✔ Last GitHub CI successful ℹ Last Full PR CI on 2022-05-29T18:37:24Z: https://ci.nodejs.org/job/node-test-pull-request/44228/ ℹ Last Benchmark CI on 2022-05-25T23:03:58Z: https://ci.nodejs.org/view/Node.js%20benchmark/job/benchmark-node-micro-benchmarks/1145/ - Querying data for job/node-test-pull-request/44228/ ✔ Last Jenkins CI successful -------------------------------------------------------------------------------- ✔ Aborted `git node land` session in /home/runner/work/node/node/.ncuhttps://github.com/nodejs/node/actions/runs/2409007414 |
PR-URL: #43077 Reviewed-By: Matteo Collina <[email protected]> Reviewed-By: Juan José Arboleda <[email protected]> Reviewed-By: Antoine du Hamel <[email protected]>
Landed in 0903515 |
PR-URL: #43077 Reviewed-By: Matteo Collina <[email protected]> Reviewed-By: Juan José Arboleda <[email protected]> Reviewed-By: Antoine du Hamel <[email protected]>
PR-URL: nodejs#43077 Reviewed-By: Matteo Collina <[email protected]> Reviewed-By: Juan José Arboleda <[email protected]> Reviewed-By: Antoine du Hamel <[email protected]>
PR-URL: #43077 Reviewed-By: Matteo Collina <[email protected]> Reviewed-By: Juan José Arboleda <[email protected]> Reviewed-By: Antoine du Hamel <[email protected]>
PR-URL: #43077 Reviewed-By: Matteo Collina <[email protected]> Reviewed-By: Juan José Arboleda <[email protected]> Reviewed-By: Antoine du Hamel <[email protected]>
PR-URL: #43077 Reviewed-By: Matteo Collina <[email protected]> Reviewed-By: Juan José Arboleda <[email protected]> Reviewed-By: Antoine du Hamel <[email protected]>
PR-URL: nodejs/node#43077 Reviewed-By: Matteo Collina <[email protected]> Reviewed-By: Juan José Arboleda <[email protected]> Reviewed-By: Antoine du Hamel <[email protected]>
While investigating
fetch
performance (nodejs/undici#1203 (comment)) I've found thatNodeError
is a bottleneck inWebStreams
.I created this Pull Request to share the insights and help as I can to improve the
NodeError
performance. We can use this PR thread to discuss approaches to solve it.For reference, this is the benchmark result I'm getting:
*-cpu description: CPU product: AMD Ryzen 5 3500X 6-Core Processor vendor: Advanced Micro Devices [AMD] physical id: 2f bus info: cpu@0 version: AMD Ryzen 5 3500X 6-Core Processor serial: Unknown slot: AM4 size: 4030MHz capacity: 4100MHz width: 64 bits clock: 100MHz
cc: @jasnell @mcollina