Rust web framework comparison: any two, head to head
actix is quicker than ntex on 5 of the 10 profiles they both run, and behind on 4. On the HTTP/1.1 composite they score 5946 and 5335.
Pick any two of the 21 Rust entries. Requests per second is the best of three runs and the delta is the first column against the second; every row is the same profile at the same connection count, on the same machine. What each profile measures.
| Profile | Conns | actix req/sec | ntex req/sec | Delta | actix p99 | ntex p99 |
|---|---|---|---|---|---|---|
| Baseline | 4,096 | 2,543,260 | 2,887,770 | -12% | 2.78ms | 2.05ms |
| Short-lived | 4,096 | 1,127,447 | 912,610 | +24% | 9.40ms | 11.40ms |
| Async Delay | 32,000 | 1,747,295 | 762,993 | +129% | 17.50ms | 33.60ms |
| Latency-10K | 1,024 | 9,983 | 9,983 | +0% | 108.0us | 124.0us |
| Latency-1M | 1,024 | 998,031 | 997,809 | +0% | 182.0us | 190.0us |
| Latency-500K/8 | 1,024 | 399,603 | 397,030 | +1% | 3927040.0us | 4068352.0us |
| JSON Comp | 4,096 | 529,421 | 560,894 | -6% | 25.60ms | 12.50ms |
| JSON Comp | 16,384 | 535,359 | 545,817 | -2% | 49.30ms | 29.30ms |
| JSON TLS | 4,096 | 1,137,387 | 1,286,560 | -12% | 38.52ms | 57.03ms |
| 8Gbit | 512 | 49,408 | 49,375 | +0% | 117.0us | 134.0us |
Common comparisons
actix vs ntex · actix vs axum · actix vs rama · ntex vs axum · ntex vs rama · axum vs rama
Questions
Is actix faster than ntex?
actix is quicker than ntex on 5 of the 10 profiles they both run, and behind on 4. On the HTTP/1.1 composite they score 5946 and 5335. Both run on the same machine, in the same round, against the same profiles.
Is actix faster than axum?
actix is quicker than axum on 10 of the 11 profiles they both run. On the HTTP/1.1 composite they score 5946 and 4180. Both run on the same machine, in the same round, against the same profiles.
Is actix faster than rama?
actix is quicker than rama on 27 of the 27 profiles they both run. On the HTTP/1.1 composite they score 5946 and 3174. Both run on the same machine, in the same round, against the same profiles.
Is ntex faster than axum?
ntex is quicker than axum on 8 of the 10 profiles they both run, and behind on 1. On the HTTP/1.1 composite they score 5335 and 4180. Both run on the same machine, in the same round, against the same profiles.
Which Rust framework is fastest overall?
cpeak holds the highest HTTP/1.1 composite of the Rust entries, at 7354. The composite is throughput over the whole suite; if a service is one shape of workload, compare that profile on its own in the table above, because the order changes.
Every Rust entry
- cpeak
- tako
- trillium-tuned
- actix
- ntex
- tokio
- trillium
- mq-bridge
- axum
- tokio-uring
- hyper
- rama
- rocket
- salvo
- toxi
- veil
- sark
- tokio-uring-ws
- tokio-websockets
- tokio-ws
- wtx
Results updated · Rust composite ranking · Compare across languages · Other languages · Open the leaderboard