benchmarks

Throughput and latency,
with the full stack on.

MiiaJS next to Hono, Elysia, Fastify and NestJS on Bun, Deno and Node.js. The realistic tests run with CORS, JWT, routing, body parsing and validation enabled; the synthetic ones measure bare framework overhead.

measured on MiiaJS 0.6.0 · Autocannon · 100 connections · 5 passes of 30 s

Apple M1 Pro, 32 GB RAM, macOS 26.6.1 · measured August 21, 2026

realistic api

Realistic API

Full middleware stack - CORS, JWT, routing, body parsing, validation. The way real APIs work.

GET /api/users/:userId/posts/:postId

CORS, JWT verification, nested route params, JSON response.

MiiaJS (Bun)43,231 · 1.85ms
Elysia (Bun)42,170 · 1.91ms
Hono (Bun)39,651 · 1.88ms
Fastify (Bun)37,777 · 2.25ms
MiiaJS (Deno)36,464 · 2.15ms
NestJS+Fastify (Bun)32,716 · 2.43ms
MiiaJS uWS (Node)30,142 · 2.83ms
Hono (Deno)28,721 · 3.02ms
Fastify (Node)26,506 · 3.28ms
MiiaJS (Node)25,483 · 3.42ms
NestJS+Fastify (Node)25,387 · 3.44ms
Hono uWS (Node)20,830 · 4.30ms
Hono (Node)19,861 · 4.53ms

POST /api/workspaces/:ws/projects/:proj/tasks

CORS, JWT, JSON body, path and query params, custom headers, UUID, 201 status. The heaviest test.

MiiaJS (Bun)38,117 · 2.22ms
Elysia (Bun)37,537 · 2.01ms
Hono (Bun)36,674 · 2.34ms
Fastify (Bun)31,537 · 2.72ms
MiiaJS (Deno)29,854 · 2.91ms
NestJS+Fastify (Bun)28,489 · 2.98ms
MiiaJS uWS (Node)26,860 · 3.23ms
Hono (Deno)25,063 · 3.47ms
MiiaJS (Node)23,782 · 3.72ms
Fastify (Node)22,973 · 3.88ms
NestJS+Fastify (Node)21,746 · 4.12ms
Hono uWS (Node)19,721 · 4.56ms
Hono (Node)18,423 · 4.95ms

synthetic

Synthetic

Minimal handlers - pure framework overhead with no middleware. Bare routers have a natural edge here.

GET /

Returns { "message": "Hello, World!" }. No middleware, no parsing.

MiiaJS uWS (Node)94,721 · 0.27ms
MiiaJS (Deno)94,529 · 0.29ms
Hono (Deno)93,858 · 0.34ms
Hono uWS (Node)92,343 · 0.40ms
MiiaJS (Bun)82,359 · 0.82ms
Elysia (Bun)81,264 · 1.02ms
Hono (Bun)79,017 · 0.90ms
Fastify (Bun)78,527 · 0.80ms
Fastify (Node)70,822 · 1.06ms
Hono (Node)69,634 · 1.06ms
MiiaJS (Node)68,407 · 1.06ms
NestJS+Fastify (Bun)67,404 · 1.09ms
NestJS+Fastify (Node)63,583 · 1.07ms

POST /json

Parse a JSON body, generate a UUID, return a response.

Elysia (Bun)86,553 · 0.52ms
MiiaJS (Bun)86,435 · 0.58ms
Hono (Deno)85,945 · 0.89ms
Hono (Bun)85,447 · 0.59ms
MiiaJS (Deno)79,420 · 0.98ms
MiiaJS uWS (Node)75,451 · 1.06ms
Hono uWS (Node)73,926 · 1.06ms
Fastify (Bun)53,251 · 1.22ms
Hono (Node)48,524 · 1.58ms
MiiaJS (Node)47,903 · 1.68ms
NestJS+Fastify (Bun)43,339 · 2.03ms
Fastify (Node)43,233 · 2.12ms
NestJS+Fastify (Node)38,455 · 2.17ms

methodology

How it is measured

All benchmarks run under controlled conditions with randomized server order to reduce bias.

Load parameters

tool
Autocannon v8+
connections
100 concurrent
duration
30 s per pass
warmup
5 s at full connections, for the JIT
passes
5, averaged with stddev
workers
1, single-threaded, no clustering

What the API scenarios test

cors
Origin validation and preflight headers
jwt
Bearer token extraction and HS256 verification
routing
Path parameters from nested segments
body
JSON deserialization, POST scenarios
query
URL search parameter extraction
response
JSON serialization with custom status codes

Test machines

Apple M1 Pro

10 cores (8P + 2E) · 32 GB RAMmacOS 26.6.1Bun 1.4.0 · Deno 2.7.12 · Node.js 24.19.0

measured August 21, 2026

2×Intel Xeon Gold 5218R

40 cores / 80 threads @ 2.10 GHz · 128 GB RAMDebian 13 (Trixie)Bun 1.4.0 · Deno 2.7.12 · Node.js 24.19.0

measured August 22, 2026

Frameworks compared

  • MiiaJS0.6.0
    Decorator-driven, DI, guards, middleware · Bun, Deno, Node (+ uWS adapter)
  • Hono4.13.3
    Lightweight multi-runtime router · Bun, Deno, Node (+ uWS adapter)
  • Elysia1.4.29
    Bun-native framework · Bun
  • Fastify5.12.1
    Plugin-based Node.js framework · Bun, Node
  • NestJS + Fastify11.2.1
    Enterprise decorator framework · Bun, Node

Hono uWS uses the same @miiajs/uws-server adapter (uWebSockets.js 20.69.0), so the difference is pure framework overhead.

internals

Where the speed comes from

Core

  • Trie-based router - O(1) static path lookup
  • Compile-time pipelines - middleware chains resolved once at startup, not per request
  • Sync fast path - no Promise for a synchronous handler on a route without middleware, guards or schemas
  • No runtime reflection - native decorators resolve at class definition
  • Minimal allocations - no wrapper objects between your handler and the runtime

Node.js and uWebSockets adapters

  • Lazy Request and Headers proxy - no allocation until accessed
  • Body buffering - small payloads skip the ReadableStream overhead
  • LightResponse cache - status, body and headers without constructing a real Response

reproduce

Run it yourself

The benchmark suite is open source. Its CLI lets you pick scenarios, runtimes and the number of passes.

github.com/miiajs/benchmarks
terminal
git clone https://github.com/miiajs/benchmarks.git
cd benchmarks
bun install
bun run bench