HttpArena
Frameworks

Rust web framework benchmarks: performance comparison

The fastest Rust web framework in HttpArena is cpeak, with a composite of 7347 on HTTP/1.1 — 2 of 107 against every language in its league. Measured over Alpha Round, every entry on the same machine. This is a tuned entry.

Compare any two Rust entries profile by profile →

Every Rust entry in the benchmark, compared on the composite score of each family. The composite sums a normalized score over the profiles of that family, where the leader of each profile scores 100, and scales the sum by the entry's completeness factor. Rank overall is the entry's place in its own league 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.

Composite scores compare directly across every row. 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

FrameworkTypeCompositeRank overallRank among Rust
cpeakEmerging tuned73472 of 1071 of 11
takoEmerging66363 of 841 of 9
ntexFlagship61467 of 842 of 9
trillium-tunedEmerging tuned603611 of 1074 of 11
actixFlagship59428 of 843 of 9
veil-apiExperimental509113 of 291 of 2
tokioEngine463915 of 451 of 3
trilliumEmerging425818 of 844 of 9
mq-bridgeEmerging420121 of 845 of 9
axumFlagship417822 of 846 of 9
tokio-uringEngine341622 of 452 of 3
hyperEngine329724 of 453 of 3
ramaFlagship317232 of 847 of 9
rocketFlagship285839 of 848 of 9
salvoFlagship235944 of 849 of 9
toxiExperimental151627 of 292 of 2
veilInfrastructure6426 of 8—

HTTP/2

FrameworkTypeCompositeRank overallRank among Rust
trillium-tunedEmerging tuned19797 of 401 of 8
veil-apiExperimental19018 of 15—
trilliumEmerging15896 of 311 of 7
wtxEmerging15477 of 312 of 7
actixFlagship15318 of 313 of 7
ntexFlagship99711 of 314 of 7
hyperEngine6429 of 16—
takoEmerging56821 of 315 of 7
mq-bridgeEmerging47524 of 316 of 7
ramaFlagship16328 of 317 of 7
veilInfrastructure447 of 7—

HTTP/3

FrameworkTypeCompositeRank overallRank among Rust
trillium-tunedEmerging tuned8716 of 191 of 3
trilliumEmerging8655 of 151 of 2
veil-apiExperimental6866 of 10—
takoEmerging5109 of 152 of 2
veilInfrastructure784 of 5—

Gateway

FrameworkTypeCompositeRank overallRank among Rust
sarkEngine12373 of 3—
takoEmerging8966 of 81 of 2
trillium-tunedEmerging tuned6067 of 92 of 3
trilliumEmerging6027 of 82 of 2

gRPC

FrameworkTypeCompositeRank overallRank among Rust
wtxEmerging12053 of 91 of 3
trillium-tunedEmerging tuned11025 of 132 of 4
trilliumEmerging8465 of 92 of 3
veil-apiExperimental4065 of 7—
takoEmerging1809 of 93 of 3

WebSocket

FrameworkTypeCompositeRank overallRank among Rust
trillium-tunedEmerging tuned28303 of 381 of 7
wtxEmerging23556 of 291 of 6
tokio-websocketsEngine22565 of 201 of 3
veil-apiExperimental207914 of 21—
takoEmerging20768 of 292 of 6
tokio-wsEngine19867 of 202 of 3
tokio-uring-wsEngine168110 of 203 of 3
actixFlagship163011 of 293 of 6
trilliumEmerging94119 of 294 of 6
mq-bridgeEmerging40125 of 295 of 6
ramaFlagship33827 of 296 of 6

Questions

What is the fastest Rust web framework?

cpeak leads the Rust entries in HttpArena with a composite score of 7347 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 100. Against every language, cpeak ranks 2 of 107 in its own league. It is a tuned entry, so it is ranked in the field that includes tuned configurations.

What is the fastest Rust HTTP/2 server?

trillium-tuned, with a composite of 1979 on HTTP/2 and 7 of 40 against all languages in its league.

What is the fastest Rust HTTP/3 server?

trillium-tuned, with a composite of 871 on HTTP/3 and 6 of 19 against all languages in its league.

What is the fastest Rust Gateway server?

sark, with a composite of 1237 on Gateway and 3 of 3 against all languages in its league.

What is the fastest Rust gRPC server?

wtx, with a composite of 1205 on gRPC and 3 of 9 against all languages in its league.

What is the fastest Rust WebSocket server?

trillium-tuned, with a composite of 2830 on WebSocket and 3 of 38 against all languages in its league.

How many Rust web frameworks are benchmarked?

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

Is Rust fast for web servers?

The quickest Rust entry, cpeak, places 2 of 107 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 22 entries.

Every Rust entry

Other languages

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 · Zig

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