You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
According to my benchmarks (beware that it is flaky), the pull request to add Ada doubles the performance of undici - fetch from 984 req/sec to 1823 req/sec
Reacted by Toni Villena, Rajesh Khetarpal, Marvin Hagemeister, Carlos Fuentes, Mateo Nunez, Alessandro Commodari, Tony Gorez, Trygve Lie, Momen, Gary Crye and 1 more
Reacted by Toni Villena, Gabriel R. Antunes, Marvin Hagemeister, Tony Gorez, Momen, Gary Crye and Vinicius Lourenço
Activity
anonrig commentedon Nov 17, 2022
I believe we should be much more descriptive about what we want to talk about, and add a Github issue template.
My ideal performance issue would be:
metcoder95 commentedon Nov 29, 2022
This is mostly referring to the WHATWG streams or there is something more underneath?
mcollina commentedon Jan 23, 2023
I don't think this is done. I haven't seen any evidence of it, I still see a significant gap compared to http.request.
mcollina commentedon Jan 24, 2023
Here is the latest data I have collected on Node.js v19.14.0:
We could say that the major blocker are WHATWG streams, but I would not consider this "done".
We still need a 2x throughput increase
RafaelGSS commentedon Jan 24, 2023
@mcollina today's release will include a perf improvement on webstream errors. It should improve a bit.
mcollina commentedon Jan 24, 2023
There is a massive improvement in main:
We still need a rough +50% increase.
RafaelGSS commentedon Jan 24, 2023
We can do it! I think I'll have time next week to work on this.
anonrig commentedon Jan 30, 2023
According to my benchmarks (beware that it is flaky), the pull request to add
Adadoubles the performance ofundici - fetchfrom984 req/secto1823 req/secanonrig commentedon Jan 30, 2023
@mcollina, this is the rough +100% increase you were looking for (I guess).
RafaelGSS commentedon Jan 30, 2023
That actually should not just improve
fetchbut improve all the methods right? So, in theory, fetch will still be slower thannode-fetch.anonrig commentedon Jan 30, 2023
I'm not really quite sure. The amount of
new URLin undici might be greater than the usage innode-fetch.metcoder95 commentedon Jan 30, 2023
What about the WHATWG, has been any further research for them?
mcollina commentedon Feb 22, 2023
This keep being closed, but either all the fixes needed are not released yet or there is some other problem:
As you can see there is a staggering gap between what is possible (undici
dispatch()) and the cost of running the fetch API.This issue should not be closed until fetch reaches the same level of
http.request()with keepalive enabled.RafaelGSS commentedon Aug 15, 2025
I believe fetch is now comparable (and faster) than
node-fetch. Closing this as concluded.