tako
Emerging · Rust · engine: hyper · standard configuration · completeness 4/4
Tako 2.7.1 on hyper and Tokio, default configuration. Plain HTTP/1.1 and WebSocket on :8080 run tako's per-thread server (one current-thread runtime per CPU, SO_REUSEPORT listeners, PerThreadConfig::default()); h2c (:8082), HTTP/1.1 and h2 over rustls (:8081, :8443) and HTTP/3 over quinn (:8443/udp) run tako's multi-thread Server. Routing, Path/Query/State/body extractors and the Json responder through the tako API, the compression plugin with default settings on the JSON routes, ServeDir with precompressed .br/.gz sidecars read from disk per request, WebSocketUpgrade for /ws, and deadpool-postgres for async-db.
- Official repository
- Official website
- Benchmark implementation
- All Rust entries, compared
- Open the leaderboard
Achievements
🥈 4 Silver · 🥉 1 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 |
|---|---|---|---|
| 🥈 Silver | Family composite | Composite · WebSocket | 2 of 31 |
| 🥈 Silver | Within its language | Rust · WebSocket | 2 of 7 |
| 🥈 Silver | Test profile | WebSocket · Echo | 2 of 31 |
| 🥈 Silver | Test profile | WebSocket · Echo Pipelined | 2 of 28 |
| 🥉 Bronze | Within its language | Rust · HTTP/1.1 | 3 of 9 |
Composite rank
Each profile of a family is worth its weight × 1,000 to the entry that leads it - 1, or 0.5 apiece for two profiles that measure one thing - 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 | 7 of 88 | 4940 |
| HTTP/2 | 25 of 34 | 427 |
| HTTP/3 | 10 of 17 | 287 |
| Gateway | 6 of 8 | 843 |
| gRPC | 10 of 10 | 155 |
| WebSocket | 2 of 31 | 2732 |
Every result
Alpha Round, 40 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 | 3,201,484 | 1.28ms | 2.52ms | 6335.0% | 124MiB |
| Connection | Pipelined | 4,096 | 20,799,968 | 3.15ms | 3.29ms | 6767.5% | 121MiB |
| Connection | Short-lived | 4,096 | 2,421,703 | 1.66ms | 3.20ms | 6447.1% | 154MiB |
| Concurrency | Async Delay | 32,000 | 2,236,354 | 14.19ms | 17.70ms | 5165.3% | 921MiB |
| Efficiency | Latency-10K | 1,024 | 9,982 | 72.3us | 105.0us | 26.6% | 50MiB |
| Efficiency | Latency-1M | 1,024 | 997,802 | 103.7us | 180.0us | 2636.7% | 49MiB |
| Workload | JSON Comp | 4,096 | 204,795 | 19.94ms | 28.90ms | 6478.6% | 243MiB |
| Workload | JSON Comp | 16,384 | 204,554 | 79.09ms | 141.70ms | 6501.0% | 592MiB |
| Workload | JSON TLS | 4,096 | 1,001,696 | 3.63ms | 39.49ms | 5949.9% | 224MiB |
| Workload | 8Gbit | 512 | 48,904 | 104.6us | 135.0us | 252.0% | 93MiB |
| Workload | Static TLS | 1,024 | 136,403 | 6.69ms | 43.59ms | 3608.4% | 160MiB |
| HTTP/2 | Baseline | 256 | 872,980 | 28.83ms | 75.56ms | 4754.1% | 208MiB |
| HTTP/2 | Baseline | 1,024 | 719,930 | 112.60ms | 297.44ms | 4770.7% | 544MiB |
| HTTP/2 | Static | 256 | 129,744 | 61.92ms | 195.15ms | 2846.6% | 337MiB |
| HTTP/2 | Static | 1,024 | 129,095 | 220.07ms | 416.25ms | 3172.9% | 977MiB |
| HTTP/2 | Baseline (h2c) | 256 | 865,081 | 29.23ms | 75.88ms | 4817.3% | 209MiB |
| HTTP/2 | Baseline (h2c) | 1,024 | 734,010 | 118.06ms | 320.96ms | 4776.7% | 551MiB |
| HTTP/2 | Baseline (h2c) | 4,096 | 690,356 | 251.40ms | 861.38ms | 4818.1% | 1.3GiB |
| HTTP/2 | JSON (h2c) | 1,024 | 606,563 | 40.05ms | 121.95ms | 4065.6% | 483MiB |
| HTTP/2 | JSON (h2c) | 4,096 | 522,847 | 156.84ms | 670.06ms | 3813.1% | 1.3GiB |
| HTTP/3 | Baseline | 64 | 534,875 | 7.34ms | 89.23ms | 3061.3% | 102MiB |
| HTTP/3 | Static | 64 | 113,798 | 30.65ms | 445.38ms | 3298.6% | 172MiB |
| gRPC | Unary | 256 | 578,661 | 42.92ms | 110.61ms | 5128.5% | 201MiB |
| gRPC | Unary | 1,024 | 493,020 | 139.18ms | 469.42ms | 5171.3% | 532MiB |
| gRPC | Unary TLS | 256 | 575,891 | 43.85ms | 110.69ms | 5188.0% | 226MiB |
| gRPC | Unary TLS | 1,024 | 498,325 | 139.36ms | 443.27ms | 5139.5% | 584MiB |
| Gateway | Gateway (H2) | 512 | 76,150 | 200.80ms | 938.92ms | 3900.4% | 2.6GiB |
| Gateway | Gateway (H2) | 1,024 | 70,030 | 409.46ms | 1.99s | 3831.0% | 5.4GiB |
| Gateway | Gateway (H3) | 64 | 81,857 | 24.82ms | 87.62ms | 3477.9% | 488MiB |
| Gateway | Gateway (H3) | 256 | 58,187 | 134.06ms | 799.05ms | 2636.9% | 1.5GiB |
| Gateway | Production Stack | 256 | 54,205 | 77.48ms | 223.21ms | 3206.2% | 1003MiB |
| Gateway | Production Stack | 1,024 | 47,003 | 345.31ms | 837.61ms | 3375.5% | 3.2GiB |
| WebSocket | Echo | 512 | 4,120,095 | 123us | 158us | 6328.1% | 40MiB |
| WebSocket | Echo | 4,096 | 4,094,900 | 992us | 1.06ms | 6056.1% | 113MiB |
| WebSocket | Echo | 16,384 | 3,711,259 | 4.37ms | 5.26ms | 6101.8% | 394MiB |
| WebSocket | Echo Pipelined | 512 | 57,394,140 | 142us | 250us | 6602.8% | 41MiB |
| WebSocket | Echo Pipelined | 4,096 | 55,968,937 | 1.16ms | 1.64ms | 6260.2% | 114MiB |
| WebSocket | Echo Pipelined | 16,384 | 51,593,811 | 5.03ms | 6.56ms | 6078.2% | 364MiB |
| WebSocket | Echo Short-lived | 512 | 2,143,254 | 136us | 370us | 5859.9% | 50MiB |
| WebSocket | Echo Short-lived | 4,096 | 2,573,728 | 1.11ms | 1.76ms | 6101.9% | 139MiB |
Compared with
The Rust web frameworks around tako 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 tako | |
|---|---|---|---|
| Proa | 6383 | +29% | head to head |
| actix | 5307 | +7% | head to head |
| cpeak | 5218 | +6% | head to head |
| trillium-tuned | 4442 | -10% | head to head |
| trillium | 2875 | -42% | head to head |
Compare tako with any Rust entry · Compare tako with any entry, in any language · Every Rust entry, ranked
Results updated · How the benchmark is run · The machine · Add or fix an entry