HttpArena

Rust web framework comparison: any two, head to head

ntex is ahead of actix on 28 of the 32 tests they both run, and behind on 4. On the HTTP/1.1 composite ntex scores 6209 and actix 5307.

Pick any two of the 24 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. The fixed-rate profiles offer every entry the same request rate, so they are compared on their score out of 100 instead, which is CPU cost and latency at that rate. What each profile measures.

ProfileConnsntexactixDeltantex p99actix p99
Requests per second
Baseline4,0963,396,9072,905,625+17%1.85ms2.46ms
Pipelined4,09623,155,55218,763,571+23%3.75ms3.57ms
Short-lived4,0962,650,6931,144,727+132%3.32ms9.27ms
Async Delay32,0002,262,5812,014,158+12%18.40ms16.70ms
JSON Comp4,096820,143586,605+40%11.80ms27.20ms
JSON Comp16,384798,075573,534+39%29.10ms56.50ms
JSON TLS4,0961,702,9411,346,577+26%35.13ms65.46ms
Static TLS1,024845,477413,864+104%17.40ms37.73ms
Async DB1,024327,285324,684+1%17.70ms19.10ms
Fortunes1,024204,710184,341+11%7.71ms5.82ms
Baseline25612,798,1746,207,410+106%2.56ms5.00ms
Baseline1,02412,415,2174,722,351+163%9.08ms46.06ms
Static256932,707422,892+121%21.65ms39.40ms
Static1,024933,580402,279+132%62.07ms163.07ms
Baseline (h2c)25613,173,7896,671,590+97%2.55ms16.15ms
Baseline (h2c)1,02412,924,7924,961,422+161%7.24ms77.59ms
Baseline (h2c)4,09612,418,5094,500,687+176%29.71ms210.21ms
JSON (h2c)1,0243,465,9231,764,965+96%17.89ms48.72ms
JSON (h2c)4,0963,182,3821,616,163+97%63.36ms320.17ms
Echo5123,932,7233,646,407+8%310us249us
Echo4,0964,055,7383,660,925+11%1.40ms1.78ms
Echo16,3843,705,9833,473,363+7%5.42ms6.13ms
Echo Pipelined51256,087,89447,190,006+19%315us278us
Echo Pipelined4,09658,501,26746,405,884+26%1.66ms4.05ms
Echo Pipelined16,38453,883,67044,938,672+20%6.57ms4.65ms
Echo Short-lived5122,259,6111,170,845+93%557us177us
Echo Short-lived4,0962,496,0581,145,177+118%2.42ms214us
Fixed-rate profiles: score out of 100
CON-1M1,000,00076.571.7+7%138us136us
CON-1M-TLS1,000,00074.475.8-2%111us110us
Latency-10K1,02474.281.8-9%118us107us
Latency-1M1,02481.782.3-1%177us187us
8Gbit51282.585.0-3%126us120us

Common comparisons

ntex vs actix · ntex vs axum · ntex vs rama · actix vs axum · actix vs rama · axum vs rama

Questions

Is ntex faster than actix?

ntex is ahead of actix on 28 of the 32 tests they both run, and behind on 4. On the HTTP/1.1 composite ntex scores 6209 and actix 5307. Both run on the same machine, in the same round, against the same profiles.

Is ntex faster than axum?

ntex is ahead of axum on 9 of the 10 tests they both run, and behind on 1. On the HTTP/1.1 composite ntex scores 6209 and axum 2703. Both run on the same machine, in the same round, against the same profiles.

Is ntex faster than rama?

ntex is ahead of rama on 27 of the 28 tests they both run, and behind on 1. On the HTTP/1.1 composite ntex scores 6209 and rama 2148. Both run on the same machine, in the same round, against the same profiles.

Is actix faster than axum?

actix is ahead of axum on 9 of the 10 tests they both run, and behind on 1. On the HTTP/1.1 composite actix scores 5307 and axum 2703. Both run on the same machine, in the same round, against the same profiles.

Which Rust framework is fastest overall?

Among the Rust web frameworks, Proa holds the highest HTTP/1.1 composite, at 6383; among the Rust HTTP engines, tokio holds the highest HTTP/1.1 composite, at 3653; among the experimental Rust frameworks, veil-api holds the highest HTTP/1.1 composite, at 3911; among the Rust reverse proxies and static-file servers, veil holds the highest HTTP/1.1 composite, at 560. Each league is measured against its own leader, and the leagues do not all count the same profiles, so those numbers are not on one scale and the highest of them is not the fastest entry on the page: to set an entry of one league against an entry of another, pick the two in the table above. 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

Results updated · Rust composite ranking · Compare across languages · Other languages · Open the leaderboard