HttpArena

Rust web framework benchmarks: performance comparison

The fastest Rust web framework in HttpArena is Proa, with a composite of 6383 on HTTP/1.1 — 2 of 114 against every language in its league. Measured over Alpha Round, every entry on the same machine. This is a tuned entry. The leading Rust HTTP engine is tokio, 16 of 46 in its own league. The leading experimental Rust framework is veil-api, 16 of 32 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
ProaEmerging tuned63832 of 1141 of 12
ntexFlagship62091 of 881 of 9
actixFlagship53075 of 882 of 9
cpeakEmerging tuned521810 of 1144 of 12
takoEmerging49407 of 883 of 9
trillium-tunedEmerging tuned444215 of 1146 of 12
trilliumEmerging287522 of 884 of 9
axumFlagship270325 of 885 of 9
mq-bridgeEmerging269226 of 886 of 9
ramaFlagship214836 of 887 of 9
rocketFlagship190245 of 888 of 9
salvoFlagship165547 of 889 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-apiExperimental391116 of 321 of 2
toxiExperimental126230 of 322 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
ntexFlagship39331 of 341 of 7
ProaEmerging tuned27643 of 452 of 9
actixFlagship17749 of 342 of 7
trillium-tunedEmerging tuned149812 of 454 of 9
trilliumEmerging117510 of 343 of 7
wtxEmerging114511 of 344 of 7
takoEmerging42725 of 345 of 7
mq-bridgeEmerging37027 of 346 of 7
ramaFlagship12332 of 347 of 7

Engines

EngineTypeCompositeRank in its leagueRank among Rust
roxygenEngine27284 of 181 of 2
hyperEngine61711 of 182 of 2

Experimental frameworks

FrameworkTypeCompositeRank in its leagueRank among Rust
veil-apiExperimental178810 of 18—

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 221 of 4
trillium-tunedEmerging tuned4678 of 222 of 4
trilliumEmerging4456 of 171 of 2
takoEmerging28710 of 172 of 2

Experimental frameworks

FrameworkTypeCompositeRank in its leagueRank among Rust
veil-apiExperimental6027 of 11—

Reverse proxies and static-file servers

ServerTypeCompositeRank in its leagueRank among Rust
veilInfrastructure745 of 6—

Gateway

Frameworks

FrameworkTypeCompositeRank in its leagueRank among Rust
takoEmerging8436 of 81 of 2
trillium-tunedEmerging tuned7387 of 92 of 3
trilliumEmerging7317 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 tuned18242 of 152 of 6
wtxEmerging10814 of 102 of 4
trillium-tunedEmerging tuned9737 of 154 of 6
trilliumEmerging7896 of 103 of 4
takoEmerging15510 of 104 of 4

Experimental frameworks

FrameworkTypeCompositeRank in its leagueRank among Rust
veil-apiExperimental4016 of 8—

WebSocket

Frameworks

FrameworkTypeCompositeRank in its leagueRank among Rust
ProaEmerging tuned29951 of 411 of 9
ntexFlagship27401 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-apiExperimental203115 of 23—

Database

Frameworks

FrameworkTypeCompositeRank in its leagueRank among Rust
ProaEmerging tuned20001 of 111 of 3
ntexFlagship18421 of 81 of 2
actixFlagship17433 of 82 of 2

Questions

What is the fastest Rust web framework?

Proa leads the Rust web frameworks in HttpArena with a composite score of 6383 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, Proa ranks 2 of 114 in its league. It is a tuned entry, so it is ranked in the field that includes tuned configurations.

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 3911 on HTTP/1.1, measured over Alpha Round. Against every language, veil-api ranks 16 of 32 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 3933, 1 of 34 in that league); among HTTP engines, roxygen (composite 2728, 4 of 18 in that league); among experimental frameworks, veil-api (composite 1788, 10 of 18 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 22 in that league); among experimental frameworks, veil-api (composite 602, 7 of 11 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 843, 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 401, 6 of 8 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, 15 of 23 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 11 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, Proa, places 2 of 114 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