Log inSign up
Bun
4,092 posts
Bun profile banner
@bunjavascript

Bun

@bunjavascript
Bun is a fast, all-in-one toolkit for installing, bundling, running and testing JavaScript & TypeScript. To install: `npm i -g bun`
bun.com
Joined July 2022
7
Following
81.7K
Followers
RepliesRepliesRepostsRepostsMediaMedia

Log in or sign up for X

See what’s happening and join the conversation

Continue with phone
or
Log in with username or email
Terms·Privacy·Cookies·Accessibility·Ads Info·© 2026 X Corp.
  • Pinned
    @bunjavascript
    Bun
    @bunjavascript
    Dec 2, 2025
    Bun is joining Anthropic!
    Bun is joining Anthropic
    From bun.com
    766
  • @bunjavascript
    Bun
    @bunjavascript
    Aug 25
    Upgrading to Bun v1.4 reduced Tanstack Start memory usage by 1.8x - 2x here
    @Zareix
    Raphaël C.
    @Zareix
    Aug 25
    Divided by 2 RAM usage of my two Tanstack Start apps by upgrading to @bunjavascript v1.4
    4
  • @bunjavascript
    Bun
    @bunjavascript
    Aug 24
    In the next version of Bun `Bun.serve({ http2: true })` enables HTTP/2 support. The same API just works for HTTP/1.1, HTTP/2, and HTTP/3.
    Bar chart: "Bun.serve() now speaks HTTP/2". Requests per second, HTTP/2 over TLS, Linux x64. Three bars per scenario: Bun.serve(), node:http2 in Bun, node:http2 in Node.js v26.

Hello World (GET, 13 B response): 291,512 / 55,619 / 42,733 — 6.8× faster
POST 4 KB body: 136,077 / 45,366 / 30,112 — 4.5× faster
2 KB URL (GET, long path + query): 113,648 / 43,168 / 31,249 — 3.6× faster
64 KB response: 17,357 / 13,771 / 12,979 — 1.3× faster
Streaming (256 KB in → 32 KB out): 4,570 / 4,563 / 2,164 — 2.1× faster

Speedup is Bun.serve() vs Node.js v26.3. Bun v1.4.1, 64 cores, loopback, fresh server process per run. h2load -c 64 -m 16 -t 8 -n 100000.
    5
  • @bunjavascript
    Bun
    @bunjavascript
    Aug 24
    In the next version of Bun Compiled executables with bytecode start 17% faster, get 30% smaller, and use 30% less memory on start
    Dark graphic with the Bun logo and the command bun build --compile --bytecode --splitting. Headline: "In the next version of Bun, compiled executables get". Three large stat cards: "34% smaller binary — 428 MB → 284 MB" in pink, "17% faster startup — 458 ms → 382 ms" in orange, "32% less RAM — 383 MB → 260 MB" in green. Footer: "57 npm packages · 36 MB minified bundle · Linux x64 · ESM · medians vs Bun v1.4.0" and a pill reading "bytecode is now mmap'd & read in place".
    12
  • @bunjavascript
    Bun
    @bunjavascript
    Aug 23
    In the next version of Bun Buffer's read/write methods get up to 7x faster
    Benchmark card titled "Buffer reads & writes get faster — Coming in Bun v1.4.1. Now JIT‑compiled into direct loads & stores." Highlight tiles: 7.7× faster writeUInt8, 7.3× faster writeDoubleLE, 3.1× faster readInt32LE across 1,024 buffers, all vs Bun 1.4.0. A horizontal bar chart compares nanoseconds per call (lower is better, Apple Silicon) for Bun 1.4.1, Bun 1.4.0 and Node 26.5, with the speedup vs Bun 1.4.0 on the right. Varying offset over one 4 KB buffer: readInt8 0.24 vs 0.32 ns (1.3×), readUInt8 0.24 vs 0.48 (2.0×), readInt16BE 0.37 vs 0.56 (1.5×), readDoubleLE 0.61 vs 0.81 (1.3×), writeUInt8 0.28 vs 2.16 (7.7×), writeInt16BE 0.33 vs 2.29 (6.9×), writeUInt32BE 0.38 vs 2.63 (6.9×), writeFloatLE 0.28 vs 2.11 (7.5×), writeDoubleLE 0.27 vs 1.98 (7.3×). One access on each of 1,024 buffers: readInt32LE 0.65 vs 2.01 (3.1×), writeInt32LE 0.57 vs 1.2 (2.1×), readDoubleLE 0.66 vs 1.46 (2.2×). Node 26.5 is shown for context and ranges from 0.24 to 2.93 ns on the same tests.
    17