zlacker

[return to "Anthropic acquires Bun"]
1. Tiberi+m4[view] [source] 2025-12-02 18:26:27
>>ryanvo+(OP)
As someone who have been using Deno for the last few years, is there anything that Bun does better? Bun seems to use a different runtime (JSC) which is less tested than V8, which makes me assume it might perform worse in real-world tasks (maybe not anymore?). The last time I checked Bun's source code, it was... quite messy and spaghetti-like, plus Zig doesn't really offer many safety features, so it's not that hard to write incorrect code. Zig does force some safety with ReleaseSafe IIRC, but it's still not the same as even modern C++, let alone Rust.

I'll admit I'm somewhat biased against Bun, but I'm honestly interested in knowing why people prefer Bun over Deno.

◧◩
2. cesarv+H8[view] [source] 2025-12-02 18:43:04
>>Tiberi+m4
I've found it to be at least twice as fast with practically no compat issues.
◧◩◪
3. smarna+qr[view] [source] 2025-12-02 19:56:20
>>cesarv+H8
Twice as fast at executing JavaScript? There's absolutely zero chance this is true. A JavaScript engine that's twice as fast as V8 in general doesn't exist. There may be 5 or 10 percent difference, but nothing really meaningful.
◧◩◪◨
4. johnfn+1x[view] [source] 2025-12-02 20:23:32
>>smarna+qr
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

◧◩◪◨⬒
5. smarna+Ku1[view] [source] 2025-12-03 03:35:44
>>johnfn+1x
I 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.
◧◩◪◨⬒⬓
6. johnfn+cI1[view] [source] 2025-12-03 06:23:03
>>smarna+Ku1

    johnfn@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".
[go to top]