JH← Back to blog

Elysia on Bun Beats Express by 3-5x in Production, Not Just Benchmarks

Elysia's TypeScript-first, Web-Standard-native design on the Bun runtime holds a real 3-5x throughput advantage over Express even once database calls and middleware are added. Here's the honest number and a migration path that doesn't require a rewrite.


Backend framework performance debates tend to be long on marketing and short on numbers that survive contact with a real production workload. Elysia, a TypeScript-first framework built specifically for the Bun runtime, is one of the rare 2026 cases where the benchmarks are dramatic enough — and consistent enough across independent testing — to justify a serious look from teams still running Express on Node.

What Elysia actually is

Elysia pairs deliberately Express-like syntax with strong TypeScript type inference, built-in middleware support, file upload handling, and plugins for JWT auth and tRPC. The goal is a familiar developer experience on top of Bun's faster runtime, built directly on Web Standard APIs — Fetch, Request, Response — rather than a compatibility layer bolted onto Node's older HTTP abstractions.

That last detail is more consequential than it sounds. Because Elysia sits directly on Web Standard APIs instead of wrapping them, there's effectively zero "framework tax" — the overhead many Node.js frameworks introduce through additional abstraction layers between your code and the underlying runtime.

The honest performance number, not the headline one

In raw benchmark conditions, Elysia on Bun has handled over 250,000 requests per second, and independent testing puts it at roughly 2.6x faster than Express when both run on Bun, with separate tests showing 500,000–800,000 req/s on simple JSON workloads. Those are the numbers that make the rounds.

The number that actually matters for capacity planning is different. Add database queries, authentication middleware, and response transformation — the things a real production endpoint does — and throughput settles closer to 50,000–100,000 requests per second. That's still a genuine 3-5x improvement over comparable Express-on-Node deployments, and it's the figure worth planning capacity around, because it's measured under conditions that resemble what you'll actually run rather than a synthetic "hello world" route.

Type safety that flows past the server boundary

One of Elysia's more distinctive features is Eden Treaty, which propagates TypeScript types automatically from the server implementation to client code consuming the API. For teams keeping both frontend and backend in TypeScript, that removes a whole category of API contract bugs that usually requires manual type definitions, OpenAPI codegen, or a GraphQL schema to solve. Elysia gets there natively as part of the framework, not as an add-on step in the build pipeline.

Should you actually migrate?

The performance case is real, but a migration decision needs more than a benchmark chart. Bun's ecosystem is maturing quickly through 2026 but still has narrower third-party package compatibility than Node's long-established one — any team with deep dependencies on Node-specific native modules should test compatibility thoroughly before committing production traffic to it. The clearest case for adopting Elysia on Bun from day one is a greenfield service where throughput and latency genuinely matter: high-traffic API gateways, real-time data endpoints, anything where the 3-5x gain translates directly into fewer instances.

A migration path that doesn't require a rewrite

Rather than rewriting an existing service, pilot Elysia on Bun for a single new, non-critical service or an internal API first. That lets your team validate real dependency compatibility, measure actual throughput against your own workload patterns, and build familiarity with Bun's tooling before any conversation about migrating existing Express services happens.

If you're scoping a new service in the second half of 2026, Elysia deserves a spot in your framework bake-off — particularly for throughput-sensitive workloads, where the performance gain shows up directly as infrastructure cost savings rather than a number that only matters in a slide deck.