HttpArena

C web framework comparison: any two, head to head

apex-tuned is ahead of mongoose on 7 of the 8 tests they both run, and behind on 1. On the HTTP/1.1 composite apex-tuned scores 5508 and mongoose 4973.

Pick any two of the 10 C entries. Requests per second is the best of three runs and the delta is the first column against the second; every row is the same profile at the same connection count, on the same machine. The fixed-rate profiles offer every entry the same request rate, so they are compared on their score out of 100 instead, which is CPU cost and latency at that rate. What each profile measures.

ProfileConnsapex-tunedmongooseDeltaapex-tuned p99mongoose p99
Requests per second
Baseline4,0964,403,8563,707,598+19%1.96ms1.91ms
Short-lived4,0962,822,8032,701,933+4%1.80ms11.70ms
Async Delay32,0001,997,0362,668,972-25%21.50ms13.90ms
JSON TLS4,0961,822,3831,102,964+65%79.25ms44.64ms
Static TLS1,0241,048,575611,058+72%39.69ms30.58ms
Fixed-rate profiles: score out of 100
Latency-10K1,02481.873.7+11%110us123us
Latency-1M1,02499.090.0+10%138us167us
8Gbit51287.579.1+11%116us126us

Common comparisons

apex-tuned vs mongoose · apex-tuned vs libreactorng · apex-tuned vs httparena-io_uring · mongoose vs libreactorng · mongoose vs httparena-io_uring · libreactorng vs httparena-io_uring

Questions

Is apex-tuned faster than mongoose?

apex-tuned is ahead of mongoose on 7 of the 8 tests they both run, and behind on 1. On the HTTP/1.1 composite apex-tuned scores 5508 and mongoose 4973. Both run on the same machine, in the same round, against the same profiles.

Is apex-tuned faster than libreactorng?

apex-tuned is ahead of libreactorng on 4 of the 5 tests they both run, and behind on 1. On the HTTP/1.1 composite apex-tuned scores 5508 and libreactorng 2835. Both run on the same machine, in the same round, against the same profiles.

Is apex-tuned faster than httparena-io_uring?

apex-tuned and httparena-io_uring are level: each is ahead on 5 of the 10 tests they both run. Their composite scores are not on one scale: apex-tuned is ranked among HTTP engines and httparena-io_uring among experimental frameworks, and each league is measured against its own leader. Both run on the same machine, in the same round, against the same profiles.

Is mongoose faster than libreactorng?

libreactorng is ahead of mongoose on 3 of the 4 tests they both run, and behind on 1. On the HTTP/1.1 composite mongoose scores 4973 and libreactorng 2835. Both run on the same machine, in the same round, against the same profiles.

Which C framework is fastest overall?

Among the C HTTP engines, apex-tuned holds the highest HTTP/1.1 composite, at 5508; among the experimental C frameworks, httparena-io_uring holds the highest HTTP/1.1 composite, at 5355; among the C reverse proxies and static-file servers, nginx holds the highest HTTP/1.1 composite, at 3198. Each league is measured against its own leader, and the leagues do not all count the same profiles, so those numbers are not on one scale and the highest of them is not the fastest entry on the page: to set an entry of one league against an entry of another, pick the two in the table above. The composite is throughput over the whole suite; if a service is one shape of workload, compare that profile on its own in the table above, because the order changes.

Every C entry

Results updated · C composite ranking · Compare across languages · Other languages · Open the leaderboard