Open Source #DevOps#JavaScript 6 min read

Bun 2.0 is surprisingly production-ready

We migrated a medium-sized Node service. Here is what happened.

Published May 12, 2025 Updated May 27, 2026

The migration

A 12-route Express-style API with pg, redis, and a few heavy dependencies. Migration took 4 hours, most of which was dealing with native addons.

What improved

  • Cold start: 340ms (Node) → 38ms (Bun)
  • npm install: 18s → 4s
  • Test suite: 22s → 7s

What broke

  • --experimental-vm-modules Jest tests need rewriting for Bun's test runner
  • One native module (argon2) required a rebuild
  • Some require / import interop edge cases in old code

Verdict

For greenfield services: use Bun now. For migrations: plan a half-day per service, budget time for native addon issues.

Share this article
X LinkedIn
Weekly digest

One email a week.
The five things that mattered.

Friday mornings. No hype. Unsubscribe anytime.

No spam.