Proa
Emerging · Rust · engine: hyper · tuned configuration · completeness 4/4
Compiled Proa HTML components served over thread-per-core Axum/Hyper workers with mimalloc v2, sonic-rs JSON serialization, thread-local libdeflater gzip compression, TLS 1.3 (AES-128-GCM via aws-lc-rs) for HTTP/1.1 (:8081), HTTP/2 (:8443), h2c (:8082), HTTP/3/QUIC via quinn+h3 (:8443/udp), gRPC, batched WebSocket echo, and per-worker deadpool-postgres pools.
- Official repository
- Official website
- Benchmark implementation
- All Rust entries, compared
- Open the leaderboard
Achievements
🥇 13 Gold · 🥈 7 Silver · 🥉 4 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 |
|---|---|---|---|
| 🥇 Gold | Family composite | Composite · Database | 1 of 22 |
| 🥇 Gold | Family composite | Composite · HTTP/3 | 1 of 21 |
| 🥇 Gold | Family composite | Composite · WebSocket | 1 of 41 |
| 🥇 Gold | Within its language | Rust · Database | 1 of 4 |
| 🥇 Gold | Within its language | Rust · HTTP/3 | 1 of 4 |
| 🥇 Gold | Within its language | Rust · WebSocket | 1 of 9 |
| 🥇 Gold | Test profile | Database · Async DB | 1 of 22 |
| 🥇 Gold | Test profile | Database · Fortunes | 1 of 11 |
| 🥇 Gold | Test profile | Efficiency · Latency-1M | 1 of 113 |
| 🥇 Gold | Test profile | HTTP/3 · Baseline | 1 of 21 |
| 🥇 Gold | Test profile | HTTP/3 · Static | 1 of 21 |
| 🥇 Gold | Test profile | WebSocket · Echo | 1 of 41 |
| 🥇 Gold | Test profile | WebSocket · Echo Pipelined | 1 of 37 |
| 🥈 Silver | Family composite | Composite · gRPC | 2 of 15 |
| 🥈 Silver | Within its language | Rust · HTTP/1.1 | 2 of 12 |
| 🥈 Silver | Within its language | Rust · HTTP/2 | 2 of 9 |
| 🥈 Silver | Within its language | Rust · gRPC | 2 of 6 |
| 🥈 Silver | Test profile | WebSocket · Echo Short-lived | 2 of 28 |
| 🥈 Silver | Test profile | Workload · JSON Comp | 2 of 108 |
| 🥈 Silver | Test profile | gRPC · Unary | 2 of 15 |
| 🥉 Bronze | Family composite | Composite · HTTP/1.1 | 3 of 113 |
| 🥉 Bronze | Family composite | Composite · HTTP/2 | 3 of 44 |
| 🥉 Bronze | Test profile | Workload · JSON TLS | 3 of 109 |
| 🥉 Bronze | Test profile | gRPC · Unary TLS | 3 of 15 |
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 | 3 of 113 | 6345 |
| HTTP/2 | 3 of 44 | 2735 |
| HTTP/3 | 1 of 21 | 2000 |
| gRPC | 2 of 15 | 1804 |
| WebSocket | 1 of 41 | 2995 |
| Database | 1 of 22 | 2000 |
Every result
Alpha Round, 37 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,114,432 | 1.31ms | 2.48ms | 6627.7% | 224MiB |
| Connection | Pipelined | 4,096 | 17,497,568 | 3.75ms | 6.54ms | 6258.2% | 207MiB |
| Connection | Short-lived | 4,096 | 2,464,129 | 1.64ms | 4.87ms | 6066.4% | 260MiB |
| Concurrency | Async Delay | 32,000 | 2,314,810 | 13.82ms | 17.00ms | 5029.1% | 749MiB |
| Concurrency | CON-1M | 1,000,000 | 249,999 | 73.1us | 134.0us | 785.1% | 20.5GiB |
| Concurrency | CON-1M-TLS | 1,000,000 | 249,968 | 70.0us | 112.0us | 1448.9% | 28.1GiB |
| Efficiency | Latency-10K | 1,024 | 9,979 | 78.3us | 103.0us | 23.6% | 152MiB |
| Efficiency | Latency-1M | 1,024 | 998,517 | 96.7us | 181.0us | 2619.0% | 148MiB |
| Workload | JSON Comp | 4,096 | 812,119 | 5.05ms | 11.10ms | 6259.4% | 274MiB |
| Workload | JSON Comp | 16,384 | 779,949 | 20.99ms | 30.90ms | 6672.0% | 612MiB |
| Workload | JSON TLS | 4,096 | 1,580,024 | 2.55ms | 56.24ms | 6316.8% | 351MiB |
| Workload | 8Gbit | 512 | 49,084 | 92.9us | 118.0us | 204.8% | 178MiB |
| Database | Async DB | 1,024 | 354,354 | 2.89ms | 18.10ms | 3036.8% | 226MiB |
| Database | Fortunes | 1,024 | 222,969 | 4.59ms | 6.94ms | 3286.2% | 239MiB |
| HTTP/2 | Baseline | 256 | 9,584,183 | 2.55ms | 7.11ms | 6002.4% | 356MiB |
| HTTP/2 | Baseline | 1,024 | 8,355,355 | 11.84ms | 21.63ms | 6304.2% | 595MiB |
| HTTP/2 | Static | 256 | 758,506 | 11.43ms | 25.03ms | 6223.8% | 499MiB |
| HTTP/2 | Static | 1,024 | 678,553 | 47.10ms | 90.04ms | 6259.7% | 895MiB |
| HTTP/2 | Baseline (h2c) | 256 | 9,903,061 | 2.42ms | 5.38ms | 6030.2% | 383MiB |
| HTTP/2 | Baseline (h2c) | 1,024 | 8,699,980 | 12.07ms | 36.30ms | 6116.4% | 594MiB |
| HTTP/2 | Baseline (h2c) | 4,096 | 7,538,333 | 53.43ms | 80.79ms | 6188.5% | 1.6GiB |
| HTTP/2 | JSON (h2c) | 1,024 | 2,257,871 | 14.12ms | 27.11ms | 6473.8% | 458MiB |
| HTTP/2 | JSON (h2c) | 4,096 | 2,070,143 | 61.82ms | 126.75ms | 6156.2% | 1.1GiB |
| HTTP/3 | Baseline | 64 | 5,231,188 | 798us | 1.37ms | 3365.9% | 246MiB |
| HTTP/3 | Static | 64 | 617,280 | 8.31ms | 44.76ms | 4204.8% | 690MiB |
| gRPC | Unary | 256 | 6,414,652 | 3.16ms | 6.62ms | 5046.4% | 430MiB |
| gRPC | Unary | 1,024 | 6,456,942 | 8.68ms | 20.60ms | 5349.0% | 779MiB |
| gRPC | Unary TLS | 256 | 6,285,734 | 3.22ms | 6.72ms | 5063.1% | 437MiB |
| gRPC | Unary TLS | 1,024 | 6,034,011 | 15.61ms | 37.65ms | 6241.8% | 712MiB |
| WebSocket | Echo | 512 | 4,252,156 | 119us | 261us | 6226.9% | 171MiB |
| WebSocket | Echo | 4,096 | 4,354,138 | 940us | 1.24ms | 5977.3% | 295MiB |
| WebSocket | Echo | 16,384 | 4,104,885 | 3.99ms | 4.55ms | 5958.7% | 742MiB |
| WebSocket | Echo Pipelined | 512 | 65,358,985 | 124us | 259us | 6259.8% | 168MiB |
| WebSocket | Echo Pipelined | 4,096 | 67,055,366 | 976us | 1.35ms | 6012.7% | 298MiB |
| WebSocket | Echo Pipelined | 16,384 | 61,820,115 | 4.24ms | 5.01ms | 6101.9% | 737MiB |
| WebSocket | Echo Short-lived | 512 | 2,382,511 | 178us | 583us | 5387.4% | 257MiB |
| WebSocket | Echo Short-lived | 4,096 | 2,587,800 | 1.33ms | 2.37ms | 5674.6% | 299MiB |
Compared with
The Rust web frameworks around Proa 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 Proa | |
|---|---|---|---|
| ntex | 6384 | +1% | head to head |
| cpeak | 6152 | -3% | head to head |
| actix | 5281 | -17% | head to head |
Compare Proa with any Rust entry · Compare Proa with any entry, in any language · Every Rust entry, ranked
Results updated · How the benchmark is run · The machine · Add or fix an entry