HttpArena

C web framework benchmarks: performance comparison

The fastest C HTTP engine in HttpArena is apex-tuned, with a composite of 5508 on HTTP/1.1 — 6 of 46 against every language in its league. Measured over Alpha Round, every entry on the same machine. The leading experimental C framework is httparena-io_uring, 7 of 32 in its own league. The leading C reverse proxy or static-file server is nginx, 3 of 9 in its own league.

Compare any two C entries profile by profile →

Every C 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 C 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.

HTTP/1.1

Engines

EngineTypeCompositeRank in its leagueRank among C
apex-tunedEngine55086 of 461 of 3
mongooseEngine497310 of 462 of 3
libreactorngEngine283520 of 463 of 3

Experimental frameworks

FrameworkTypeCompositeRank in its leagueRank among C
httparena-io_uringExperimental53557 of 321 of 2
cwebExperimental309320 of 322 of 2

Reverse proxies and static-file servers

ServerTypeCompositeRank in its leagueRank among C
nginxInfrastructure31983 of 91 of 4
h2oInfrastructure27044 of 92 of 4
varnishInfrastructure6956 of 93 of 4
Vinyl CacheInfrastructure4309 of 94 of 4

HTTP/2

Engines

EngineTypeCompositeRank in its leagueRank among C
apex-tunedEngine28551 of 18—

Reverse proxies and static-file servers

ServerTypeCompositeRank in its leagueRank among C
h2oInfrastructure11703 of 81 of 3
nginxInfrastructure6745 of 82 of 3
varnishInfrastructure1006 of 83 of 3

HTTP/3

Reverse proxies and static-file servers

ServerTypeCompositeRank in its leagueRank among C
nginxInfrastructure9074 of 6—

WebSocket

Engines

EngineTypeCompositeRank in its leagueRank among C
mongooseEngine27593 of 201 of 2
ringzero-wsEngine19886 of 202 of 2

Experimental frameworks

FrameworkTypeCompositeRank in its leagueRank among C
cwebExperimental28176 of 23—

Questions

What is the fastest C HTTP engine?

apex-tuned leads the C HTTP engines in HttpArena with a composite score of 5508 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, apex-tuned ranks 6 of 46 in its league.

What is the fastest experimental C framework?

httparena-io_uring leads the experimental C frameworks in HttpArena with a composite score of 5355 on HTTP/1.1, measured over Alpha Round. Against every language, httparena-io_uring ranks 7 of 32 in its league.

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

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

Why are C entries ranked in separate leagues?

HttpArena ranks 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. 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 C head-to-head comparison, which lines up every test both of them ran.

What is the fastest C HTTP/2 server?

Among HTTP engines, apex-tuned (composite 2855, 1 of 18 in that league); among reverse proxies and static-file servers, h2o (composite 1170, 3 of 8 in that league). The leagues are scored separately, so those composites are not on one scale.

What is the fastest C HTTP/3 server?

nginx, with a composite of 907 on HTTP/3 and 4 of 6 against all languages in its league.

What is the fastest C WebSocket server?

Among HTTP engines, mongoose (composite 2759, 3 of 20 in that league); among experimental frameworks, cweb (composite 2817, 6 of 23 in that league). The leagues are scored separately, so those composites are not on one scale.

How many C web frameworks are benchmarked?

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

Is C fast for web servers?

The leading C HTTP engine, apex-tuned, places 6 of 46 on HTTP/1.1 across every language in its league, so that placing is the honest answer for C at its best rather than for C in general. The tables below show the spread across all 10 entries.

Every C entry

Other languages

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

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