Implementation
Rullst (as generated)
Rullst 13.0.0-rc.2 · Rust · Rust · ranked
Scores
| Category | Position | Score | ± |
|---|---|---|---|
| Hello world | 3–7 | 0.51* | ±39.5% |
| Database | 3–7 | 0.94* | ±7.7% |
| Application | 5–6 | 0.78* | ±4.8% |
| Memory (high-water mark) | 1–5 | 1.00≈ | ±0.4% |
| Startup | 1–13 | 1.00≈ | ±0.0% |
Runner CPUs: EPYC 7763, EPYC 7763, EPYC 9V45
Settings
- Runtime
- Rust 1.99.1 (release build, thin LTO)
- Server
- rullst::Server (production stack)
- 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 per request (RULLST_ACCESS_LOG=off, honoured since 13.0.0-alpha.6); Server's default tracing filter info,sqlx=warn for start-up messages and warnings
- Dependency source
- crates.io
- Status
- measured
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): Server security baseline (global): double-submit rullst_csrf cookie, token masked per response in the _token field (or X-CSRF-Token), 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 | 60,445 (57,118–145,769) | 0.53 | 30,270 | 3.10 | 0 | |
| /json | 57,996 (55,840–145,070) | 0.52 | 29,031 | 3.19 | 0 | |
| /db-single | 14,085 (13,661–31,691) | 1.12 | 7,903 | 10.12 | 0 | PostgreSQL-bound 15/15 |
| /html | 52,900 (50,530–139,018) | 0.49 | 26,496 | 3.51 | 0 | |
| /queries?queries=20 | 879 (855–1,969) | 1.16 | 593 | 147.72 | 0 | PostgreSQL-bound 15/15 |
| /fortunes | 13,718 (13,493–31,951) | 0.72 | 6,922 | 9.80 | 0 | |
| GET /world/{id} | 13,360 (12,846–31,003) | 1.10 | 7,786 | 11.79 | 0 | PostgreSQL-bound 15/15 |
| GET /worlds | 7,910 (7,597–18,655) | 0.82 | 6,728 | 17.85 | 0 | PostgreSQL-bound 15/15 |
| POST /form | 35,327 (30,721–100,402) | 0.69 | 17,690 | 5.05 | 0 | |
| GET /me | 7,453 (7,036–17,154) | 1.14 | 4,521 | 20.24 | 0 | PostgreSQL-bound 15/15 |
| /updates?queries=20 | 297 (297–731) | 0.91 | 222 | 421.06 | 0 | PostgreSQL-bound 15/15 |
| PUT /world/{id} | 5,629 (5,359–12,948) | 0.56 | 3,538 | 26.54 | 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 | EPYC 7763 | 5 | measured |
| 2 | EPYC 7763 | 5 | measured |
| 3 | EPYC 9V45 | 5 | measured |