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

🥇 2 Gold · 🥈 3 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
🥇 GoldFamily compositeComposite · Gateway1 of 3
🥇 GoldTest profileGateway · Gateway (H2)1 of 3
🥈 SilverTest profileEfficiency · Latency-10K2 of 44
🥈 SilverTest profileGateway · Gateway (H3)2 of 3
🥈 SilverTest profilegRPC · Unary2 of 4
🥉 BronzeTest profileEfficiency · Latency-1M3 of 44
🥉 BronzeTest profileHTTP/2 · Baseline (h2c)3 of 14
🥉 BronzeTest profileWebSocket · Echo Pipelined3 of 20

Composite rank

Each profile of a family is worth 1,000 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.112 of 465445
HTTP/29 of 17906
Gateway1 of 32918
gRPC4 of 4982
WebSocket4 of 202343

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,0964,018,4331.02ms1.29ms6470.6%155MiB
ConnectionPipelined4,09639,307,0841.67ms1.87ms6385.3%158MiB
ConnectionShort-lived4,0961,052,1373.87ms40.00ms2984.6%110MiB
ConcurrencyAsync Delay32,0002,568,42012.37ms12.90ms6226.4%1.3GiB
EfficiencyLatency-10K1,0249,98366.2us106.0us21.6%83MiB
EfficiencyLatency-1M1,024998,23892.9us163.0us2147.8%86MiB
EfficiencyLatency-500K/81,024498,824985.5us9716.0us773.3%45MiB
WorkloadJSON Comp4,0962,512,4261.40ms35.60ms5792.0%169MiB
WorkloadJSON Comp16,3842,471,0006.27ms158.30ms6024.2%191MiB
WorkloadJSON TLS4,0961,568,14313.77ms599.95ms5712.4%377MiB
Workload8Gbit51249,160277.7us232.0us407.1%112MiB
WorkloadStatic TLS1,0241,095,3691.43ms169.44ms6341.3%149MiB
DatabaseAsync DB1,024342,1581.29ms9.03ms2992.9%176MiB
DatabaseFortunes1,024193,0493.77ms7.92ms6280.3%271MiB
HTTP/2Baseline (h2c)25615,687,475854us22.45ms2040.4%146MiB
HTTP/2Baseline (h2c)1,02415,305,9284.13ms103.40ms2226.2%237MiB
HTTP/2Baseline (h2c)4,09612,542,90732.43ms543.98ms2633.9%1.9GiB
HTTP/2JSON (h2c)1,0244,647,3895.39ms88.15ms6428.6%484MiB
HTTP/2JSON (h2c)4,0963,726,21735.90ms323.17ms6038.6%2.0GiB
gRPCUnary2567,302,4402.07ms25.75ms1309.3%153MiB
gRPCUnary1,0247,180,1778.07ms107.26ms1476.4%578MiB
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,261,389119us151us6208.7%77MiB
WebSocketEcho4,0964,254,289962us1.04ms6194.2%154MiB
WebSocketEcho16,3843,976,3334.03ms5.05ms5912.4%387MiB
WebSocketEcho Pipelined51265,410,639124us158us6283.0%81MiB
WebSocketEcho Pipelined4,09663,130,4861.04ms1.16ms6469.0%154MiB
WebSocketEcho Pipelined16,38460,671,1564.24ms4.48ms6400.3%389MiB
WebSocketEcho Short-lived5121,006,34448us109us3448.6%74MiB
WebSocketEcho Short-lived4,0961,010,06049us127us3302.0%80MiB

Compared with

The V HTTP engines around vanilla-epoll on the HTTP/1.1 composite, and the one leading them. Entries of other leagues are left out: a composite does not carry from one league to another. The last column shows every profile side by side.

EntryCompositevs vanilla-epoll
vanilla-io_uring5160-5%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