Bun
3,978 posts
user avatar
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
79.7K
Followers
  • Pinned
    user avatar
    Bun
    @bunjavascript
    Dec 2, 2025
    Bun is joining Anthropic!
    Bun is joining Anthropic
    From bun.com
    4.3M
  • user avatar
    Bun
    @bunjavascript
    Jun 14
    We put Bun's Rust rewrite in production on Prisma Compute
    From prisma.io
    88K
  • user avatar
    Bun
    @bunjavascript
    Jun 11
    Rust
    55K
  • Bun reposted
    user avatar
    Sรธren Bramer Schmidt
    @sorenbs
    Jun 10
    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.
    user avatar
    LD1117 low drop positive voltage regulator
    @aqrln
    Jun 10
    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!
    35K
  • Bun reposted
    user avatar
    praxe ๐Ÿ‡ฒ๐Ÿ‡ฆ
    @aymane_praxe
    Jun 7
    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.
    15K
  • Bun reposted
    user avatar
    Jaid
    @Jaidcel
    May 27
    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.
    user avatar
    Jarred Sumner
    Bun
    @jarredsumner
    May 17
    Replying to @nathanv246 @voidtalker and @LukasHozda
    bun upgrade --canary
    86K
  • user avatar
    Bun
    @bunjavascript
    May 26
    In the next version of Bun `Buffer.from(str, "hex")` gets 4.8x faster
    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
    24K
  • user avatar
    Bun
    @bunjavascript
    May 26
    In the next version of Bun `Buffer.from(str, "base64url")` gets 41x faster on large input
    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
    75K
  • user avatar
    Bun
    @bunjavascript
    May 25
    In the next version of Bun Bun.stringWidth() ๅค„็†ไธญๆ–‡ใ€ๆ—ฅๆ–‡ใ€้Ÿฉๆ–‡ๅญ—็ฌฆ็š„้€Ÿๅบฆๆๅ‡ไบ† 7~56 ๅ€ Bun.stringWidth() ใŒไธญๅ›ฝ่ชžใƒปๆ—ฅๆœฌ่ชžใƒป้Ÿ“ๅ›ฝ่ชžใฎๆ–‡ๅญ—ใง 7ใ€œ56 ๅ€้ซ˜้€ŸๅŒ–ใ•ใ‚Œใพใ—ใŸ Bun.stringWidth()๊ฐ€ ์ค‘๊ตญ์–ดยท์ผ๋ณธ์–ดยทํ•œ๊ตญ์–ด ๋ฌธ์ž์—์„œ 7~56๋ฐฐ ๋นจ๋ผ์กŒ์Šต๋‹ˆ๋‹ค
    โฏ bun string-width.mjs
clk: ~3.82 GHz
cpu: Apple M4 Max
runtime: bun 1.4.0 (arm64-darwin)

benchmark                   avg (min โ€ฆ max) p75   p99    (min โ€ฆ top 1%)
------------------------------------------- -------------------------------
Bun.stringWidth - cjk      7  19.17 ns/iter  19.87 ns       โ–ˆ
                      (17.12 ns โ€ฆ 26.40 ns)  21.05 ns โ–โ–โ–โ–โ–‚โ–โ–ˆโ–ƒโ–ˆโ–โ–‚โ–ˆโ–„โ–‚โ–†โ–…โ–‚โ–…โ–‚โ–โ–
Bun.stringWidth - cjk     70  30.67 ns/iter  31.01 ns            โ–ˆ โ–ƒ
                      (26.32 ns โ€ฆ 58.46 ns)  33.44 ns โ–โ–โ–โ–โ–โ–โ–โ–โ–โ–‚โ–†โ–ˆโ–†โ–ˆโ–„โ–…โ–โ–‚โ–โ–โ–
Bun.stringWidth - cjk    700 243.57 ns/iter 246.04 ns                   โ–ˆ
                    (216.38 ns โ€ฆ 256.17 ns) 249.29 ns โ–โ–โ–โ–โ–โ–โ–โ–โ–โ–โ–โ–โ–‚โ–โ–โ–‚โ–„โ–‚โ–ˆโ–‚โ–
Bun.stringWidth - cjk  7,000   2.42 ยตs/iter   2.43 ยตs                    โ–ˆ
                        (2.38 ยตs โ€ฆ 2.44 ยตs)   2.43 ยตs โ–โ–โ–โ–โ–โ–โ–โ–โ–โ–โ–โ–โ–โ–โ–โ–โ–โ–โ–โ–ˆโ–„
Bun.stringWidth - cjk 35,000  12.12 ยตs/iter  12.13 ยตs             โ–ˆ
                      (12.08 ยตs โ€ฆ 12.16 ยตs)  12.14 ยตs โ–ˆโ–โ–โ–โ–โ–โ–โ–โ–โ–โ–โ–โ–ˆโ–ˆโ–โ–ˆโ–ˆโ–โ–โ–ˆโ–ˆ

bun/bench/snippets on ๎‚  main [$!
    112K

New to X?

Sign up now to get your own personalized timeline!

Create account

By signing up, you agree to the Terms of Service and Privacy Policy, including Cookie Use.

Terms of Service|Privacy Policy|Cookie Policy|Accessibility|Ads info|ยฉ 2026 X Corp.
Don't miss what's happening
People on X are the first to know.
Log inSign up
✕

Wait! Don't Go Yet 🚀

Get our FREE eBook "10 Programming Tips That Changed Everything" when you subscribe!

No spam. Unsubscribe anytime.