Settings

Theme

Node vs. Bun: no back end performance difference

evertheylen.eu

3 points by evertheylen a year ago · 4 comments

Reader

stefanos82 a year ago

Interestingly 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

  • evertheylenOP a year ago

    Interesting! 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 a year ago

      My 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.

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection