Benchmarks

hcs HTTP benchmark results beside the four top standard HttpArena servers on one local machine, with method and caveats.

These are reference numbers, measured on a single local machine so that every server runs under the same conditions. They differ from the published http-arena.com leaderboard figures: that harness pins the server and the load generators to separate core sets on 64-core hardware, while here each side gets eight cores of a desktop. Use the table to compare the servers with each other on this machine, not with the leaderboard.

Scope of these numbers. Each test drives one narrow path (a plaintext reply, a static file, a JSON document, an echo) under a synthetic load generator. An application mixes routing, application logic, serialization, database round-trips and I/O waits in proportions that these tests do not represent. Each figure is the ceiling that one path reached on this hardware. To estimate application performance, measure the application itself under representative load.

Snapshot: 2026-10-19, hcs 0.35.1 with http-proto 0.10.2 and simdjsont 0.5.3 (OCaml 5.4, Eio 1.6 on io_uring), installed from the published opam packages and run as submitted to HttpArena in standard mode. Every run returned 0 × 5xx. The four reference servers were measured the day before with the same harness, machine and settings.

The machine

CPU AMD Ryzen 9 9950X, 16 cores / 32 threads
RAM 60 GiB
OS openSUSE Tumbleweed, kernel 7.2.10
Server cores 0-7 and their SMT siblings 16-23 (--cpuset-cpus)
Load generator cores 8-15 and 24-31
hcs workers 16 single-domain processes, one per logical CPU, sharing the ports with SO_REUSEPORT
hcs GC the runtime's defaults (2 MiB minor heap per domain)

The servers

The four comparison servers are the four highest-ranked standard-mode entries of the HttpArena framework board on the day of the snapshot, built from the same HttpArena checkout as the hcs entry.

Server Language Engine HttpArena entry
hcs OCaml 5.4 hcs 0.35.1 (Eio) araara, standard, emerging
fib Go fib (epoll engine, prefork) fib, standard
aegon C++26 io_uring, coroutines aegon, standard
nilo Zig nilo_http on zio fibers nilo, standard
libuvcpp C++ libuv, one loop per core libuvcpp, standard

Throughput and memory

Throughput in requests/second (echoes per second for WebSocket), averaged over the connection counts each profile runs, alongside peak container RSS. The three fixed-rate profiles (latency-1m, latency-10k, 8gbit) pin the request rate, so they show HttpArena's 0-100 score built from CPU per request and latency instead of a rate. — means the server does not subscribe to that profile. * marks profiles HttpArena publishes for reference but does not score. Bold marks the best value in each row.

Profile hcs (OCaml) fib (Go) aegon (C++) nilo (Zig) libuvcpp (C++)
baseline 1.36 M / 410 MiB 2.17 M / 113 MiB 1.82 M / 1.2 GiB 1.94 M / 152 MiB 1.74 M / 69 MiB
limited-conn 1.28 M / 325 MiB 1.43 M / 144 MiB 1.26 M / 1.3 GiB 1.22 M / 195 MiB 1.32 M / 75 MiB
pipelined * 8.97 M / 396 MiB 18.05 M / 142 MiB 19.09 M / 1.2 GiB 15.21 M / 122 MiB 5.78 M / 99 MiB
async 0 / 257 MiB 233 K / 340 MiB 0 / 1.7 GiB 0 / 538 MiB 0 / 196 MiB
latency-1m 73 / 219 MiB 82 / 92 MiB 100 / 1.1 GiB 90 / 50 MiB 81 / 31 MiB
latency-10k 83 / 126 MiB 91 / 89 MiB 93 / 1.1 GiB 90 / 48 MiB 79 / 28 MiB
latency-500k-8cpu * 75 / 230 MiB 84 / 96 MiB 97 / 1.1 GiB 90 / 49 MiB 85 / 32 MiB
json-comp 237 K / 767 MiB 226 K / 793 MiB 658 K / 1.7 GiB 436 K / 463 MiB 235 K / 47 MiB
json-tls 446 K / 625 MiB 562 K / 323 MiB 537 K / 1.6 GiB 554 K / 592 MiB 436 K / 851 MiB
8gbit 71 / 243 MiB 87 / 121 MiB 84 / 1.2 GiB 39 / 93 MiB 90 / 76 MiB
static-tls * 467 K / 318 MiB 627 K / 182 MiB 243 K / 1.4 GiB — 334 K / 474 MiB
async-db * 45 K / 241 MiB 161 K / 206 MiB — 245 K / 134 MiB 123 K / 101 MiB
baseline-h2 7.53 M / 314 MiB 5.70 M / 554 MiB 8.90 M / 1.3 GiB 9.18 M / 161 MiB 4.02 M / 233 MiB
static-h2 535 K / 820 MiB 599 K / 1.3 GiB 312 K / 2.1 GiB 556 K / 673 MiB 295 K / 617 MiB
baseline-h2c 7.85 M / 487 MiB 8.25 M / 1.1 GiB 9.21 M / 1.4 GiB 9.86 M / 184 MiB 4.20 M / 551 MiB
json-h2c 810 K / 2.9 GiB 703 K / 2.2 GiB 1.75 M / 2.3 GiB 1.91 M / 645 MiB 768 K / 1.2 GiB
unary-grpc 4.66 M / 294 MiB 3.90 M / 1.1 GiB — 5.61 M / 669 MiB 2.28 M / 312 MiB
unary-grpc-tls 4.41 M / 371 MiB 3.33 M / 858 MiB — 3.93 M / 1.9 GiB 2.21 M / 375 MiB
echo-ws 1.94 M / 619 MiB — 1.96 M / 1.7 GiB 1.76 M / 481 MiB 2.05 M / 260 MiB
echo-ws-pipeline 16.08 M / 629 MiB — 28.57 M / 1.7 GiB 27.57 M / 487 MiB 24.08 M / 247 MiB
echo-ws-limited 1.22 M / 270 MiB — 1.37 M / 1.3 GiB 1.19 M / 171 MiB 1.35 M / 88 MiB

The async profile (GET /delay/10 over 32,000 held connections) needs more client ports than this host's default ephemeral range offers. In this run it failed with connect errors for hcs (0), as it did for the three reference servers a day earlier (an earlier hcs run on the same host happened to complete it), so the row is not a comparison.

HttpArena publishes the results of many more servers and profiles at http-arena.com, where you can check other servers and the harness itself.

How the tests are measured

  • Harness: HttpArena benchmark.sh at upstream main (2026-10-17), with three local-only changes: SELinux labelling disabled on the containers so io_uring works, the server pinned to cores 0-7/16-23 instead of the 64-core host's set, and no host retuning (SKIP_TUNE).
  • Load generators: gcannon (HTTP/1.1 and WebSocket), wrk (TLS over HTTP/1.1), h2load (HTTP/2 and gRPC) and zrk (fixed-rate profiles), each in Docker with 8 threads on cores 8-15/24-31. Three runs per profile and connection count; the best is kept, as upstream does.
  • Run-to-run variance is roughly ±5-10 %; two servers within that band are not distinguishable here.
  • Out of scope (no OCaml libraries, or extra services): HTTP/3, gRPC streaming, and the gateway and production-stack compose profiles.

Reproduce

In the hcs repository (arena/README.md has the details):

$ # the released entry, built from the published opam packages
$ docker build -t httparena-araara arena/.httparena-main/frameworks/araara
$ SKIP_FRAMEWORK_BUILD=1 arena/local-bench.sh araara --save
$ arena/local-bench.sh fib --save                  # any reference entry

arena/build.sh builds the same server from the hcs checkout instead, and arena/build-dev.sh can vendor an unreleased http-proto, to measure library changes before they are released.