3 ms·
Performance is also a major advantage. Express is extremely slow compared to a basic "native" API without dependencies. If you check out the results in numbers,
by craftoman 8y ago
Performance is also a major advantage. Express is extremely slow compared to a basic "native" API without dependencies. If you check out the results in numbers, you'll be amazed.
- tozeur 8y agoPlease post some citations to back up your performance claims. I haven’t found strong numbers online.
- asien 8y ago> Please post some citations to back up your performance claims. According to TechEmpower benchmark[0],Node.js-MySQL is two time faster than express-mysql. Others benchmarks of TechEmpower tend to point exactly the same result in terms of performance for express. [0] https://www.techempower.com/benchmarks/#section=data-r17&hw=ph&test=query https://www.techempower.com/benchmarks/#section=data-r17&hw=...
- gbuk2013 8y agoExpress is not actually that much slower - I tested it when I wrote a light-weight Express replacement[1] for my own use (which was mainly about reducing the number of dependency packages from 40+ to 2). IIRC the slowest part was the default 404 router. I was testing with only a few routes though - maybe it gets slower with more (IIRC Express architecture is that all routes are run in serial, so those defined last have to go through all the previous routes first). That and I didn’t add any latency to my tests to make it like the real world - that always has an interesting effect on results. :) Maybe I should re-run those tests for fun … [1] https://github.com/borisovg/node-web-framework/blob/master/README.md https://github.com/borisovg/node-web-framework/blob/master/R...
- newsbinator 8y agoFor performance, I prefer Fastify rather than Express (https://www.fastify.io https://www.fastify.io).