---
title: "Hono vs Express vs Fastify: Node.js 26 Benchmark & Trade-offs"
description: "Benchmark and architectural comparison of Hono 4.13 vs Express 5.3 vs Fastify 5.12 on Node.js 26.13: plain JSON (164k vs 105k vs 128k RPS), auth routing, POST JSON schema validation (Ajv vs Zod), RSS memory, and when to migrate."
author: Aleksei Aleinikov
date: 2026-11-25
lang: en
tags: [hono vs express, fastify vs express, hono vs fastify, hono benchmark, hono nodejs, typescript web framework]
canonical: https://www.alekseialeinikov.com/en/blog/topics/programming/hono-vs-express-vs-fastify-benchmark
source: alekseialeinikov.com
---

# Hono vs Express vs Fastify: Node.js 26 Benchmark & Trade-offs

Every TypeScript backend discussion eventually circles back to the same three names: **Express**, **Fastify**, and **Hono**. Express 5 finally shipped native async error handling, Fastify 5 refined its schema-compiled pipeline, and Hono 4 turned Web Standards into a serious Node.js contender alongside Bun and Cloudflare Workers.

Older 2024 benchmarks claimed Hono was always slower than Fastify on Node.js because of the `IncomingMessage`-to-`Request` adapter. I wanted to see what actually holds up on **Node.js 26.13.0** with **Express 5.3.0**, **Fastify 5.12.8**, and **Hono 4.13.22** (`@hono/node-server 2.1.11`) — across plain JSON, authenticated parameterized routes, and validated `POST` payloads.

![Hono vs Express vs Fastify 3D editorial cover featuring official framework logos and Node.js 26.13 benchmark results.](https://media.alekseialeinikov.com/programming/hono-express-fastify/cover-1200.724c76efec8e3c87.webp)

## Hono vs Express vs Fastify: the short answer

| Metric (Node.js 26.13, 100 conns) | **Hono 4.13** | **Fastify 5.12** | **Express 5.3** |
|---|---:|---:|---:|
| `GET /health` (plain JSON) | **164,629 req/s** (`1 ms` p99) | 128,293 req/s (`2 ms` p99) | 105,451 req/s (`1 ms` p99) |
| `GET /users/:id` + auth header | **149,227 req/s** (`1 ms` p99) | 139,323 req/s (`1 ms` p99) | 87,744 req/s (`2 ms` p99) |
| `POST /orders` + schema validation | 110,997 req/s (`1 ms` p99) | **132,037 req/s** (`1 ms` p99) | 75,605 req/s (`3 ms` p99) |
| RSS memory under load | 80 MB | **78 MB** | 119 MB (+52%) |
| Cold start to ready | 133.0 ms | 144.3 ms | **110.5 ms** |
| Runtime portability | Node, Bun, Deno, Workers | Primarily Node.js | Primarily Node.js |

The headline takeaway is nuanced: **Hono won raw routing and plain JSON on Node.js 26**, whereas **Fastify won the realistic `POST` + validation test** by ~19% thanks to precompiled Ajv schemas. Express 5 trailed in throughput and used 50% more RAM, though it remains plenty fast for IO-bound CRUD apps.

## Benchmark setup and methodology

> **Engineering Basis:** All tests ran locally against isolated single-process Node.js `v26.13.0` servers on `127.0.0.1` using `autocannon 9.0.0` (2s warm-up at 50 connections, then 6s per endpoint at 100 concurrent connections, zero errors across all runs). Validation used Fastify's built-in compiled JSON Schema (Ajv) vs `zod 4.6.7` on Hono (`@hono/zod-validator`) and Express.

Using Zod on Hono and Express while using JSON Schema on Fastify reflects how teams actually build apps in each framework rather than forcing an artificial lowest common denominator.

![Throughput and p99 latency benchmark chart comparing Hono 4.13, Fastify 5.12, and Express 5.3 across three scenarios on Node.js 26.13.](https://media.alekseialeinikov.com/programming/hono-express-fastify/rps-1200.e158ded4a80aa49d.webp "Hono leads plain JSON and auth routing on Node.js 26; Fastify wins validated POST payloads with compiled Ajv schemas.")

## Fastify vs Express vs Hono: why the numbers split

Looking closely at the three scenarios explains *why* the rankings flip between `GET` and `POST`:

1. **Raw JSON and routing (`GET /health`, `GET /users/:id`):** Hono's `RegExpRouter` compiles routes into a single regex match with near-zero allocation, and Node 26's improved `fetch`/Web Streams internals dramatically shrunk the `@hono/node-server` adapter overhead. Meanwhile, Express 5's linear middleware chain and `req`/`res` prototype augmentation cost noticeable CPU once auth headers and params are involved (dropping from 105k to 87k req/s).
2. **Validated JSON payloads (`POST /orders`):** Fastify compiles JSON schemas via **Ajv** at startup and pairs them with `fast-json-stringify` for serialization. That kept Fastify at **132,037 req/s** even when parsing, validating, and serializing JSON. Zod's runtime parsing on Hono (`110,997 req/s`) and Express (`75,605 req/s`) adds per-request allocation overhead — still fast, yet ~16% slower than Fastify's compiled path.
3. **Memory footprint under load:** Fastify (**78 MB**) and Hono (**80 MB**) stayed lean throughout the benchmark. Express 5 climbed to **119 MB RSS** (+52%), which matters when packing dozens of microservice pods onto Kubernetes nodes.

![Architecture diagram explaining how Hono's Web Standards adapter, Fastify's compiled Ajv pipeline, and Express's middleware chain impact CPU and memory.](https://media.alekseialeinikov.com/programming/hono-express-fastify/architecture-1200.8528bcf07a6fc204.webp "Hono trades a thin Node adapter for multi-runtime portability; Fastify optimizes Node.js end-to-end with compiled JSON schemas.")

## What changes on Bun and Edge runtimes

If your deployment target is **Cloudflare Workers**, **Deno**, or **Bun**, Fastify and Express are effectively off the table (or require Node compatibility layers that negate their advantages). Hono runs natively on `Request` and `Response` primitives directly inside V8 isolates or JavaScriptCore without `@hono/node-server` in between.

Even if you start on **Node.js 26** today, picking Hono keeps an exit ramp open: the exact same route handlers and middleware deploy unchanged to Workers or Bun later — just like full-stack TypeScript frameworks such as [TanStack Start 1.0](https://www.alekseialeinikov.com/en/blog/topics/programming/tanstack-start-1-vs-nextjs-architecture-comparison) lean on portable Web Standard handlers.

## Type safety and RPC (`hono/client` vs Fastify vs Express)

Raw RPS rarely decides whether a team ships faster; **TypeScript ergonomics** do. Here is the exact same `POST /orders` endpoint in Hono and Fastify:

```ts
// Hono: route + Zod validation + automatic RPC type export
import { Hono } from 'hono';
import { zValidator } from '@hono/zod-validator';
import { z } from 'zod';

const app = new Hono();

const routes = app.post(
  '/orders',
  zValidator('json', z.object({
    userId: z.number().int().positive(),
    amount: z.number().positive(),
    currency: z.enum(['EUR', 'USD']),
  })),
  (c) => {
    const order = c.req.valid('json');
    return c.json({ accepted: true, ...order }, 201);
  },
);

export type AppType = typeof routes;
```

In a frontend or monorepo (React, Vite, Next.js, or TanStack Start), `hc<AppType>('https://api.example.com')` gives you autocomplete and compile-time type checks on every path, body, and response — zero OpenAPI codegen step required.

Fastify achieves strong type safety too via `@fastify/type-provider-typebox` (or `fastify-type-provider-zod`) plus automatic OpenAPI generation (`@fastify/swagger`):

```ts
// Fastify 5 + TypeBox: compiles to Ajv JSON Schema + fast-json-stringify
import Fastify from 'fastify';
import { Type, type TypeBoxTypeProvider } from '@fastify/type-provider-typebox';

const app = Fastify().withTypeProvider<TypeBoxTypeProvider>();
const OrderBody = Type.Object({
  userId: Type.Integer({ minimum: 1 }),
  amount: Type.Number({ exclusiveMinimum: 0 }),
  currency: Type.Union([Type.Literal('EUR'), Type.Literal('USD')]),
});

app.post('/orders', { schema: { body: OrderBody } }, async (req, reply) => {
  return reply.code(201).send({ accepted: true, ...req.body });
});
```

That extra `schema` ceremony is ideal for **public or polyglot APIs** consumed by Go, Python, or mobile clients, while Express 5 remains manually typed (`Request<Params, ResBody, ReqBody>`) unless you layer wrappers like tRPC on top.

## When to choose Express, Fastify, or Hono

![Decision matrix showing when to pick Hono, Fastify, or Express in production based on runtime, validation needs, and TypeScript monorepos.](https://media.alekseialeinikov.com/programming/hono-express-fastify/decision-1200.76596e7a0777f1ca.webp "Pick Hono for TypeScript RPC and multi-runtime portability; pick Fastify for validation-heavy Node.js microservices; keep Express 5 for legacy stability.")

1. **Choose Hono 4** for greenfield TypeScript APIs, full-stack monorepos using `hono/client` RPC, BFF layers, and anything that might run on Cloudflare Workers, Bun, or Node.js.
2. **Choose Fastify 5** for dedicated Node.js microservices with strict JSON validation throughput, automatic OpenAPI/Swagger specs, Pino structured logging, and plugin encapsulation.
3. **Keep Express 5** when you already have a working Express codebase with custom middleware (Passport, legacy session stores) and your bottleneck is PostgreSQL or external APIs rather than Node.js routing overhead.

## Practical migration checklist & official v5/v4 gotchas

- **Measuring before migrating:** Profile your production service first — once a real PostgreSQL query (like [PostgreSQL index lookups](https://www.alekseialeinikov.com/en/blog/topics/data/postgres-index-types-which-to-use-btree-gin-brin-benchmark)) or external API sits inside the handler, all three frameworks converge to roughly **3,000–6,000 req/s**, so switching solely for raw router RPS rarely drops p95 latency by more than 1–2 ms.
- **Express 5 breaking changes:** The default `query parser` switched from `extended` to `simple` (nested queries like `?user[name]=...` need `app.set('query parser', 'extended')`), `req.query` is now a read-only getter, and `express.static` ignores dotfiles (such as `.well-known`) by default.
- **Fastify 5 breaking changes:** Requires Node.js 20+, dropped shorthand schema syntax (explicit `type: 'object'` is required), forbids mixing callback and Promise plugin APIs, and splits port out of `request.hostname` into `request.port`. For maximum validation speed, pair Fastify with **TypeBox** (`@fastify/type-provider-typebox`) rather than Zod.
- **Hono 4 routing & OpenAPI (`RegExpRouter` vs `TrieRouter`):** Hono's default `RegExpRouter` compiles all routes into one regular expression for speed (~20–30 KB bundle, `<5 ms` Edge cold starts). On apps with hundreds of complex overlapping wildcards, you can swap explicitly to `new Hono({ router: new TrieRouter() })`, and use `@hono/zod-openapi` when you need both Zod types and generated OpenAPI specs.
