4 ms·
Doesn't bun advertise itself as 10 times faster than node or something? Edit: they “only” claim to be 5 times faster [1]. [1]: https://bun.sh/ https://bun.sh/
by littlestymaar 3y ago
Doesn't bun advertise itself as 10 times faster than node or something?
Edit: they “only” claim to be 5 times faster [1].
[1]: https://bun.sh/ https://bun.sh/
- M4v3R 3y agoThey do, but I think the OP didn’t use Bun's native serve methods and instead used the same code for both Node and Bun, hence the subpar performance.
- littlestymaar 3y ago> and instead used the same code for both Node and Bun Wait, wasn't that the point of bun in the first place?!
- lionkor 3y agoAs I understand the Node code here is specific to Node, so running it on Bun is slow. If they'd used the "native" http server it would be better I think