HttpArena
Frameworks

Zig web framework benchmarks: performance comparison

The fastest Zig web framework in HttpArena is dusty-tuned, with a composite of 7638 on HTTP/1.1 — 1 of 109 against every language in its league. Measured over Alpha Round, every entry on the same machine. This is a tuned entry. The leading Zig HTTP engine is zix, 14 of 46 in its own league. The leading experimental Zig framework is nilo, 7 of 30 in its own league.

Compare any two Zig entries profile by profile →

Every Zig 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 Zig 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 Zig
dusty-tunedEmerging tuned76381 of 1091 of 2
dustyEmerging69482 of 852 of 2

Engines

EngineTypeCompositeRank in its leagueRank among Zig
zixEngine474514 of 461 of 3
libxevEngine381919 of 462 of 3
zeemoEngine368722 of 463 of 3

Experimental frameworks

FrameworkTypeCompositeRank in its leagueRank among Zig
niloExperimental63337 of 301 of 4
swerverExperimental tuned61508 of 322 of 5
anoleExperimental60898 of 302 of 4
netcode-httpExperimental382921 of 303 of 4
uWebZocketsExperimental374723 of 304 of 4

HTTP/2

Engines

EngineTypeCompositeRank in its leagueRank among Zig
zixEngine27503 of 17—

Experimental frameworks

FrameworkTypeCompositeRank in its leagueRank among Zig
swerverExperimental tuned27427 of 181 of 4
anoleExperimental21946 of 161 of 3
niloExperimental17429 of 162 of 3
uWebZocketsExperimental45315 of 163 of 3

HTTP/3

Engines

EngineTypeCompositeRank in its leagueRank among Zig
zixEngine16812 of 8—

Experimental frameworks

FrameworkTypeCompositeRank in its leagueRank among Zig
anoleExperimental11185 of 101 of 2
swerverExperimental tuned5488 of 122 of 3
uWebZocketsExperimental010 of 102 of 2

Gateway

Experimental frameworks

FrameworkTypeCompositeRank in its leagueRank among Zig
anoleExperimental21452 of 2—

gRPC

Engines

EngineTypeCompositeRank in its leagueRank among Zig
zixEngine19102 of 4—

Experimental frameworks

FrameworkTypeCompositeRank in its leagueRank among Zig
anoleExperimental16992 of 71 of 2
swerverExperimental tuned14835 of 92 of 3
niloExperimental13264 of 72 of 2

WebSocket

Frameworks

FrameworkTypeCompositeRank in its leagueRank among Zig
dustyEmerging29351 of 30—

Engines

EngineTypeCompositeRank in its leagueRank among Zig
zixEngine29581 of 20—

Experimental frameworks

FrameworkTypeCompositeRank in its leagueRank among Zig
netcode-httpExperimental29762 of 231 of 4
anoleExperimental252410 of 232 of 4
niloExperimental249411 of 233 of 4
uWebZocketsExperimental199316 of 234 of 4

Questions

What is the fastest Zig web framework?

dusty-tuned leads the Zig web frameworks in HttpArena with a composite score of 7638 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, dusty-tuned ranks 1 of 109 in its league. It is a tuned entry, so it is ranked in the field that includes tuned configurations.

What is the fastest Zig HTTP engine?

zix leads the Zig HTTP engines in HttpArena with a composite score of 4745 on HTTP/1.1, measured over Alpha Round. Against every language, zix ranks 14 of 46 in its league.

What is the fastest experimental Zig framework?

nilo leads the experimental Zig frameworks in HttpArena with a composite score of 6333 on HTTP/1.1, measured over Alpha Round. Against every language, nilo ranks 7 of 30 in its league.

Why are Zig entries ranked in separate leagues?

HttpArena ranks web frameworks, HTTP engines, and experimental frameworks 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 Zig head-to-head comparison, which lines up every test both of them ran.

What is the fastest Zig HTTP/2 server?

Among HTTP engines, zix (composite 2750, 3 of 17 in that league); among experimental frameworks, swerver (composite 2742, 7 of 18 in that league). The leagues are scored separately, so those composites are not on one scale.

What is the fastest Zig HTTP/3 server?

Among HTTP engines, zix (composite 1681, 2 of 8 in that league); among experimental frameworks, anole (composite 1118, 5 of 10 in that league). The leagues are scored separately, so those composites are not on one scale.

What is the fastest Zig Gateway server?

anole, with a composite of 2145 on Gateway and 2 of 2 against all languages in its league.

What is the fastest Zig gRPC server?

Among HTTP engines, zix (composite 1910, 2 of 4 in that league); among experimental frameworks, anole (composite 1699, 2 of 7 in that league). The leagues are scored separately, so those composites are not on one scale.

What is the fastest Zig WebSocket server?

Among web frameworks, dusty (composite 2935, 1 of 30 in that league); among HTTP engines, zix (composite 2958, 1 of 20 in that league); among experimental frameworks, netcode-http (composite 2976, 2 of 23 in that league). The leagues are scored separately, so those composites are not on one scale.

How many Zig web frameworks are benchmarked?

10 Zig 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 Zig fast for web servers?

The leading Zig web framework, dusty-tuned, places 1 of 109 on HTTP/1.1 across every language in its league, so that placing is the honest answer for Zig at its best rather than for Zig in general. The tables below show the spread across all 10 entries.

Every Zig 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 · Rust · Scala · Sober · Swift · TS · V · Valk

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