HttpArena

Zig web framework benchmarks: performance comparison

The fastest Zig web framework in HttpArena is dusty-tuned, with a composite of 6347 on HTTP/1.1 — 3 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 Zig HTTP engine is zix, 15 of 46 in its own league. The leading experimental Zig framework is anole, 9 of 32 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 tuned63473 of 1141 of 2
dustyEmerging59963 of 882 of 2

Engines

EngineTypeCompositeRank in its leagueRank among Zig
zixEngine385015 of 461 of 3
libxevEngine287619 of 462 of 3
zeemoEngine280322 of 463 of 3

Experimental frameworks

FrameworkTypeCompositeRank in its leagueRank among Zig
anoleExperimental48599 of 321 of 4
swerverExperimental tuned464610 of 342 of 5
niloExperimental463310 of 322 of 4
netcode-httpExperimental284822 of 323 of 4
uWebZocketsExperimental277424 of 324 of 4

HTTP/2

Engines

EngineTypeCompositeRank in its leagueRank among Zig
zixEngine27503 of 18—

Experimental frameworks

FrameworkTypeCompositeRank in its leagueRank among Zig
anoleExperimental26208 of 181 of 3
swerverExperimental tuned260710 of 202 of 4
niloExperimental162811 of 182 of 3
uWebZocketsExperimental44717 of 183 of 3

HTTP/3

Engines

EngineTypeCompositeRank in its leagueRank among Zig
zixEngine16812 of 8—

Experimental frameworks

FrameworkTypeCompositeRank in its leagueRank among Zig
anoleExperimental10236 of 111 of 2
swerverExperimental tuned5039 of 132 of 3
uWebZocketsExperimental011 of 112 of 2

Gateway

Experimental frameworks

FrameworkTypeCompositeRank in its leagueRank among Zig
anoleExperimental21582 of 2—

gRPC

Engines

EngineTypeCompositeRank in its leagueRank among Zig
zixEngine19102 of 4—

Experimental frameworks

FrameworkTypeCompositeRank in its leagueRank among Zig
anoleExperimental16733 of 81 of 2
swerverExperimental tuned14686 of 102 of 3
niloExperimental13135 of 82 of 2

WebSocket

Frameworks

FrameworkTypeCompositeRank in its leagueRank among Zig
dustyEmerging27263 of 31—

Engines

EngineTypeCompositeRank in its leagueRank among Zig
zixEngine29581 of 20—

Experimental frameworks

FrameworkTypeCompositeRank in its leagueRank among Zig
netcode-httpExperimental29203 of 231 of 4
niloExperimental245410 of 232 of 4
anoleExperimental237512 of 233 of 4
uWebZocketsExperimental193916 of 234 of 4

Database

Frameworks

FrameworkTypeCompositeRank in its leagueRank among Zig
dusty-tunedEmerging tuned19332 of 111 of 2
dustyEmerging18092 of 82 of 2

Experimental frameworks

FrameworkTypeCompositeRank in its leagueRank among Zig
anoleExperimental3485 of 5—

Questions

What is the fastest Zig web framework?

dusty-tuned leads the Zig web frameworks in HttpArena with a composite score of 6347 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 3 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 Zig HTTP engine?

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

What is the fastest experimental Zig framework?

anole leads the experimental Zig frameworks in HttpArena with a composite score of 4859 on HTTP/1.1, measured over Alpha Round. Against every language, anole ranks 9 of 32 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 18 in that league); among experimental frameworks, anole (composite 2620, 8 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 1023, 6 of 11 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 2158 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 1673, 3 of 8 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 2726, 3 of 31 in that league); among HTTP engines, zix (composite 2958, 1 of 20 in that league); among experimental frameworks, netcode-http (composite 2920, 3 of 23 in that league). The leagues are scored separately, so those composites are not on one scale.

What is the fastest Zig database-backed server?

Among web frameworks, dusty-tuned (composite 1933, 2 of 11 in that league); among experimental frameworks, anole (composite 348, 5 of 5 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, Database. 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 3 of 114 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

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

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