trillium
Emerging · Rust · engine: trillium-http · standard configuration · completeness 4/4
Trillium 1.x async Rust web framework on tokio. trillium-rustls for TLS (h1 + h2 via ALPN), trillium-quinn for HTTP/3, trillium-websockets for /ws, trillium-static for /static/* served from disk per request, trillium-compression middleware for runtime gzip/brotli, serde_json for JSON, trillium-grpc for the benchmark.BenchmarkService gRPC endpoints, deadpool-postgres for async-db and crud.
Achievements
🥉 2 Bronze. Top three of a field, taken in this entry's own league: the family composite, the same composite among entries written in the same language, and each test profile it is scored on. Every field is the one the badges publish, so a medal and a badge always say the same thing. How medals are awarded.
| Medal | Award | Field | Rank |
|---|---|---|---|
| 🥉 Bronze | Within its language | Rust · HTTP/2 | 3 of 7 |
| 🥉 Bronze | Within its language | Rust · gRPC | 3 of 4 |
Composite rank
Each profile of a family is worth 1,000 to the entry that leads it, and the composite is the sum over the family, less 2.5% for each of routing, middleware, request and response the entry does not do for you - its completeness factor, which the WebSocket and gRPC families do not carry. The field is this entry's own league: engines and reverse proxies are scored apart from frameworks. How it works.
| Family | Rank | Composite |
|---|---|---|
| HTTP/1.1 | 20 of 85 | 4109 |
| HTTP/2 | 8 of 31 | 1548 |
| HTTP/3 | 6 of 16 | 853 |
| Gateway | 7 of 8 | 732 |
| gRPC | 6 of 10 | 851 |
| WebSocket | 20 of 30 | 962 |
Every result
Alpha Round, 43 runs. Requests per second is the best of three; latency, CPU and memory come from that run.
| Category | Profile | Conns | Req/sec | Avg | p99 | CPU | Memory |
|---|---|---|---|---|---|---|---|
| Connection | Baseline | 4,096 | 1,321,859 | 1.40ms | 3.27ms | 3390.2% | 201MiB |
| Connection | Pipelined | 4,096 | 3,941,520 | 6.41ms | 21.60ms | 6293.7% | 150MiB |
| Connection | Short-lived | 4,096 | 624,633 | 897us | 1.75ms | 1884.9% | 138MiB |
| Concurrency | Async Delay | 32,000 | 493,339 | 49.38ms | 56.20ms | 2940.2% | 1.3GiB |
| Efficiency | Latency-10K | 1,024 | 9,880 | 76.0us | 101.0us | 22.3% | 139MiB |
| Efficiency | Latency-1M | 1,024 | 986,592 | 647.1us | 2603.0us | 2482.1% | 141MiB |
| Efficiency | Latency-500K/8 | 1,024 | 352,076 | 2636655.6us | 5548032.0us | 786.6% | 75MiB |
| Workload | JSON Comp | 4,096 | 117,131 | 8.94ms | 28.10ms | 6096.0% | 807MiB |
| Workload | JSON Comp | 16,384 | 118,589 | 8.11ms | 28.90ms | 5994.8% | 784MiB |
| Workload | JSON TLS | 4,096 | 1,048,553 | 3.33ms | 25.56ms | 5116.5% | 428MiB |
| Workload | 8Gbit | 512 | 48,970 | 100.7us | 139.0us | 228.8% | 224MiB |
| Workload | Static TLS | 1,024 | 683,651 | 1.49ms | 22.98ms | 6024.6% | 494MiB |
| Database | Async DB | 1,024 | 222,635 | 3.63ms | 5.63ms | 3113.5% | 201MiB |
| Database | Fortunes | 1,024 | 201,737 | 3.68ms | 6.01ms | 4689.4% | 303MiB |
| HTTP/2 | Baseline | 256 | 4,090,664 | 6.27ms | 78.18ms | 6389.8% | 327MiB |
| HTTP/2 | Baseline | 1,024 | 3,436,518 | 20.16ms | 298.61ms | 6453.2% | 601MiB |
| HTTP/2 | Static | 256 | 21,260 | 362.67ms | 1.15s | 3918.3% | 1.8GiB |
| HTTP/2 | Static | 1,024 | 17,762 | 1.02s | 3.32s | 4428.8% | 2.6GiB |
| HTTP/2 | Baseline (h2c) | 256 | 4,069,118 | 6.74ms | 32.54ms | 6427.4% | 314MiB |
| HTTP/2 | Baseline (h2c) | 1,024 | 3,562,309 | 16.55ms | 329.47ms | 6381.9% | 476MiB |
| HTTP/2 | Baseline (h2c) | 4,096 | 3,481,833 | 43.72ms | 1.18s | 6110.7% | 1.3GiB |
| HTTP/2 | JSON (h2c) | 1,024 | 2,058,299 | 11.95ms | 603.79ms | 6402.7% | 962MiB |
| HTTP/2 | JSON (h2c) | 4,096 | 1,840,089 | 36.63ms | 3.90s | 6037.0% | 2.9GiB |
| HTTP/3 | Baseline | 64 | 462,611 | 9.96ms | 129.84ms | 2583.1% | 297MiB |
| HTTP/3 | Static | 64 | 220,372 | 7.83ms | 88.14ms | 2382.2% | 444MiB |
| gRPC | Unary | 256 | 3,059,755 | 8.89ms | 41.32ms | 6534.2% | 322MiB |
| gRPC | Unary | 1,024 | 2,603,720 | 23.77ms | 287.98ms | 6438.7% | 574MiB |
| gRPC | Unary TLS | 256 | 2,778,948 | 9.75ms | 54.59ms | 6407.2% | 462MiB |
| gRPC | Unary TLS | 1,024 | 2,451,838 | 27.03ms | 219.47ms | 6454.1% | 718MiB |
| Gateway | Gateway (H2) | 512 | 68,957 | 221.54ms | 1.94s | 4162.7% | 3.2GiB |
| Gateway | Gateway (H2) | 1,024 | 68,626 | 417.28ms | 4.08s | 4306.6% | 5.5GiB |
| Gateway | Gateway (H3) | 64 | 76,398 | 26.63ms | 89.55ms | 3948.0% | 838MiB |
| Gateway | Gateway (H3) | 256 | 58,576 | 135.22ms | 845.84ms | 2817.8% | 1.9GiB |
| Gateway | Production Stack | 256 | 15,537 | 246.69ms | 1.04s | 1103.0% | 1.1GiB |
| Gateway | Production Stack | 1,024 | 46,799 | 333.74ms | 2.14s | 3441.1% | 3.6GiB |
| WebSocket | Echo | 512 | 1,144,309 | 421us | 992us | 1743.3% | 116MiB |
| WebSocket | Echo | 4,096 | 1,389,942 | 1.34ms | 3.04ms | 2291.7% | 236MiB |
| WebSocket | Echo | 16,384 | 1,372,263 | 2.30ms | 4.59ms | 2368.5% | 323MiB |
| WebSocket | Echo Pipelined | 512 | 17,948,083 | 428us | 1.03ms | 2088.3% | 107MiB |
| WebSocket | Echo Pipelined | 4,096 | 21,916,169 | 1.41ms | 3.37ms | 2822.4% | 211MiB |
| WebSocket | Echo Pipelined | 16,384 | 21,433,900 | 2.08ms | 4.51ms | 2822.9% | 305MiB |
| WebSocket | Echo Short-lived | 512 | 613,064 | 272us | 801us | 1572.2% | 144MiB |
| WebSocket | Echo Short-lived | 4,096 | 629,297 | 313us | 1.04ms | 1544.0% | 170MiB |
Compared with
The Rust web frameworks around trillium on the HTTP/1.1 composite, and the one leading them. Entries of other leagues are left out: a composite does not carry from one league to another. The last column shows every profile side by side.
| Entry | Composite | vs trillium | |
|---|---|---|---|
| cpeak | 7187 | +75% | head to head |
| trillium-tuned | 5820 | +42% | head to head |
| mq-bridge | 4109 | +0% | head to head |
| axum | 4065 | -1% | head to head |
| rama | 3124 | -24% | head to head |
Compare trillium with any Rust entry · Compare trillium with any entry, in any language · Every Rust entry, ranked
Results updated · How the benchmark is run · The machine · Add or fix an entry