Implementation
Rullst (minimal)
Rullst 13.0.0-rc.2 · Rust · Rust · diagnostic, unranked
frameworks/rullst-minimal on GitHub
Scores
| Category | Position | Score | ± |
|---|---|---|---|
| Hello world | diag. | 1.00*≈ | – |
| Database | diag. | 1.03*≈ | – |
| Application | diag. | 0.93* | – |
| Memory (high-water mark) | diag. | 1.00≈ | – |
| Startup | diag. | 1.00≈ | – |
Runner CPUs: Xeon 6975P-C, EPYC 7763, EPYC 7763
Settings
- Runtime
- Rust 1.99.1 (release build, thin LTO)
- Server
- Hyper via axum::serve (no rullst::Server)
- Workers
- Tokio multi-threaded runtime, one worker per available CPU (2)
- Database layer
- rullst-orm (#[derive(Orm)] with RowSnapshot: find, save, all, query builder; SQLx PostgreSQL pool)
- Templates
- html! macro
- Logging
- none
- Dependency source
- crates.io
- Status
- measured
Notes
- Role: Rullst's router, ORM and html! served without the production middleware that cargo rullst new generates, comparable to the Axum app. It is not how Rullst sets up an application, so it is a diagnostic shown next to the reference, with scores and without a position; Rullst as generated is the ranked Rullst.
- Listing: Serves its router through rullst::web::axum::serve, Axum's own server re-exported by Rullst, and bypasses rullst::Server, so none of the production middleware that cargo rullst new generates runs; its Hello world numbers are therefore largely Axum's. No other framework has such a stripped-down variant here, so it is listed apart from the headline tables.
Application endpoints: mechanisms
- Validation
- ValidatedJson and ValidatedForm (#[derive(Validate)]: constraint failures 422, unreadable bodies 400); GET /worlds: Query (400) and FieldErrors::validate (422); Path<i32> (400)
- CSRF
- token (built-in): csrf_middleware on /form and /login only: double-submit rullst_csrf cookie, token masked per response in the _token field, compared in constant time; 403
- Session store
- postgresql (generator): session registry as cargo rullst auth generates it: rullst_session cookie sealed with APP_KEY, one rullst_auth_sessions row per sign-in, read by primary key on every request
Tier 1 endpoints
| Endpoint | req/s | vs Axum | Efficiency (req/CPU-s) | p99 (ms) | Errors | Limits |
|---|---|---|---|---|---|---|
| /text | 120,815 (117,332–282,022) | 1.02 | 61,048 | 1.54 | 0 | load-generator-bound 15/15 |
| /json | 117,934 (110,884–275,979) | 1.02 | 59,544 | 1.58 | 0 | load-generator-bound 15/15 |
| /db-single | 13,895 (13,430–39,921) | 1.12 | 10,021 | 10.21 | 0 | PostgreSQL-bound 15/15 |
| /html | 105,911 (102,029–251,173) | 0.95 | 53,368 | 1.75 | 0 | |
| /queries?queries=20 | 880 (830–2,541) | 1.15 | 707 | 146.14 | 0 | PostgreSQL-bound 15/15 |
| /fortunes | 18,444 (17,591–37,956) | 0.92 | 9,353 | 7.74 | 0 | PostgreSQL-bound 4/15 |
| GET /world/{id} | 13,768 (12,822–37,554) | 1.14 | 10,090 | 10.41 | 0 | PostgreSQL-bound 15/15 |
| GET /worlds | 7,978 (7,036–18,184) | 0.82 | 8,648 | 17.40 | 0 | PostgreSQL-bound 15/15 |
| POST /form | 62,742 (59,945–162,646) | 1.16 | 31,433 | 2.90 | 0 | |
| GET /me | 7,562 (7,313–20,999) | 1.18 | 5,563 | 18.64 | 0 | PostgreSQL-bound 15/15 |
| /updates?queries=20 | 297 (285–842) | 0.89 | 255 | 418.45 | 0 | PostgreSQL-bound 15/15 |
| PUT /world/{id} | 5,713 (5,470–14,762) | 0.57 | 4,268 | 24.34 | 0 | PostgreSQL-bound 15/15 |
Measured versions
axum0.8.9hyper1.12.0rullst13.0.0-rc.2rullst-auth13.0.0-rc.2rullst-core13.0.0-rc.2rullst-orm13.0.0-rc.2rullst-sourceregistry+https://github.com/rust-lang/crates.io-indexsqlx0.9.0tokio1.54.1validator0.21.0
Runner jobs
| Job | CPU model | Rounds | Status |
|---|---|---|---|
| 1 | Xeon 6975P-C | 5 | measured |
| 2 | EPYC 7763 | 5 | measured |
| 3 | EPYC 7763 | 5 | measured |