OpenCode cuts memory 41% and OpenClaw starts 3.1x faster with Bun AoT
steipete · x · 2026-11-10
Benchmarks comparing Bun ahead-of-time compilation (bun compile) against Bun JIT and Node v26 (Linux x64, 12 cores, medians of 10+ runs):
- OpenClaw: startup-to-ready drops from 8.62s (Node) to 2.75s (3.1x faster); memory RSS drops from 1,181MB to 732MB (38% less)
- opencode (2.1.4): first frame drops from 0.65s to 0.46s (1.4x faster); peak memory over 20 turns drops from 712MB to 421MB (41% less)
Takeaway: long-running AI coding CLIs/gateways can get big startup and memory wins from Bun AoT. opencode's AoT build shipped to npm the same day; the underlying Bun work is still experimental (oven-sh/bun#48120).
More from coding & agent
- 20 Python MCP Tools Worth Knowing, From Server Building to Gateways, Security and Eval — MaryamMiradi · 2026-11-10
- Prompting tip: describe the problem, not your solution, for better agent grilling — mattpocockuk · 2026-11-10
- The One-Person Million-Dollar AI Agency: An Agent-Stack Blueprint With the Math — boringmarketer · 2026-11-10
- Developer natively manages 25-30 parallel agent sessions on macOS with Rex — jonathan_wilke · 2026-11-10
- Pi Dash orchestrates 10 Muse Code agents with Muse Ember, rewriting 178K lines in a day — AIatMeta · 2026-11-10
- 125 prompt injections, zero executed: testing a propose-and-policy agent architecture — RI4D · 2026-11-10