@saltyAom: Memory usage of barebone Bun HTTP server on Bun (Rust) is 6.0MB from ~8MB Running on Canary e750984 on M1 Max

x.com · 2026-05-17 · by Long Nguyen ·xcom
SaltyAom
@saltyAom
Memory usage of barebone Bun HTTP server on Bun (Rust) is 6.0MB from ~8MB Running on Canary e750984 on M1 Max
💬 10 · 🔁 6 · ❤️ 493 · 👁 66.8K
12:33 AM · May 17, 2026 · View on X

Replies (15)

any @anyxnow
@saltyAom i’m seeing 200 mb usage from startup… what would be the appropriate way to diagnose this?
SaltyAom @saltyAom
Generate heap snapshot and upload to chrome devtool or AI of your choice
mg95 @TheMG95
yeah but with a billion more vulnerabilities!
doucheen @doucheen
That's a lot of memory, did you consider using programs written in C?
The Doctor @Doctorthe113
Speaking of which, do you recommend updating Elysia version? 👀 We are on 1.3.3
Seva @Two_Above
Thanks for checking! Did you do any stability testing? Does it still keep the memory after expanding the heap like the zig version?
Joris van Haeren @JorisvanHaeren
What about performance?
Gregor @bygregorr
wait is that cold start or sustained under load
Jeff Lee @jefflee_build
🤯
FreeSolDev @FreeSolGamesDev
so major improvement heck yea
lasagnelennart @lasagnelennart
🐐
forloop @forloopcodes
in the next version of bun you choose what language-compiled bun you want to use bun run index.js --rust bun run index.js --go bun run index.js --zig
Sam Lambert @samlambert
why don't we just rewrite zig in rust?
Matt Pocock @mattpocockuk
Think I might need to revisit Effect on my YouTube channel There is literally no better AX for building backend stuff in TypeScript. Once you see it through that lens it's addictive
Lane || Boot.dev @wagslane
sometimes i get bored and go to a random tech company's website to see how they're pretending to be all about ai now

Comments (0)

No comments yet