4 ms·
You might want to revise what you consider to be "absolutely zero chance". Bun has an insanely fast startup time, so it definitely can be true for small workloa
by johnfn 11mo ago
You might want to revise what you consider to be "absolutely zero chance". Bun has an insanely fast startup time, so it definitely can be true for small workloads. A classic example of this was on Bun's website for a while[1] - it was "Running 266 React SSR tests faster than Jest can print its version number".
[1]: https://x.com/jarredsumner/status/1542824445810642946 https://x.com/jarredsumner/status/1542824445810642946
- smarnach 11mo agoI only claimed there is absolutely zero chance that Bun is twice as fast at executing general JavaScript as Deno. The example doesn't give any insight into the relative speeds of Bun and Deno, as fast as I can tell.
- johnfn 11mo agojohnfn@mac ~ % time deno eval 'console.log("hello world")' hello world deno eval 'console.log("hello world")' 0.04s user 0.02s system 87% cpu 0.074 total johnfn@mac ~ % time bun -e 'console.log("hello world")' hello world bun -e 'console.log("hello world")' 0.01s user 0.00s system 84% cpu 0.013 total That's about 560% faster. Yes, it's a microbenchmark. But you said "absolutely zero chance", not "a very small chance".
- smarnach 10mo agoThat's as far from being a general JS executing speed benchmark as it could be. It essentially just times the startup speed.