Performance Testing Fastify vs. Express [EXPERIMENT]
ฝัง
- เผยแพร่เมื่อ 24 ก.ย. 2024
- This is a little experiment where we performance test Fastify vs ExpressJS using the Apache Bench tool.
buymeacoffee.c...
httpd.apache.o...
www.fastify.io/
expressjs.com/
Link To Code: github.com/tha...
#lowcode #postman #tutorial #fastify #miamitech #testing #integration #testdrivendevelopment #always #question #command #typescript #vscode #performance #performancetesting #tech #software #softwareengineer #softwareengineering #reality #unittesting
over 27% more requests per second is still huge.
we should also investigate what settings they used- like if they used pino for asynchronous server logging vs synchronous logging in express could make a huge difference
I agree a lot more due diligence is required to come to any conclusive statements regarding the difference in performance between Express and Fastify but the message I was aiming to communicate in the video is "Don't take information on face value and always perform due diligence before coming to conclusions"
1,000+ more requests per second. Blazingly fast
1. You are using nodemon (very hard worker)
2. You are logging all requests (console output is so slow and blocking)
Noted. A handful of comments have raised this concern.
This video needs to be redone : )
The next video I do related to performance testing be sure to run in the benchmarks in production mode...
If you find a video that live performance tests Express vs Fastify I would love to see the if the results line up with the marketed stats on Fastify's site...
Right now I'm preparing for a hackathon so will have to find time : )
Pleasure to connect...
Also try to use cluster feature to get some parallel threads
Running in production mode would have more precise results
Great Point!
Didn't event think of that
Thanks for bringing this up! Have you done the tests?
@@cmd_labs I did not. The thought just crossed my mind.
@@dmsnm Amazing thought! Please continue to share these thoughts : ) Didn't even think of that : )
Also.. You are running in dev mode. Don't do that. It will beautify the output on console... 😢
Fair point