Implementation

Actix Web

Actix Web 4.19.0 · Rust · Rust · ranked

frameworks/actix on GitHub

Scores

Score relative to Axum (1.00×, higher is better) and position among the 14 ranked implementations; Stability: pass.
CategoryPositionScore±
Hello world11.15*–
Database3–70.95*±5.4%
Application11.18*–
Memory (high-water mark)1–51.00≈–
Startup1–131.00≈–

Runner CPUs: EPYC 9V74, EPYC 9V74, EPYC 9V74

Settings

Runtime
Rust 1.99.1 (release build, thin LTO)
Server
actix-web HttpServer
Workers
Default: one worker per available CPU (2)
Database layer
SQLx 0.9 (Actix Web has no ORM)
Templates
Askama 0.16
Logging
none
Dependency source
–
Status
measured

Application endpoints: mechanisms

Validation
web::Path, web::Query, web::Json and web::Form extractors (type errors 400; a non-integer id 404, PathConfig's default); ranges checked by hand (422)
CSRF
token (library): actix-csrf 0.8 (double-submit cookie: random token in the __Host-Csrf-Token cookie, echoed in the form; Csrf<Form<_>> extractor)
Session store
cookie-encrypted (documented): actix-session 0.11 CookieSessionStore (private cookie, key shared by the workers)

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
/text193,268 (147,269–196,295)1.1697,3470.990load-generator-bound 15/15
/json189,727 (144,120–193,827)1.1695,7240.780load-generator-bound 15/15
/db-single18,218 (13,943–18,518)0.9913,2107.900PostgreSQL-bound 15/15
/html184,385 (140,792–188,459)1.1693,0380.910load-generator-bound 15/15
/queries?queries=201,079 (842–1,115)0.99825133.840PostgreSQL-bound 15/15
/fortunes21,597 (16,086–23,294)0.8113,2736.980PostgreSQL-bound 8/15
GET /world/{id}17,116 (13,127–17,418)0.9712,9548.570PostgreSQL-bound 15/15
GET /worlds13,569 (9,070–13,780)0.9711,20410.940PostgreSQL-bound 15/15
POST /form118,297 (89,667–120,662)1.3759,4832.040
GET /me17,257 (12,866–17,547)1.8112,0039.070PostgreSQL-bound 15/15
/updates?queries=20477 (359–483)0.99399266.660PostgreSQL-bound 15/15
PUT /world/{id}14,055 (10,829–14,399)0.9911,96210.330PostgreSQL-bound 15/15

Measured versions

Runner jobs

Each job ran on its own GitHub-hosted runner; the CPU model differs between jobs.
JobCPU modelRoundsStatus
1EPYC 9V745measured
2EPYC 9V745measured
3EPYC 9V745measured