3 ms·
Node vs. Bun: no back end performance difference
- deleted 2y ago[deleted]
- stefanos82 2y agoInterestingly enough, 2 days ago Anton released his latest benchmark, a comparison between Bun and Node.js [1] and was quite surprising to be honest with you, that does not match your tests. [1] https://www.youtube.com/watch?v=dPO4v5q9ULU https://www.youtube.com/watch?v=dPO4v5q9ULU
- evertheylen 2y agoInteresting! I may not have found it because I dislike Youtube for technical content. It's definitly an interesting benchmark. Using replicas in Kubernetes, but not `cluster.fork()` feels like a complicated choice to me, but I don't know k8s that well. However, it seems to me the results are broadly similar. The first test he describes as a "synthetic benchmark", and Bun performs better. The second test, "a real-world use case", has Node and Bun trading blows, with a slight advantage to Node. Happy to hear your interpretation!
- stefanos82 2y agoMy interpretation is rather simple: I use Bun for local development and Node.js for production. In the future, when Bun becomes more stable and production-ready, I will be using it for sure.