benchmark: Add NodeError and Error benchmark#43077
benchmark: Add NodeError and Error benchmark#43077RafaelGSS wants to merge 1 commit intonodejs:masterfrom
Conversation
|
Furthermore, I can go deeper into the analysis and share my thoughts here. |
|
What is the purpose of |
7a0b11e to
f5ece4a
Compare
|
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 |
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 <matteo.collina@gmail.com> Reviewed-By: Juan José Arboleda <soyjuanarbol@gmail.com> Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
|
Landed in 0903515 |
PR-URL: #43077 Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Juan José Arboleda <soyjuanarbol@gmail.com> Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
PR-URL: nodejs#43077 Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Juan José Arboleda <soyjuanarbol@gmail.com> Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
PR-URL: #43077 Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Juan José Arboleda <soyjuanarbol@gmail.com> Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
PR-URL: #43077 Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Juan José Arboleda <soyjuanarbol@gmail.com> Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
PR-URL: #43077 Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Juan José Arboleda <soyjuanarbol@gmail.com> Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
PR-URL: nodejs/node#43077 Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Juan José Arboleda <soyjuanarbol@gmail.com> Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
While investigating
fetchperformance (nodejs/undici#1203 (comment)) I've found thatNodeErroris a bottleneck inWebStreams.I created this Pull Request to share the insights and help as I can to improve the
NodeErrorperformance. 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: 100MHzcc: @jasnell @mcollina