HttpArena
Frameworks

vanilla-epoll

Engine · V · engine: epoll

vanilla is a minimalist, high-performance HTTP server written in V: multi-threaded, non-blocking epoll I/O, lock-free, copy-free, SO_REUSEPORT. Handlers are pure (request)->[]u8 returning raw response bytes. JSON is built in a single allocation with precomputed prefixes (no per-request reflection); json-comp gzips on Accept-Encoding; json-tls terminates TLS 1.3 (Mbed TLS 4) on :8081 with ALPN http/1.1, reusing the same allocation-free /json serializer; static-tls serves the 20 /static files on :8081 through vanilla's static_assets (br/gzip negotiation; snapshots re-checked against the disk, so a replaced file is served at once), sending bodies of 16 KiB or more with sendfile(2) over kTLS; fortunes renders the DB rows + a runtime row with HTML escaping; async-db/crud/fortunes use the native async pg_async driver with per-worker pipelined pools. Pinned V master (built from source, bootstrap pinned). async parks each /delay/{ms} on a one-shot timerfd from a per-worker free-list and answers only once it reports an expiration; 8gbit echoes the POST body on the :8081 TLS listener (Content-Length or chunked, per-worker dechunk buffer); production-stack's /api cache-aside (X-Cache MISS/HIT, 1 s items / 30 s users TTL, invalidated on write) runs in-process — no Redis required. The h2c profiles run on an h2c-only epoll listener on :8082 (an HTTP/1.1 request there gets 505): the connection preface (PRI *) parses as an ordinary request, the handler hands the connection to vanilla's http2 module (core.queue_takeover) and appends the server SETTINGS, and every later burst goes to the RFC 9113 machine, which surfaces a request only when it is complete; /json reuses the same prefixes and body writer. unary-grpc takes the same preface on :8080 and answers GetSum as HEADERS, the SumReply as DATA, then grpc-status 0 as trailers. The echo-ws profiles share the :8080 engine: GET /ws validates the RFC 6455 upgrade, appends the 101 and hands the connection over (core.queue_takeover), after which every readable burst goes to a ConnHandler that walks the frames (echo, ping/pong, close) instead of the HTTP/1.1 parser; a pipelined burst is drained in one call and coalesced into one write, and the accept key is computed on the stack, so an upgrade allocates nothing. One worker per CPU of the container's cpuset.

Achievements

🥇 1 Gold · 🥈 1 Silver · 🥉 3 Bronze. Top three of a field, taken in this entry's own league: the family composite, the same composite among entries written in the same language, and each test profile it is scored on. Every field is the one the badges publish, so a medal and a badge always say the same thing. How medals are awarded.

MedalAwardFieldRank
🥇 GoldTest profilegRPC · Unary1 of 3
🥈 SilverTest profileHTTP/2 · Baseline (h2c)2 of 11
🥉 BronzeFamily compositeComposite · WebSocket3 of 18
🥉 BronzeTest profileEfficiency · Latency-1M3 of 37
🥉 BronzeTest profileWebSocket · Echo Pipelined3 of 18

Composite rank

Each profile of a family is worth 100 to the entry that leads it, and the composite is the sum over the family, less 2.5% for each of routing, middleware, request and response the entry does not do for you - its completeness factor, which the WebSocket and gRPC families do not carry. The field is this entry's own league: engines and reverse proxies are scored apart from frameworks. How it works.

FamilyRankComposite
HTTP/1.16 of 395531
HTTP/25 of 141000
Gateway1 of 22982
gRPC3 of 31000
WebSocket3 of 182362

Every result

Alpha Round, 35 runs. Requests per second is the best of three; latency, CPU and memory come from that run.

CategoryProfileConnsReq/secAvgp99CPUMemory
ConnectionBaseline4,0963,985,5501.03ms1.22ms6461.3%138MiB
ConnectionPipelined4,09638,972,9311.68ms2.00ms6239.7%142MiB
ConnectionShort-lived4,0961,021,7503.99ms40.90ms3135.8%63MiB
ConcurrencyAsync Delay32,0002,602,11912.19ms12.70ms6180.8%1.3GiB
EfficiencyLatency-10K1,0249,98170.5us97.0us21.4%68MiB
EfficiencyLatency-1M1,024998,25386.2us161.0us2159.5%72MiB
EfficiencyLatency-500K/81,024498,857952.7us9084.0us763.1%38MiB
WorkloadJSON Comp4,0962,506,5341.41ms33.00ms5807.3%191MiB
WorkloadJSON Comp16,3842,450,1766.30ms159.20ms5602.3%128MiB
WorkloadJSON TLS4,0961,561,51614.01ms626.52ms5553.9%312MiB
Workload8Gbit51249,171283.5us235.0us505.2%97MiB
WorkloadStatic TLS1,0241,127,2021.40ms175.66ms6338.4%123MiB
DatabaseAsync DB1,024335,1271.32ms8.95ms2975.5%136MiB
DatabaseFortunes1,024188,5353.99ms7.80ms6286.9%245MiB
HTTP/2Baseline (h2c)25615,623,717852us21.85ms2115.5%167MiB
HTTP/2Baseline (h2c)1,02415,521,2454.08ms118.62ms2477.7%220MiB
HTTP/2Baseline (h2c)4,09612,613,76933.00ms544.30ms2778.3%1.9GiB
HTTP/2JSON (h2c)1,0244,633,0445.56ms115.05ms6432.8%474MiB
HTTP/2JSON (h2c)4,0963,779,85936.38ms295.71ms6410.1%1.6GiB
gRPCUnary2567,273,3132.09ms23.10ms1381.9%136MiB
gRPCUnary1,0247,196,6798.33ms100.64ms1527.5%400MiB
GatewayGateway (H2)512380,49049.37ms264.91ms5079.6%1.7GiB
GatewayGateway (H2)1,024383,09086.71ms564.50ms5258.6%2.3GiB
GatewayGateway (H3)6492,11522.11ms81.94ms2748.1%532MiB
GatewayGateway (H3)25662,102128.11ms759.12ms2123.9%1.5GiB
GatewayProduction Stack256241,87320.25ms115.42ms3838.9%1.2GiB
GatewayProduction Stack1,024198,02383.11ms475.44ms3420.9%2.1GiB
WebSocketEcho5124,340,961117us148us6243.3%65MiB
WebSocketEcho4,0964,277,500957us1.03ms6407.2%135MiB
WebSocketEcho16,3844,005,6054.01ms6.98ms6370.6%369MiB
WebSocketEcho Pipelined51266,091,360123us156us6462.1%64MiB
WebSocketEcho Pipelined4,09663,479,9481.02ms1.21ms6147.8%122MiB
WebSocketEcho Pipelined16,38460,931,1654.22ms4.47ms6019.8%368MiB
WebSocketEcho Short-lived5121,006,13747us109us3424.9%62MiB
WebSocketEcho Short-lived4,0961,025,71552us147us3087.7%94MiB

Compared with

The V entries around vanilla-epoll on the HTTP/1.1 composite, and the one leading them. The last column shows every profile side by side.

EntryCompositevs vanilla-epoll
vanilla-io_uring6224+13%head to head
viltrum405-93%head to head

Compare vanilla-epoll with any V entry · Compare vanilla-epoll with any entry, in any language · Every V entry, ranked

Results updated · How the benchmark is run · The machine · Add or fix an entry