Implementation

Loco

Loco 1.3.1 · Rust · Rust · ranked

frameworks/loco on GitHub

Scores

Score relative to Axum (1.00×, higher is better) and position among the 14 ranked implementations; Stability: pass.
CategoryPositionScore±
Hello world3–70.49*±14.9%
Database3–70.84*±13.3%
Application40.83*±4.3%
Memory (high-water mark)1–51.00≈±0.4%
Startup1–131.00≈±0.0%

Runner CPUs: Xeon 6975P-C, EPYC 9V74, EPYC 7763

Settings

Runtime
Rust 1.99.1 (release build, thin LTO)
Server
loco start (Axum/Hyper), LOCO_ENV=production
Workers
Tokio multi-threaded runtime, one worker per available CPU (2)
Database layer
SeaORM 2.0 (find_by_id, ActiveModel::update, Entity::find().all), pool max_connections = DB_POOL_SIZE
Templates
Tera 2 (Loco TeraView)
Logging
none per request (logger middleware off in config/production.yaml); application logger at warn
Dependency source
–
Status
measured

Application endpoints: mechanisms

Validation
Loco's QueryValidate, JsonValidate and FormValidate extractors (validator 0.20: 400; Axum's Json data errors 422, Form parse errors 422); Path<i32> (400)
CSRF
token (library): axum_csrf 0.12 layer on /form and /login (token in an encrypted cookie, HMAC in the form field)
Session store
cookie-signed (built-in): Loco auth_session feature, default cookie store (Session, CurrentUser<users::Model>)

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
/text88,625 (55,554–143,618)0.5144,4942.090
/json88,666 (55,748–142,278)0.5144,4582.080
/db-single18,169 (12,096–34,989)0.9910,3928.740PostgreSQL-bound 15/15
/html77,291 (49,599–133,180)0.4838,7302.400
/queries?queries=201,090 (730–2,082)0.99771131.540PostgreSQL-bound 15/15
/fortunes17,005 (10,841–24,248)0.588,6338.300
GET /world/{id}17,168 (11,017–33,108)0.9810,3639.770PostgreSQL-bound 15/15
GET /worlds13,610 (8,638–22,758)0.998,83812.220PostgreSQL-bound 15/15
POST /form48,498 (33,153–92,344)0.6424,2813.740
GET /me17,193 (10,875–29,893)1.779,34311.250PostgreSQL-bound 15/15
/updates?queries=20458 (297–880)0.93381287.590PostgreSQL-bound 15/15
PUT /world/{id}8,403 (5,537–15,982)0.595,68518.420PostgreSQL-bound 15/15

Measured versions

Runner jobs

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