HttpArena

Rust web framework benchmarks: performance comparison

The fastest Rust web framework in HttpArena is ntex, with a composite of 6384 on HTTP/1.1 — 1 of 87 against every language in its league. Measured over Alpha Round, every entry on the same machine. The leading Rust HTTP engine is tokio, 16 of 46 in its own league. The leading experimental Rust framework is veil-api, 17 of 33 in its own league. The leading Rust reverse proxy or static-file server is veil, 7 of 9 in its own league.

Compare any two Rust entries profile by profile →

Every Rust entry in the benchmark, compared on the composite score of each family, one table per league. The composite sums a normalized score over the profiles of that family, where the leader of each profile scores 1,000, and scales the sum by the entry's completeness factor. Frameworks, engines, experimental entries and infrastructure are separate leagues: each is normalized against its own leader, and they do not all count the same profiles, so a composite compares with the others in its table and with nothing outside it. Rank in its league is the entry's place across all languages; rank among Rust narrows the same field to this language. Both link through to the board view they were taken in. How the score works.

To set two entries from different leagues against each other, compare them head to head: that table lines up every test both of them ran.

Composite scores compare directly across every row of a table. Ranks do not always share a field: a tuned entry has no place in the standard-only ranking, so its rank is taken from the field that includes tuned entries and counts more of them.

HTTP/1.1

Frameworks

FrameworkTypeCompositeRank in its leagueRank among Rust
ntexFlagship63841 of 871 of 9
ProaEmerging tuned63453 of 1132 of 12
cpeakEmerging tuned61525 of 1133 of 12
actixFlagship52816 of 872 of 9
takoEmerging49047 of 873 of 9
trillium-tunedEmerging tuned441115 of 1136 of 12
trilliumEmerging286822 of 874 of 9
axumFlagship269825 of 875 of 9
mq-bridgeEmerging268626 of 876 of 9
ramaFlagship214238 of 877 of 9
rocketFlagship189542 of 878 of 9
salvoFlagship165246 of 879 of 9

Engines

EngineTypeCompositeRank in its leagueRank among Rust
tokioEngine365316 of 461 of 3
tokio-uringEngine255524 of 462 of 3
hyperEngine238526 of 463 of 3

Experimental frameworks

FrameworkTypeCompositeRank in its leagueRank among Rust
veil-apiExperimental387017 of 331 of 2
toxiExperimental125431 of 332 of 2

Reverse proxies and static-file servers

ServerTypeCompositeRank in its leagueRank among Rust
veilInfrastructure5607 of 9—

HTTP/2

Frameworks

FrameworkTypeCompositeRank in its leagueRank among Rust
ntexFlagship39851 of 331 of 7
ProaEmerging tuned27353 of 442 of 9
actixFlagship17529 of 332 of 7
trillium-tunedEmerging tuned147412 of 444 of 9
trilliumEmerging115110 of 333 of 7
wtxEmerging112411 of 334 of 7
takoEmerging41923 of 335 of 7
mq-bridgeEmerging36227 of 336 of 7
ramaFlagship12131 of 337 of 7

Engines

EngineTypeCompositeRank in its leagueRank among Rust
roxygenEngine27265 of 191 of 2
hyperEngine61612 of 192 of 2

Experimental frameworks

FrameworkTypeCompositeRank in its leagueRank among Rust
veil-apiExperimental175812 of 19—

Reverse proxies and static-file servers

ServerTypeCompositeRank in its leagueRank among Rust
veilInfrastructure428 of 8—

HTTP/3

Frameworks

FrameworkTypeCompositeRank in its leagueRank among Rust
ProaEmerging tuned20001 of 211 of 4
trillium-tunedEmerging tuned4678 of 212 of 4
trilliumEmerging4456 of 161 of 2
takoEmerging2879 of 162 of 2

Experimental frameworks

FrameworkTypeCompositeRank in its leagueRank among Rust
veil-apiExperimental6028 of 12—

Reverse proxies and static-file servers

ServerTypeCompositeRank in its leagueRank among Rust
veilInfrastructure745 of 6—

Gateway

Frameworks

FrameworkTypeCompositeRank in its leagueRank among Rust
takoEmerging8256 of 81 of 2
trillium-tunedEmerging tuned7217 of 92 of 3
trilliumEmerging7147 of 82 of 2

Engines

EngineTypeCompositeRank in its leagueRank among Rust
sarkEngine12373 of 3—

gRPC

Frameworks

FrameworkTypeCompositeRank in its leagueRank among Rust
ntexFlagship20001 of 101 of 4
ProaEmerging tuned18042 of 152 of 6
wtxEmerging10694 of 102 of 4
trillium-tunedEmerging tuned9627 of 154 of 6
trilliumEmerging7806 of 103 of 4
takoEmerging15410 of 104 of 4

Experimental frameworks

FrameworkTypeCompositeRank in its leagueRank among Rust
veil-apiExperimental3947 of 9—

WebSocket

Frameworks

FrameworkTypeCompositeRank in its leagueRank among Rust
ProaEmerging tuned29951 of 411 of 9
ntexFlagship28761 of 311 of 7
takoEmerging27322 of 312 of 7
trillium-tunedEmerging tuned26125 of 414 of 9
wtxEmerging21899 of 313 of 7
actixFlagship202511 of 314 of 7
trilliumEmerging87221 of 315 of 7
mq-bridgeEmerging37126 of 316 of 7
ramaFlagship30729 of 317 of 7

Engines

EngineTypeCompositeRank in its leagueRank among Rust
tokio-websocketsEngine22565 of 201 of 3
tokio-wsEngine19867 of 202 of 3
tokio-uring-wsEngine168110 of 203 of 3

Experimental frameworks

FrameworkTypeCompositeRank in its leagueRank among Rust
veil-apiExperimental203116 of 24—

Database

Frameworks

FrameworkTypeCompositeRank in its leagueRank among Rust
ProaEmerging tuned20001 of 221 of 4
ntexFlagship18191 of 171 of 2
actixFlagship17433 of 172 of 2
cpeakEmerging tuned8898 of 224 of 4

Questions

What is the fastest Rust web framework?

ntex leads the Rust web frameworks in HttpArena with a composite score of 6384 on HTTP/1.1, measured over Alpha Round. The composite sums a normalized score across the profiles of a family, where the leader of each profile scores 1,000. Against every language, ntex ranks 1 of 87 in its league.

What is the fastest Rust HTTP engine?

tokio leads the Rust HTTP engines in HttpArena with a composite score of 3653 on HTTP/1.1, measured over Alpha Round. Against every language, tokio ranks 16 of 46 in its league.

What is the fastest experimental Rust framework?

veil-api leads the experimental Rust frameworks in HttpArena with a composite score of 3870 on HTTP/1.1, measured over Alpha Round. Against every language, veil-api ranks 17 of 33 in its league.

What is the fastest Rust reverse proxy or static-file server?

veil leads the Rust reverse proxies and static-file servers in HttpArena with a composite score of 560 on HTTP/1.1, measured over Alpha Round. Against every language, veil ranks 7 of 9 in its league.

Why are Rust entries ranked in separate leagues?

HttpArena ranks web frameworks, HTTP engines, experimental frameworks, and reverse proxies and static-file servers apart. Each league is normalized against its own leader, and the leagues do not all count the same profiles - engines are not scored on JSON Compressed, for one. A composite from one league is therefore not on the same scale as a composite from another, and the higher number across two leagues is not the faster server. To set two entries from different leagues against each other, use the Rust head-to-head comparison, which lines up every test both of them ran.

What is the fastest Rust HTTP/2 server?

Among web frameworks, ntex (composite 3985, 1 of 33 in that league); among HTTP engines, roxygen (composite 2726, 5 of 19 in that league); among experimental frameworks, veil-api (composite 1758, 12 of 19 in that league); among reverse proxies and static-file servers, veil (composite 42, 8 of 8 in that league). The leagues are scored separately, so those composites are not on one scale.

What is the fastest Rust HTTP/3 server?

Among web frameworks, Proa (composite 2000, 1 of 21 in that league); among experimental frameworks, veil-api (composite 602, 8 of 12 in that league); among reverse proxies and static-file servers, veil (composite 74, 5 of 6 in that league). The leagues are scored separately, so those composites are not on one scale.

What is the fastest Rust Gateway server?

Among web frameworks, tako (composite 825, 6 of 8 in that league); among HTTP engines, sark (composite 1237, 3 of 3 in that league). The leagues are scored separately, so those composites are not on one scale.

What is the fastest Rust gRPC server?

Among web frameworks, ntex (composite 2000, 1 of 10 in that league); among experimental frameworks, veil-api (composite 394, 7 of 9 in that league). The leagues are scored separately, so those composites are not on one scale.

What is the fastest Rust WebSocket server?

Among web frameworks, Proa (composite 2995, 1 of 41 in that league); among HTTP engines, tokio-websockets (composite 2256, 5 of 20 in that league); among experimental frameworks, veil-api (composite 2031, 16 of 24 in that league). The leagues are scored separately, so those composites are not on one scale.

What is the fastest Rust database-backed server?

Proa, with a composite of 2000 on Database and 1 of 22 against all languages in its league.

How many Rust web frameworks are benchmarked?

24 Rust entries are measured, covering HTTP/1.1, HTTP/2, HTTP/3, Gateway, gRPC, WebSocket, Database. Every one runs on the same machine, in the same round (Alpha Round), against the same profiles.

Is Rust fast for web servers?

The leading Rust web framework, ntex, places 1 of 87 on HTTP/1.1 across every language in its league, so that placing is the honest answer for Rust at its best rather than for Rust in general. The tables below show the spread across all 24 entries.

Every Rust entry

Other languages

Assembly · C · C# · C++ · Clojure · D · Dart · Elixir · Erlang · F# · Go · Goose · Haskell · Java · JS · Julia · Koru · Kotlin · Lua · Luau · Mojo · OCaml · Perl · PHP · Python · Ruby · Scala · Sober · Swift · TS · V · Valk · Zig

Results updated · Alpha Round · Compare two Rust entries · All languages · Open the leaderboard