DEV Community

Discussion on: You Don't Need Axios

Collapse
 
adaptive-shield-matrix profile image
Adaptive Shield Matrix

I followed your recommendation and took a look at undici

There 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 axios or undici

Collapse
 
ngfizzy profile image
Olufisayo Bamidele

Interesting. I'm watching that space now to see how it evoves overtime. Thanks for sharing. We learn everyday.

Some comments have been hidden by the post's author - find out more