For example in this benchmark (updated about a month ago) github.com/silverwind/fetch-bench
undici: 2966ms
axios: 2429ms
-> axios is faster than undici
The increased bundle size of axios (57 kB -> 21.8 kB gzip) is not an issue on the server (only in the client/browser)
I would say, that it is a contested point, which of the 2 libraries is better axios or undici
I followed your recommendation and took a look at
undiciThere is a long discussion about fetch performance
github.com/nodejs/undici/issues/1203
For example in this benchmark (updated about a month ago)
github.com/silverwind/fetch-bench
undici: 2966ms
axios: 2429ms
-> axios is faster than undici
The increased bundle size of axios (57 kB -> 21.8 kB gzip) is not an issue on the server (only in the client/browser)
I would say, that it is a contested point, which of the 2 libraries is better
axiosorundiciInteresting. I'm watching that space now to see how it evoves overtime. Thanks for sharing. We learn everyday.