Implementation
Axum (A/A control)
Axum 0.8.9 · Rust · Rust · A/A control, unranked
frameworks/axum-control on GitHub
Scores
| Category | Position | Score | ± |
|---|---|---|---|
| Hello world | A/A | 1.00*≈ | – |
| Database | A/A | 1.00*≈ | – |
| Application | A/A | 1.00*≈ | – |
| Memory (high-water mark) | A/A | 1.00≈ | – |
| Startup | A/A | 1.00≈ | – |
Runner CPUs: EPYC 9V74, EPYC 9V74, Xeon PLATINUM 8573C
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
Notes
- Role: An identical copy of the Axum baseline (every file but bench.json and README.md is byte-identical;
harness.py validatechecks 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.
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
| Endpoint | req/s | vs Axum | Efficiency (req/CPU-s) | p99 (ms) | Errors | Limits |
|---|---|---|---|---|---|---|
| /text | 168,527 (163,459–191,903) | 1.00 | 85,231 | 1.09 | 0 | load-generator-bound 10/15 |
| /json | 164,467 (160,860–185,660) | 1.00 | 83,170 | 1.13 | 0 | load-generator-bound 10/15 |
| /db-single | 18,538 (18,140–22,164) | 1.00 | 13,805 | 8.00 | 0 | PostgreSQL-bound 15/15 |
| /html | 160,356 (155,078–183,375) | 1.00 | 80,990 | 1.16 | 0 | load-generator-bound 10/15 |
| /queries?queries=20 | 1,104 (1,078–1,325) | 1.00 | 937 | 116.68 | 0 | PostgreSQL-bound 15/15 |
| /fortunes | 27,617 (27,056–30,095) | 1.00 | 14,270 | 5.86 | 0 | PostgreSQL-bound 15/15 |
| GET /world/{id} | 17,807 (17,281–21,442) | 1.00 | 13,780 | 8.06 | 0 | PostgreSQL-bound 15/15 |
| GET /worlds | 13,935 (11,499–15,121) | 0.98 | 11,759 | 11.12 | 0 | PostgreSQL-bound 15/15 |
| POST /form | 86,771 (81,110–92,604) | 1.01 | 43,540 | 2.11 | 0 | |
| GET /me | 9,510 (9,317–11,493) | 1.00 | 6,930 | 15.29 | 0 | PostgreSQL-bound 15/15 |
| /updates?queries=20 | 483 (469–595) | 1.00 | 470 | 265.78 | 0 | PostgreSQL-bound 15/15 |
| PUT /world/{id} | 14,106 (13,495–17,567) | 0.99 | 12,046 | 10.19 | 0 | PostgreSQL-bound 15/15 |
Measured versions
argon20.6.0askama0.16.1axum0.8.9axum_csrf0.12.0hyper1.12.0sqlx0.9.0tokio1.54.1tower-sessions0.15.0tower-sessions-sqlx-store0.16.0
Runner jobs
| Job | CPU model | Rounds | Status |
|---|---|---|---|
| 1 | EPYC 9V74 | 5 | measured |
| 2 | EPYC 9V74 | 5 | measured |
| 3 | Xeon PLATINUM 8573C | 5 | measured |