antonputra / tutorials

DevOps Tutorials
https://youtube.com/antonputra
MIT License
3.19k stars 2.5k forks source link

Lesson 212 - Use uwebsockets.js on Node #297

Open Mytrill opened 1 month ago

Mytrill commented 1 month ago

Hello, First of all, thank you for these performance tests and video! I am writing a backend heavy application in typescript, and I have been wondering which one of node/bun/deno I should use when I start scaling. Since rewriting the entire backend just to test is time consuming, I really appreciate someone doing a real world test with these techs.

Anyway, here is an idea/suggestion: An interesting test would be to replace the default node http server with uWebSockets.js. It is the server that bun uses under the hood, and promise performances up to 10x those of the default node http server.

I suspect that with this change, node will outperform bun on both tests.

Thank you!

pasha-vuiko commented 1 month ago

I even created the PR before =)) https://github.com/antonputra/tutorials/pull/291