Rust web framework comparison: any two, head to head
actix is quicker than rocket on 9 of the 9 profiles they both run. On the HTTP/1.1 composite they score 710 and 171.
Pick any two of the 15 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 | rocket req/sec | Delta | actix p99 | rocket p99 |
|---|---|---|---|---|---|---|
| Baseline | 512 | 2,713,517 | 680,970 | +298% | 284us | 1.53ms |
| Baseline | 4,096 | 2,775,120 | 668,747 | +315% | 2.56ms | 5.04ms |
| Pipelined | 512 | 16,342,080 | 1,392,601 | +1073% | 546us | 16.60ms |
| Pipelined | 4,096 | 16,338,425 | 1,266,201 | +1190% | 5.31ms | 49.80ms |
| Short-lived | 512 | 1,121,546 | 473,133 | +137% | 4.06ms | 2.05ms |
| Short-lived | 4,096 | 1,135,157 | 493,183 | +130% | 9.25ms | 2.26ms |
| JSON | 4,096 | 1,216,437 | 553,071 | +120% | 13.10ms | 6.75ms |
| Upload | 32 | 3,100 | 2,234 | +39% | 33.10ms | 55.30ms |
| Upload | 256 | 3,062 | 2,884 | +6% | 289.60ms | 314.50ms |
Common comparisons
actix vs rocket · actix vs axum · actix vs trillium-tuned · rocket vs axum · rocket vs trillium-tuned · axum vs trillium-tuned
Questions
Is actix faster than rocket?
actix is quicker than rocket on 9 of the 9 profiles they both run. On the HTTP/1.1 composite they score 710 and 171. 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 11 of the 12 profiles they both run, and behind on 1. On the HTTP/1.1 composite they score 710 and 122. Both run on the same machine, in the same round, against the same profiles.
Is actix faster than trillium-tuned?
actix is quicker than trillium-tuned on 23 of the 31 profiles they both run, and behind on 8. On the HTTP/1.1 composite they score 710 and 700. Both run on the same machine, in the same round, against the same profiles.
Is rocket faster than axum?
rocket is quicker than axum on 6 of the 9 profiles they both run, and behind on 3. On the HTTP/1.1 composite they score 171 and 122. 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 710. 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
- trillium-tuned
- trillium
- mq-bridge
- sark
- rust-epoll
- tokio
- rocket
- tokio-uring
- hyper
- axum
- may-minihttp
- tokio-uring-ws
- tokio-ws
- wtx
Results updated · Rust composite ranking · Other languages · Open the leaderboard