Rust web framework comparison: any two, head to head
ntex is quicker than actix on 5 of the 10 profiles they both run, and behind on 4. On the HTTP/1.1 composite they score 6879 and 5954.
Pick any two of the 16 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,775,120 | 2,168,712 | +28% | 2.56ms | 2.35ms |
| Short-lived | 4,096 | 1,135,157 | 1,449,176 | -22% | 9.25ms | 29.00ms |
| Async Delay | 32,000 | 2,112,168 | 963,884 | +119% | 17.40ms | 35.80ms |
| Latency-10K | 1,024 | 9,982 | 9,982 | +0% | 114.0us | 119.0us |
| Latency-1M | 1,024 | 997,622 | 998,354 | -0% | 177.0us | 266.0us |
| Latency-500K/8 | 1,024 | 421,612 | 337,940 | +25% | 3077120.0us | 6383616.0us |
| JSON Comp | 4,096 | 541,211 | 589,934 | -8% | 37.60ms | 50.90ms |
| JSON Comp | 16,384 | 532,649 | 569,327 | -6% | 41.30ms | 75.10ms |
| JSON TLS | 4,096 | 1,157,219 | 1,254,763 | -8% | 64.52ms | 65.93ms |
| 8Gbit | 512 | 49,401 | 49,058 | +1% | 114.0us | 138.0us |
Common comparisons
actix vs ntex · actix vs axum · actix vs rocket · ntex vs axum · ntex vs rocket · axum vs rocket
Questions
Is actix faster than ntex?
ntex is quicker than actix on 5 of the 10 profiles they both run, and behind on 4. On the HTTP/1.1 composite they score 6879 and 5954. 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 6879 and 4494. Both run on the same machine, in the same round, against the same profiles.
Is actix faster than rocket?
actix is quicker than rocket on 11 of the 11 profiles they both run. On the HTTP/1.1 composite they score 6879 and 3111. 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. On the HTTP/1.1 composite they score 5954 and 4494. Both run on the same machine, in the same round, against the same profiles.
Which Rust framework is fastest overall?
actix holds the highest HTTP/1.1 composite of the Rust entries, at 6879. 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
- actix
- ntex
- tokio
- mq-bridge
- axum
- tokio-uring
- hyper
- trillium
- trillium-tuned
- rocket
- salvo
- sark
- tokio-uring-ws
- tokio-websockets
- tokio-ws
- wtx
Results updated · Rust composite ranking · Compare across languages · Other languages · Open the leaderboard