Category · Tier 1
Hello world
Geometric mean over /text, /json and /html (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.6%, pooled floor ±8.4% (from 14 implementations).
Ranking
- Bar: the score, longer is better
- Line: Axum, the reference (1.00×)
- * a run counted with its CPU-cost ratio (requests per CPU-second of the server and PostgreSQL) because a side was client-bound
- ≈ within the tie margin of Axum's 1.00×: not distinguishable from Axum
- ± the tie margin of the comparison with the score above (the first position has none)
| Position | Implementation | Score vs Axum | ± | /text | /json | /html |
|---|---|---|---|---|---|---|
| ref. | Axum | 1.00 | – | 1.00 | 1.00 | 1.00 |
| 1 | Actix Web | 1.15* | – | 1.15* | 1.15* | 1.16* |
| 2 | Topcoat | 0.77* | ±8.9% | 0.79* | 0.78* | 0.74* |
| 3–7tie | Fastify | 0.51* | ±35.7% | 0.56* | 0.56* | 0.43* |
| Rullst (as generated) Rullst | 0.51* | ±39.5% | 0.52* | 0.52* | 0.49 | |
| Loco | 0.49* | ±14.9% | 0.50* | 0.50* | 0.48* | |
| Gin | 0.48* | ±8.4% | 0.53* | 0.47* | 0.45* | |
| ASP.NET Core | 0.47 | ±8.4% | 0.54 | 0.55 | 0.34 | |
| 8 | NestJS | 0.33* | ±27.8% | 0.36* | 0.33* | 0.29* |
| 9 | Spring Boot | 0.21* | ±31.9% | 0.22* | 0.25* | 0.17* |
| 10 | Phoenix | 0.16* | ±29.7% | 0.17* | 0.17* | 0.13* |
| 11 | FastAPI | 0.073* | ±28.9% | 0.081* | 0.077* | 0.063* |
| 12 | Django | 0.030* | ±15.0% | 0.031* | 0.031* | 0.029 |
| 13 | Ruby on Rails | 0.013* | ±23.0% | 0.014* | 0.014* | 0.013* |
| 14 | Laravel | 0.006* | ±21.7% | 0.006* | 0.006* | 0.005* |
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
| Role | Implementation | Score vs Axum | /text | /json | /html | What it measures |
|---|---|---|---|---|---|---|
| A/A control | Axum (A/A control) | 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. |
| diagnostic | Rullst (minimal) Rullst | 1.00*≈ | 1.02* | 1.03* | 0.95 | 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. |
| diagnostic | Axum (test_before_acquire off) | 0.99*≈ | 0.99* | 1.00* | 0.99* | 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. |
How each position was decided
| Implementation | Position | Job scores | Spread | Position check | vs Axum margin | Limits | Runner CPUs |
|---|---|---|---|---|---|---|---|
| Actix Web | 1 | 1.16 EPYC 9V741.15 EPYC 9V741.15 EPYC 9V74 | ±8.4% (floor (one CPU model), own ±0.6%) | – | ±8.4% | /text: load-generator-bound 15/15; /json: load-generator-bound 15/15; /html: load-generator-bound 15/15 | EPYC 9V74, EPYC 9V74, EPYC 9V74 |
| Topcoat | 2 | 0.76 Xeon Platinum 8370C CPU @ 2.80GHz0.80 EPYC 9V740.76 Xeon 6975P-C | ±3.0% | ±8.9% vs Actix Web, gap 50.0%: new group | ±8.4% | – | Xeon Platinum 8370C CPU @ 2.80GHz, EPYC 9V74, Xeon 6975P-C |
| Fastify | 3–7 | 0.34 EPYC 77630.62 EPYC 9V450.51 Xeon 6975P-C | ±35.5% | ±35.7% vs Topcoat, gap 50.2%: new group | ±35.5% | – | EPYC 7763, EPYC 9V45, Xeon 6975P-C |
| Rullst (as generated) | 3–7 | 0.49 EPYC 77630.50 EPYC 77630.65 EPYC 9V45 | ±14.6% | ±39.5% vs Fastify, gap 0.3%: same group | ±14.6% | – | EPYC 7763, EPYC 7763, EPYC 9V45 |
| Loco | 3–7 | 0.49 Xeon 6975P-C0.51 EPYC 9V740.48 EPYC 7763 | ±2.8% | ±14.9% vs Rullst (as generated), gap 3.6%: same group | ±8.4% | – | Xeon 6975P-C, EPYC 9V74, EPYC 7763 |
| Gin | 3–7 | 0.49 EPYC 9V740.44 EPYC 77630.48 EPYC 9V74 | ±4.7% | ±8.4% vs Loco, gap 2.7%: same group | ±8.4% | – | EPYC 9V74, EPYC 7763, EPYC 9V74 |
| ASP.NET Core | 3–7 | 0.46 Xeon PLATINUM 8573C0.47 Xeon PLATINUM 8573C0.47 EPYC 7763 | ±0.9% | ±8.4% vs Gin, gap 3.0%: same group | ±8.4% | – | Xeon PLATINUM 8573C, Xeon PLATINUM 8573C, EPYC 7763 |
| NestJS | 8 | 0.53 EPYC 9V450.32 EPYC 9V740.32 EPYC 9V74 | ±27.8% | ±27.8% vs ASP.NET Core, gap 42.7%: new group | ±27.8% | – | EPYC 9V45, EPYC 9V74, EPYC 9V74 |
| Spring Boot | 9 | 0.22 EPYC 9V740.17 EPYC 77630.22 EPYC 9V74 | ±13.6% | ±31.9% vs NestJS, gap 54.9%: new group | ±13.6% | – | EPYC 9V74, EPYC 7763, EPYC 9V74 |
| Phoenix | 10 | 0.15 EPYC 9V740.15 EPYC 77630.24 EPYC 9V45 | ±25.5% | ±29.7% vs Spring Boot, gap 34.7%: new group | ±25.5% | – | EPYC 9V74, EPYC 7763, EPYC 9V45 |
| FastAPI | 11 | 0.073 EPYC 9V740.091 EPYC 9V450.073 EPYC 9V74 | ±12.1% | ±28.9% vs Phoenix, gap 114.4%: new group | ±12.1% | – | EPYC 9V74, EPYC 9V45, EPYC 9V74 |
| Django | 12 | 0.031 EPYC 77630.030 EPYC 77630.030 EPYC 7763 | ±8.4% (floor (one CPU model), own ±1.6%) | ±15.0% vs FastAPI, gap 139.3%: new group | ±8.4% | – | EPYC 7763, EPYC 7763, EPYC 7763 |
| Ruby on Rails | 13 | 0.015 EPYC 77630.013 EPYC 9V740.010 Xeon 6975P-C | ±21.0% | ±23.0% vs Django, gap 125.9%: new group | ±21.0% | – | EPYC 7763, EPYC 9V74, Xeon 6975P-C |
| Laravel | 14 | 0.006 EPYC 9V740.005 EPYC 9V740.006 EPYC 7763 | ±4.7% | ±21.7% vs Ruby on Rails, gap 141.1%: new group | ±8.4% | – | EPYC 9V74, EPYC 9V74, EPYC 7763 |
Per-endpoint numbers
Requests per second, efficiency, latency, errors and CPU of every run in this category: