Category · Tier 1

Database

Geometric mean over /db-single, /queries?queries=20, /updates?queries=20 and /fortunes (125 connections for 10 s each) of the requests/s ratio, or, when either side was client-bound, the CPU-cost ratio (requests per CPU-second of the server and PostgreSQL together).

Tie margins in this category: A/A ±0.7%, pooled floor ±5.2% (from 14 implementations).

Ranking

Database: positions and scores (Axum = 1.00×, higher is better); endpoint columns are capacity ratios.
PositionImplementationScore vs Axum±/db-single/queries?queries=20/updates?queries=20/fortunes
ref.Axum1.00–1.001.001.001.00
1–2tieTopcoat1.15*–1.20*1.19*1.17*1.04*
Gin1.12*±7.6%1.28*1.25*1.26*0.78*
3–7tieActix Web0.95*±5.4%0.98*0.95*0.95*0.92*
Rullst (as generated) Rullst0.94*±7.7%1.00*1.08*0.84*0.85*
Fastify0.88*±14.4%0.83*0.87*0.98*0.84*
Phoenix0.87*±19.1%0.80*1.07*1.07*0.62*
Loco0.84*±13.3%0.87*0.92*0.90*0.68*
8–10tieSpring Boot0.67*±5.2%0.51*1.11*1.54*0.23*
NestJS0.58*±21.8%0.58*0.55*0.63*0.56*
ASP.NET Core0.52*±22.3%0.35*0.64*0.97*0.33*
11–13tieRuby on Rails0.30*±24.8%0.15*0.74*0.68*0.11*
Django0.25*±32.0%0.20*0.37*0.43*0.12*
FastAPI0.20*±27.5%0.13*0.29*0.35*0.11*
14Laravel0.055*†±20.9%0.017*0.17*0.25*0.013*

Diagnostics and the A/A control

Measured like the others and kept out of the ranking: a diagnostic isolates one setting, the A/A control (an identical copy of Axum) gives the noise the tie margins start from. Diagnostics

Not ranked: these rows have a score and no position.
RoleImplementationScore vs Axum/db-single/queries?queries=20/updates?queries=20/fortunesWhat it measures
diagnosticAxum (test_before_acquire off)1.23*1.20*1.23*1.25*1.26*Axum with one change: the SQLx pool does not ping an idle connection before handing it out (PgPoolOptions::test_before_acquire(false); the default is true). It bounds how much the ping costs Axum, and the other SQLx implementations that keep it (Actix Web and Loco; since 13.0.0-rc.1 both Rullst folders ping only connections idle for at least 500 ms), in the database endpoints. SQLx 0.9 also pings every connection when it returns to the pool, whatever this setting; that ping stays. Unranked.
diagnosticRullst (minimal) Rullst1.03*≈1.12*1.14*0.87*1.02*Serves its router through rullst::web::axum::serve, Axum's own server re-exported by Rullst, and bypasses rullst::Server, so none of the production middleware that cargo rullst new generates runs; its Hello world numbers are therefore largely Axum's. No other framework has such a stripped-down variant here, so it is listed apart from the headline tables.
A/A controlAxum (A/A control)1.00*≈1.00*1.00*1.00*1.00*An identical copy of the Axum baseline (every file but bench.json and README.md is byte-identical; harness.py validate checks it), measured like every other implementation against Axum on the same runner. Its scores should be 1.00; their largest deviation is each category's A/A margin, one term of the tie margin (docs/v3-spec.md section 12). Unranked.

How each position was decided

Job scores: the score of each job (runner) with its CPU model. Spread: the between-job spread the tie margins use (its own, or the pooled floor). Position check: the comparison with the score above (within the margin: the same group). vs Axum margin: the margin of the ≈ check against 1.00. PG µs/req: PostgreSQL's CPU time per request, with its ratio to Axum's on the same runners.
ImplementationPositionJob scoresSpreadPosition checkvs Axum marginLimitsPG µs/req /db-singlePG µs/req /queries?queries=20PG µs/req /updates?queries=20PG µs/req /fortunesRunner CPUs
Topcoat1–21.11 Xeon Platinum 8370C CPU @ 2.80GHz1.16 EPYC 9V741.28 Xeon 6975P-C±7.4% (own + mixed limits, own ±7.4%)–±7.4%/db-single: PostgreSQL-bound 15/15; /queries: PostgreSQL-bound 15/15; /updates: PostgreSQL-bound 15/15; margin widened: /fortunes measured at different loads on the two sides60 (0.67×)1,303 (0.70×)3,064 (0.71×)31 (0.58×)Xeon Platinum 8370C CPU @ 2.80GHz, EPYC 9V74, Xeon 6975P-C
Gin1–21.13 EPYC 9V741.10 EPYC 77631.12 EPYC 9V74±1.4% (own + mixed limits, own ±1.3%)±7.6% vs Topcoat, gap 2.6%: same group±5.2%/db-single: PostgreSQL-bound 15/15; /queries: PostgreSQL-bound 15/15; /updates: PostgreSQL-bound 15/15; margin widened: /fortunes measured at different loads on the two sides59 (0.67×)1,299 (0.72×)2,951 (0.70×)30 (0.54×)EPYC 9V74, EPYC 7763, EPYC 9V74
Actix Web3–70.94 EPYC 9V740.95 EPYC 9V740.95 EPYC 9V74±5.2% (floor (one CPU model), own ±0.4%)±5.4% vs Gin, gap 18.1%: new group±5.2%/db-single: PostgreSQL-bound 15/15; /queries: PostgreSQL-bound 15/15; /updates: PostgreSQL-bound 15/15; /fortunes: PostgreSQL-bound 8/1589 (1.01×)1,810 (1.01×)4,136 (1.01×)62 (1.11×)EPYC 9V74, EPYC 9V74, EPYC 9V74
Rullst (as generated)3–70.93 EPYC 77630.93 EPYC 77631.03 EPYC 9V45±5.5% (own + mixed limits, own ±5.5%)±7.7% vs Actix Web, gap 1.2%: same group±5.5%/db-single: PostgreSQL-bound 15/15; /queries: PostgreSQL-bound 15/15; /updates: PostgreSQL-bound 15/15; margin widened: /fortunes measured at different loads on the two sides112 (0.86×)2,226 (0.86×)6,643 (1.09×)68 (0.85×)EPYC 7763, EPYC 7763, EPYC 9V45
Fastify3–70.84 EPYC 77631.07 EPYC 9V450.86 Xeon 6975P-C±13.1% (own + mixed limits, own ±13.1%)±14.4% vs Rullst (as generated), gap 6.8%: same group±13.1%/db-single: PostgreSQL-bound 15/15; /queries: PostgreSQL-bound 15/15; /updates: PostgreSQL-bound 15/15; margin widened: /fortunes measured at different loads on the two sides69 (1.30×)1,368 (1.30×)2,738 (1.14×)34 (0.92×)EPYC 7763, EPYC 9V45, Xeon 6975P-C
Phoenix3–70.85 EPYC 9V740.85 EPYC 77631.09 EPYC 9V45±13.2% (own + mixed limits, own ±12.9%)±19.1% vs Fastify, gap 1.2%: same group±13.2%/queries: PostgreSQL-bound 10/15; /updates: PostgreSQL-bound 15/15; margin widened: /db-single, /fortunes measured at different loads on the two sides57 (0.64×)1,261 (0.68×)2,999 (0.69×)29 (0.52×)EPYC 9V74, EPYC 7763, EPYC 9V45
Loco3–70.83 Xeon 6975P-C0.85 EPYC 9V740.84 EPYC 7763±1.4% (own + mixed limits, own ±1.3%)±13.3% vs Phoenix, gap 3.5%: same group±5.2%/db-single: PostgreSQL-bound 15/15; /queries: PostgreSQL-bound 15/15; /updates: PostgreSQL-bound 15/15; margin widened: /fortunes measured at different loads on the two sides90 (1.01×)1,800 (1.01×)4,316 (1.08×)59 (1.09×)Xeon 6975P-C, EPYC 9V74, EPYC 7763
Spring Boot8–100.68 EPYC 9V740.65 EPYC 77630.68 EPYC 9V74±3.5% (own + mixed limits, own ±2.7%)±5.2% vs Loco, gap 24.5%: new group±5.2%/queries: PostgreSQL-bound 11/15; /updates: PostgreSQL-bound 15/15; margin widened: /db-single, /fortunes measured at different loads on the two sides104 (1.12×)1,322 (0.69×)2,718 (0.64×)71 (1.23×)EPYC 9V74, EPYC 7763, EPYC 9V74
NestJS8–100.71 EPYC 9V450.58 EPYC 9V740.55 EPYC 9V74±21.4% (own + mixed limits, own ±12.9%)±21.8% vs Spring Boot, gap 16.7%: same group±21.4%/db-single: PostgreSQL-bound 15/15; margin widened: /queries, /updates, /fortunes measured at different loads on the two sides130 (1.47×)2,761 (1.57×)5,489 (1.34×)54 (0.98×)EPYC 9V45, EPYC 9V74, EPYC 9V74
ASP.NET Core8–100.51 Xeon PLATINUM 8573C0.52 Xeon PLATINUM 8573C0.56 EPYC 7763±5.4% (own + mixed limits, own ±4.9%)±22.3% vs NestJS, gap 11.0%: same group±5.4%/queries: PostgreSQL-bound 15/15; /updates: PostgreSQL-bound 15/15; margin widened: /db-single, /fortunes measured at different loads on the two sides88 (1.21×)1,750 (1.21×)2,637 (0.79×)61 (1.24×)Xeon PLATINUM 8573C, Xeon PLATINUM 8573C, EPYC 7763
Ruby on Rails11–130.33 EPYC 77630.30 EPYC 9V740.25 Xeon 6975P-C±24.0% (own + mixed limits, own ±14.4%)±24.8% vs ASP.NET Core, gap 74.4%: new group±24.0%margin widened: /db-single, /queries, /updates, /fortunes measured at different loads on the two sides87 (0.68×)1,534 (0.68×)4,565 (0.86×)45 (0.62×)EPYC 7763, EPYC 9V74, Xeon 6975P-C
Django11–130.25 EPYC 77630.24 EPYC 77630.25 EPYC 7763±19.2% (floor (one CPU model) + mixed limits, own ±1.4%)±32.0% vs Ruby on Rails, gap 21.3%: same group±19.2%margin widened: /db-single, /queries, /updates, /fortunes measured at different loads on the two sides136 (1.05×)2,735 (1.06×)5,761 (0.98×)76 (0.96×)EPYC 7763, EPYC 7763, EPYC 7763
FastAPI11–130.20 EPYC 9V740.20 EPYC 9V450.20 EPYC 9V74±18.3% (own + mixed limits, own ±0.5%)±27.5% vs Django, gap 24.0%: same group±18.3%margin widened: /db-single, /queries, /updates, /fortunes measured at different loads on the two sides178 (1.96×)1,861 (1.05×)2,703 (0.66×)94 (1.70×)EPYC 9V74, EPYC 9V45, EPYC 9V74
Laravel140.055 EPYC 9V740.049 EPYC 9V740.059 EPYC 7763±9.3%±20.9% vs FastAPI, gap 261.3%: new group±9.3%/db-single: PostgreSQL-bound 15/15; /queries: PostgreSQL-bound 15/15; /updates: PostgreSQL-bound 15/15; /fortunes: PostgreSQL-bound 15/158,503 (72.90×)14,151 (5.76×)19,369 (3.48×)8,099 (112.44×)EPYC 9V74, EPYC 9V74, EPYC 7763

Per-endpoint numbers

Requests per second, efficiency, latency, errors and CPU of every run in this category:

Notes