Implementation

Axum

Axum 0.8.9 · Rust · Rust · reference

frameworks/axum on GitHub

Scores

Score relative to Axum (1.00×, higher is better) and position among the 14 ranked implementations; Stability: pass.
CategoryPositionScore±
Hello worldref.1.00–
Databaseref.1.00–
Applicationref.1.00–
Memory (high-water mark)ref.1.00–
Startupref.1.00–

Runner CPUs: EPYC 9V74 ×19, EPYC 7763 ×17, EPYC 9V45 ×6, Xeon 6975P-C ×5, Xeon PLATINUM 8573C ×3, Xeon Platinum 8370C CPU @ 2.80GHz ×1

Settings

Runtime
Rust 1.99.1 (release build, thin LTO)
Server
Hyper via axum::serve
Workers
Tokio multi-threaded runtime, one worker per available CPU (2)
Database layer
SQLx 0.9 (Axum has no ORM; its examples use SQLx)
Templates
Askama 0.16
Logging
none
Dependency source
–
Status
measured

Application endpoints: mechanisms

Validation
Path, Query, Json and Form extractors (type errors: 400, Json data errors 422); ranges checked by hand (422)
CSRF
token (library): axum_csrf 0.12 (token in an encrypted cookie, HMAC in the form field)
Session store
postgresql (library): tower-sessions 0.15 with tower-sessions-sqlx-store 0.16 PostgresStore

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
/text166,105 (110,610–286,539)1.0084,0881.130load-generator-bound 236/255
/json162,890 (108,887–280,048)1.0082,2811.150load-generator-bound 207/255
/db-single18,251 (12,130–35,084)1.0013,5878.200PostgreSQL-bound 255/255
/html158,246 (102,787–272,689)1.0080,0051.180load-generator-bound 164/255
/queries?queries=201,090 (742–2,173)1.00917124.970PostgreSQL-bound 255/255
/fortunes27,329 (17,780–43,703)1.0014,1436.960PostgreSQL-bound 255/255
GET /world/{id}17,505 (11,490–33,647)1.0013,5148.320PostgreSQL-bound 255/255
GET /worlds13,418 (7,780–22,840)1.0011,63311.220PostgreSQL-bound 255/255
POST /form83,772 (49,849–147,613)1.0041,9532.150
GET /me9,354 (6,189–18,187)1.006,76016.370PostgreSQL-bound 255/255
/updates?queries=20471 (322–979)1.00459273.060PostgreSQL-bound 255/255
PUT /world/{id}14,086 (9,501–27,613)1.0011,99610.550PostgreSQL-bound 255/255

Measured versions

Runner jobs

Each job ran on its own GitHub-hosted runner; the CPU model differs between jobs.
JobCPU modelRoundsStatus