Category · Tier 1
Application
Geometric mean over GET /world/{id}, GET /worlds, PUT /world/{id}, POST /form (with CSRF verification) and GET /me (a signed-in session) (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.8%, pooled floor ±4.3% (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 | ± | GET /world/{id} | GET /worlds | PUT /world/{id} | POST /form | GET /me | CSRF | Session store |
|---|---|---|---|---|---|---|---|---|---|---|
| ref. | Axum | 1.00 | – | 1.00 | 1.00 | 1.00 | 1.00 | 1.00 | token | postgresql |
| 1 | Actix Web | 1.18* | – | 0.96* | 0.96* | 0.98* | 1.37 | 1.86* | token | cookie-encrypted |
| 2 | Topcoat | 1.05* | ±5.8% | 1.19* | 1.05* | 0.69* | 1.19 | 1.26* | fetch-metadata | postgresql |
| 3 | Gin | 0.94* | ±4.3% | 1.23* | 1.01* | 0.57* | 0.57 | 1.80* | fetch-metadata | cookie-signed |
| 4 | Loco | 0.83* | ±4.3% | 0.87* | 0.88* | 0.51* | 0.64 | 1.61* | token | cookie-signed |
| 5–6tie | Rullst (as generated) Rullst | 0.78* | ±4.8% | 1.00* | 0.84* | 0.48* | 0.69 | 1.07* | token | postgresql |
| Fastify | 0.76* | ±12.8% | 0.81* | 0.73* | 0.77* | 0.38 | 1.42* | token | cookie-encrypted | |
| 7 | Phoenix | 0.56* | ±19.5% | 0.79* | 0.73* | 0.51* | 0.18 | 1.06* | token | postgresql |
| 8 | Spring Boot | 0.43* | ±15.7% | 0.56* | 0.63* | 0.47* | 0.080 | 1.15* | token | memory |
| 9–10tie | ASP.NET Core | 0.34* | ±16.0% | 0.35* | 0.39* | 0.25* | 0.22 | 0.58* | token | cookie-encrypted |
| NestJS | 0.32* | ±20.1% | 0.55* | 0.49* | 0.21* | 0.15 | 0.41* | fetch-metadata | postgresql | |
| 11–13tie | Django | 0.13* | ±17.2% | 0.18* | 0.16* | 0.14* | 0.040 | 0.22* | token | postgresql |
| FastAPI | 0.11* | ±16.4% | 0.13* | 0.12* | 0.11* | 0.046 | 0.23* | token | cookie-signed | |
| Ruby on Rails | 0.10* | ±32.8% | 0.15* | 0.15* | 0.13* | 0.019 | 0.22* | token | postgresql | |
| 14 | Laravel | 0.017* | ±31.6% | 0.017* | 0.018* | 0.018* | 0.008 | 0.030* | token | cookie-encrypted |
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 | GET /world/{id} | GET /worlds | PUT /world/{id} | POST /form | GET /me | CSRF | Session store | What it measures |
|---|---|---|---|---|---|---|---|---|---|---|
| diagnostic | Axum (test_before_acquire off) | 1.15* | 1.21* | 1.17* | 1.18* | 1.01 | 1.20* | token | postgresql | 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. |
| A/A control | Axum (A/A control) | 1.00*≈ | 1.00* | 0.98* | 0.99* | 1.01 | 1.00* | token | postgresql | 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 | 0.93* | 1.13* | 0.90* | 0.52* | 1.16 | 1.18* | token | postgresql | 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. |
How each position was decided
| Implementation | Position | Job scores | Spread | Position check | vs Axum margin | Limits | PG µs/req GET /world/{id} | PG µs/req GET /worlds | PG µs/req PUT /world/{id} | PG µs/req GET /me | Runner CPUs |
|---|---|---|---|---|---|---|---|---|---|---|---|
| Actix Web | 1 | 1.18 EPYC 9V741.18 EPYC 9V741.19 EPYC 9V74 | ±4.3% (floor (one CPU model), own ±0.5%) | – | ±4.3% | /world: PostgreSQL-bound 15/15; /worlds: PostgreSQL-bound 15/15; /world-update: PostgreSQL-bound 15/15; /me: PostgreSQL-bound 15/15 | 93 (1.03×) | 122 (1.03×) | 114 (1.01×) | 93 (0.50×) | EPYC 9V74, EPYC 9V74, EPYC 9V74 |
| Topcoat | 2 | 1.01 Xeon Platinum 8370C CPU @ 2.80GHz1.05 EPYC 9V741.09 Xeon 6975P-C | ±3.8% | ±5.8% vs Actix Web, gap 12.4%: new group | ±4.3% | /world: PostgreSQL-bound 15/15; /worlds: PostgreSQL-bound 15/15; /world-update: PostgreSQL-bound 15/15; /me: PostgreSQL-bound 15/15 | 61 (0.68×) | 89 (0.75×) | 139 (1.20×) | 125 (0.67×) | Xeon Platinum 8370C CPU @ 2.80GHz, EPYC 9V74, Xeon 6975P-C |
| Gin | 3 | 0.95 EPYC 9V740.93 EPYC 77630.93 EPYC 9V74 | ±2.0% (own + mixed limits, own ±1.4%) | ±4.3% vs Topcoat, gap 12.5%: new group | ±4.3% | /world: PostgreSQL-bound 15/15; /worlds: PostgreSQL-bound 15/15; /world-update: PostgreSQL-bound 15/15; margin widened: /me measured at different loads on the two sides | 61 (0.68×) | 98 (0.82×) | 179 (1.58×) | 63 (0.34×) | EPYC 9V74, EPYC 7763, EPYC 9V74 |
| Loco | 4 | 0.83 Xeon 6975P-C0.82 EPYC 9V740.83 EPYC 7763 | ±0.6% | ±4.3% vs Gin, gap 12.1%: new group | ±4.3% | /world: PostgreSQL-bound 15/15; /worlds: PostgreSQL-bound 15/15; /world-update: PostgreSQL-bound 15/15; /me: PostgreSQL-bound 15/15 | 91 (1.01×) | 120 (1.00×) | 205 (1.82×) | 92 (0.50×) | Xeon 6975P-C, EPYC 9V74, EPYC 7763 |
| Rullst (as generated) | 5–6 | 0.78 EPYC 77630.78 EPYC 77630.86 EPYC 9V45 | ±4.8% | ±4.8% vs Loco, gap 6.4%: new group | ±4.8% | /world: PostgreSQL-bound 15/15; /worlds: PostgreSQL-bound 15/15; /world-update: PostgreSQL-bound 15/15; /me: PostgreSQL-bound 15/15 | 111 (0.85×) | 209 (1.20×) | 307 (1.91×) | 228 (0.84×) | EPYC 7763, EPYC 7763, EPYC 9V45 |
| Fastify | 5–6 | 0.72 EPYC 77630.90 EPYC 9V450.75 Xeon 6975P-C | ±11.8% | ±12.8% vs Rullst (as generated), gap 3.9%: same group | ±11.8% | /world: PostgreSQL-bound 15/15; /worlds: PostgreSQL-bound 15/15; /world-update: PostgreSQL-bound 15/15; /me: PostgreSQL-bound 15/15 | 70 (1.31×) | 110 (1.43×) | 87 (1.33×) | 72 (0.67×) | EPYC 7763, EPYC 9V45, Xeon 6975P-C |
| Phoenix | 7 | 0.53 EPYC 9V740.56 EPYC 77630.65 EPYC 9V45 | ±14.9% (own + mixed limits, own ±10.2%) | ±19.5% vs Fastify, gap 34.8%: new group | ±14.9% | margin widened: /world, /worlds, /world-update, /me measured at different loads on the two sides | 59 (0.66×) | 86 (0.72×) | 136 (1.20×) | 92 (0.48×) | EPYC 9V74, EPYC 7763, EPYC 9V45 |
| Spring Boot | 8 | 0.44 EPYC 9V740.45 EPYC 77630.43 EPYC 9V74 | ±4.6% (own + mixed limits, own ±2.0%) | ±15.7% vs Phoenix, gap 28.9%: new group | ±4.6% | /world-update: PostgreSQL-bound 8/15; margin widened: /world, /worlds, /me measured at different loads on the two sides | 109 (1.17×) | 113 (0.82×) | 184 (1.57×) | 108 (0.57×) | EPYC 9V74, EPYC 7763, EPYC 9V74 |
| ASP.NET Core | 9–10 | 0.34 Xeon PLATINUM 8573C0.34 Xeon PLATINUM 8573C0.41 EPYC 7763 | ±15.2% (own + mixed limits, own ±10.6%) | ±16.0% vs Spring Boot, gap 28.6%: new group | ±15.2% | margin widened: /world, /worlds, /world-update, /me measured at different loads on the two sides | 90 (1.20×) | 144 (1.25×) | 193 (2.10×) | 91 (0.59×) | Xeon PLATINUM 8573C, Xeon PLATINUM 8573C, EPYC 7763 |
| NestJS | 9–10 | 0.38 EPYC 9V450.32 EPYC 9V740.31 EPYC 9V74 | ±12.3% (own + mixed limits, own ±10.6%) | ±20.1% vs ASP.NET Core, gap 4.1%: same group | ±12.3% | /world: PostgreSQL-bound 15/15; /worlds: PostgreSQL-bound 13/15; /me: PostgreSQL-bound 15/15; margin widened: /world-update measured at different loads on the two sides | 132 (1.49×) | 182 (1.54×) | 402 (3.56×) | 412 (2.24×) | EPYC 9V45, EPYC 9V74, EPYC 9V74 |
| Django | 11–13 | 0.13 EPYC 77630.12 EPYC 77630.13 EPYC 7763 | ±11.4% (floor (one CPU model) + mixed limits, own ±1.9%) | ±17.2% vs NestJS, gap 152.8%: new group | ±11.4% | margin widened: /world, /worlds, /world-update, /me measured at different loads on the two sides | 142 (1.09×) | 189 (1.07×) | 295 (1.82×) | 349 (1.30×) | EPYC 7763, EPYC 7763, EPYC 7763 |
| FastAPI | 11–13 | 0.12 EPYC 9V740.11 EPYC 9V450.11 EPYC 9V74 | ±11.2% (own + mixed limits, own ±3.9%) | ±16.4% vs Django, gap 12.7%: same group | ±11.2% | margin widened: /world, /worlds, /world-update, /me measured at different loads on the two sides | 188 (1.97×) | 272 (2.09×) | 188 (1.66×) | 193 (0.98×) | EPYC 9V74, EPYC 9V45, EPYC 9V74 |
| Ruby on Rails | 11–13 | 0.12 EPYC 77630.10 EPYC 9V740.071 Xeon 6975P-C | ±30.0% (own + mixed limits, own ±27.5%) | ±32.8% vs FastAPI, gap 8.9%: same group | ±30.0% | margin widened: /world, /worlds, /world-update, /me measured at different loads on the two sides | 89 (0.73×) | 127 (0.74×) | 313 (2.23×) | 144 (0.61×) | EPYC 7763, EPYC 9V74, Xeon 6975P-C |
| Laravel | 14 | 0.017 EPYC 9V740.015 EPYC 9V740.018 EPYC 7763 | ±8.4% | ±31.6% vs Ruby on Rails, gap 525.8%: new group | ±8.4% | /world: PostgreSQL-bound 15/15; /worlds: PostgreSQL-bound 15/15; /world-update: PostgreSQL-bound 15/15; /me: PostgreSQL-bound 15/15 | 8,563 (72.20×) | 9,777 (61.40×) | 9,041 (60.36×) | 8,837 (36.16×) | EPYC 9V74, EPYC 9V74, EPYC 7763 |
Per-endpoint numbers
Requests per second, efficiency, latency, errors and CPU of every run in this category: