Implementation

Topcoat

Topcoat 0.12.1 · Rust · Rust · ranked

frameworks/topcoat on GitHub

Scores

Score relative to Axum (1.00×, higher is better) and position among the 14 ranked implementations; Stability: pass.
CategoryPositionScore±
Hello world20.77*±8.9%
Database1–21.15*–
Application21.05*±5.8%
Memory (high-water mark)1–51.00≈±0.4%
Startup1–131.00≈±0.0%

Runner CPUs: Xeon Platinum 8370C CPU @ 2.80GHz, EPYC 9V74, Xeon 6975P-C

Settings

Runtime
Rust 1.99.1 (release build, thin LTO)
Server
topcoat::start (Hyper)
Workers
Tokio multi-threaded runtime, one worker per available CPU (2)
Database layer
Toasty 0.11 (get_by_id, update(), all()), max_pool_size = DB_POOL_SIZE
Templates
view! macro
Logging
none (Topcoat logs nothing per request by default)
Dependency source
–
Status
measured

Notes

Application endpoints: mechanisms

Validation
path_param!(id: i32 else not_found) (404), #[query_params(error = bad_request)], content::Json and content::Form (400); ranges checked by hand (400)
CSRF
fetch-metadata (built-in): built-in OriginPolicy (Sec-Fetch-Site, then Origin against Host; 403), on by default for every unsafe request
Session store
postgresql (built-in): built-in session feature (token in a __Host- cookie via CookieLayer); token hash, user id and expiry in user_sessions, read with Toasty

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
/text139,969 (123,805–222,141)0.7970,5681.330
/json136,896 (119,573–216,724)0.7868,9521.350
/db-single25,386 (23,304–49,585)1.4013,5255.800PostgreSQL-bound 15/15
/html124,223 (122,811–201,347)0.7562,5361.500
/queries?queries=201,501 (1,449–3,408)1.4291286.440PostgreSQL-bound 15/15
/fortunes24,306 (20,388–34,394)0.7912,3115.730
GET /world/{id}23,990 (22,686–47,180)1.3813,0566.430PostgreSQL-bound 15/15
GET /worlds17,739 (14,859–28,989)1.279,5399.280PostgreSQL-bound 15/15
POST /form105,060 (89,719–173,332)1.1952,8401.770
GET /me13,192 (12,642–24,940)1.397,20211.670PostgreSQL-bound 15/15
/updates?queries=20644 (623–1,499)1.38428197.880PostgreSQL-bound 15/15
PUT /world/{id}11,841 (11,547–24,540)0.856,99112.450PostgreSQL-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 Platinum 8370C CPU @ 2.80GHz5measured
2EPYC 9V745measured
3Xeon 6975P-C5measured