C web framework benchmarks: performance comparison
The fastest C HTTP engine in HttpArena is apex-tuned, with a composite of 6420 on HTTP/1.1 — 5 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, 4 of 30 in its own league. The leading C reverse proxy or static-file server is nginx, 2 of 8 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
| Engine | Type | Composite | Rank in its league | Rank among C |
|---|---|---|---|---|
| apex-tuned | Engine | 6420 | 5 of 46 | 1 of 3 |
| mongoose | Engine | 5800 | 10 of 46 | 2 of 3 |
| libreactorng | Engine | 3734 | 20 of 46 | 3 of 3 |
Experimental frameworks
| Framework | Type | Composite | Rank in its league | Rank among C |
|---|---|---|---|---|
| httparena-io_uring | Experimental | 7335 | 4 of 30 | 1 of 2 |
| cweb | Experimental | 4380 | 19 of 30 | 2 of 2 |
Reverse proxies and static-file servers
| Server | Type | Composite | Rank in its league | Rank among C |
|---|---|---|---|---|
| nginx | Infrastructure | 3717 | 2 of 8 | 1 of 4 |
| h2o | Infrastructure | 3272 | 4 of 8 | 2 of 4 |
| varnish | Infrastructure | 901 | 5 of 8 | 3 of 4 |
| Vinyl Cache | Infrastructure | 626 | 7 of 8 | 4 of 4 |
HTTP/2
Engines
| Engine | Type | Composite | Rank in its league | Rank among C |
|---|---|---|---|---|
| apex-tuned | Engine | 2855 | 1 of 17 | — |
Reverse proxies and static-file servers
| Server | Type | Composite | Rank in its league | Rank among C |
|---|---|---|---|---|
| h2o | Infrastructure | 1236 | 2 of 7 | 1 of 3 |
| nginx | Infrastructure | 747 | 3 of 7 | 2 of 3 |
| varnish | Infrastructure | 112 | 5 of 7 | 3 of 3 |
HTTP/3
Reverse proxies and static-file servers
WebSocket
Engines
| Engine | Type | Composite | Rank in its league | Rank among C |
|---|---|---|---|---|
| mongoose | Engine | 2759 | 3 of 20 | 1 of 2 |
| ringzero-ws | Engine | 1988 | 6 of 20 | 2 of 2 |
Experimental frameworks
Questions
What is the fastest C HTTP engine?
apex-tuned leads the C HTTP engines in HttpArena with a composite score of 6420 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 5 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 7335 on HTTP/1.1, measured over Alpha Round. Against every language, httparena-io_uring ranks 4 of 30 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 3717 on HTTP/1.1, measured over Alpha Round. Against every language, nginx ranks 2 of 8 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 17 in that league); among reverse proxies and static-file servers, h2o (composite 1236, 2 of 7 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 1012 on HTTP/3 and 3 of 5 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 2872, 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 5 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
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