All developers and agents deserve a powerful runtime ๐
We put the @bunjavascript@rustlang rewrite in production and are super excited for the future of the project.
enough with the tyranny of V8 isolates, everyone now gets a real x86_64 VM but without cold starts and with serverless DX, ergonomics and economics (except cheaper than the competition)
blog posts incoming!
Hot take after 2 years of Bun in production: the DX is good enough that I'd pick it over Node even for "boring" enterprise work.
@bunjavascript@elysiaJS@DrizzleORM is the most fun I've had shipping backend in years.
Heartbreaking: Iโve been using it intensively for a few hours now and I canโt find anything wrong with the viberewritten version.
Itโs smaller, faster, retains 100% feature parity and didnโt crash once, also no other unexpected behavior at any point.
In the next version of Bun
`Buffer.from(str, "hex")` gets 4.8x faster
ALT bun v1.4.0
// str: 1 MIB
Buffer. from(str, "hex")
4.8ร faster
than Bun 1.3.14
Bun 1.4.0
116.2 uS
Node.js 25.2.1
Bun 1.3.14
also: buf write(str, "hex") into an existing Buffer - 105.5 us, vs 544.6 us in Node.js (5.2ร faster)
mitata โข Apple M4 Max โข Node.js 25.2.1
552.2
553.5 us
lower is better
In the next version of Bun
`Buffer.from(str, "base64url")` gets 41x faster on large input
ALT bun v1.4.0
// str: 1 Mib
Buffer. from(str,
"base64url")
41ร faster
than Bun 1.3.14
Bun 1.4.0
80.95 uS
Bun 1.3.14
also: same string through "base64" - 98.66 uS, vs 326.11 us in Node.js (3.3x faster)
thanks to Daniel Lemire's simdutf โข mitata โข Apple M4 Max
3,320 us
lower is better
In the next version of Bun
Bun.stringWidth() ๅค็ไธญๆใๆฅๆใ้ฉๆๅญ็ฌฆ็้ๅบฆๆๅไบ 7~56 ๅ
Bun.stringWidth() ใไธญๅฝ่ชใปๆฅๆฌ่ชใป้ๅฝ่ชใฎๆๅญใง 7ใ56 ๅ้ซ้ๅใใใพใใ
Bun.stringWidth()๊ฐ ์ค๊ตญ์ดยท์ผ๋ณธ์ดยทํ๊ตญ์ด ๋ฌธ์์์ 7~56๋ฐฐ ๋นจ๋ผ์ก์ต๋๋ค
ALT Bun in Rust
Even smaller.
Linux x64
-18.7 MB
21% smaller
88.5 โ
69.8 MB
All 6 Linux targets โข another -12.0 MB on average since the previous Rust build
ALT Bun
Smaller in Rust.
macOS arm64
Linux x64
Windows x64
-5.5MB - 6.8MB -3.8MB
9% smaller
8% smaller
4% smaller
60.2 โ 54.7 MB
88.5 โ 81.7 MB
93.9 โ 90.1 MB
All 12 targets โข average - 6.7 MB โข up to - 11.5 MB on macOS x64
ALT Bun
Smaller in Rust.
macOS arm64
Linux x64
Windows x64
-5.5MB - 6.8MB -3.8MB
9% smaller
8% smaller
4% smaller
60.2 โ 54.7 MB
88.5 โ 81.7 MB
93.9 โ 90.1 MB
All 12 targets โข average - 6.7 MB โข up to - 11.5 MB on macOS x64