Implementation

Fastify

Fastify 5.12.8 · JavaScript · Popular references · ranked

frameworks/fastify on GitHub

Scores

Score relative to Axum (1.00×, higher is better) and position among the 14 ranked implementations; Stability: pass.
CategoryPositionScore±
Hello world3–70.51*±35.7%
Database3–70.88*±14.4%
Application5–60.76*±12.8%
Memory (high-water mark)100.37±2.8%
Startup1–131.00≈±0.0%

Runner CPUs: EPYC 7763, EPYC 9V45, Xeon 6975P-C

Settings

Runtime
Node.js 26.13.1 (active LTS), NODE_ENV=production
Server
Fastify (node:http)
Workers
node:cluster with BENCH_WORKERS worker processes (2)
Database layer
@fastify/postgres 6.1 (node-postgres 8.23 pool), DB_POOL_SIZE / BENCH_WORKERS connections per process
Templates
@fastify/view 12 with EJS 7
Logging
none (Fastify's logger is off by default)
Dependency source
–
Status
measured

Application endpoints: mechanisms

Validation
JSON schemas for params, querystring and bodies (Ajv; the PUT body without type coercion): 400
CSRF
token (library): @fastify/csrf-protection 8 with @fastify/cookie (secret in the _csrf cookie, token in the _csrf field)
Session store
cookie-encrypted (library): @fastify/secure-session 8 (libsodium secretbox), key shared by the cluster processes

Tier 1 endpoints

Medians over every round (lowest and highest round in brackets); vs Axum: the median of the per-round ratios on the same runners.
Endpointreq/svs AxumEfficiency (req/CPU-s)p99 (ms)ErrorsLimits
/text144,060 (43,368–159,664)0.5772,1161.730
/json138,520 (41,487–155,626)0.5769,3641.810
/db-single23,183 (9,552–27,488)0.7921,0458.210PostgreSQL-bound 15/15
/html114,279 (31,691–118,843)0.4457,1622.090
/queries?queries=201,412 (587–1,594)0.761,611119.380PostgreSQL-bound 15/15
/fortunes30,465 (11,427–33,719)0.7215,2537.820
GET /world/{id}22,415 (9,221–25,772)0.7819,8787.730PostgreSQL-bound 15/15
GET /worlds15,440 (6,715–15,859)0.7213,63611.270PostgreSQL-bound 15/15
POST /form54,607 (16,954–60,536)0.3827,3344.170
GET /me22,140 (9,113–24,755)1.3915,8938.490PostgreSQL-bound 15/15
/updates?queries=20710 (291–731)0.88898236.640PostgreSQL-bound 15/15
PUT /world/{id}18,376 (7,513–20,088)0.7616,1649.590PostgreSQL-bound 15/15

Measured versions

Runner jobs

Each job ran on its own GitHub-hosted runner; the CPU model differs between jobs.
JobCPU modelRoundsStatus
1EPYC 77635measured
2EPYC 9V455measured
3Xeon 6975P-C5measured