HttpArena

viltrum

Experimental · V · standard configuration · completeness 4/4

HTTP framework for V with its own engine: one SO_REUSEPORT epoll worker per CPU, pipelined responses batched into one write, and no allocation per request inside the framework (CI-enforced). Router with :params, middleware chain (c.next()), compile-time JSON encoder, gzip middleware on its own DEFLATE encoder, static files with ETag, ranges and precompressed .br/.gz copies. TLS 1.3 on the same workers: the common handshake (X25519, RSA-PSS) and the AES-GCM records on its own code, the rest on mbedtls, the TLS library V ships; certificates reloaded when the files change. HTTP/2 on the same workers and through the same router and Ctx: over TLS by ALPN and cleartext with prior knowledge, its own HPACK, flow control and RFC 9113 limits. WebSocket (RFC 6455) on the same workers, messages handed over as views into the read buffer. A quiet connection holds no buffers (they are lent per event). Request framing is smuggling-hardened (Content-Length and chunked) and fuzzed in CI. async-db and fortunes park the request (Ctx.suspend) while the entry's own Postgres wire client (no libpq) runs the query; fortunes renders with V's compile-time templates. Default configuration.

Achievements

🥇 6 Gold · 🥈 11 Silver · 🥉 1 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 · HTTP/1.11 of 32
🥇 GoldFamily compositeComposite · WebSocket1 of 23
🥇 GoldTest profileConcurrency · Async Delay1 of 28
🥇 GoldTest profileConnection · Short-lived1 of 32
🥇 GoldTest profileWebSocket · Echo Short-lived1 of 21
🥇 GoldTest profileWorkload · JSON TLS1 of 29
🥈 SilverFamily compositeComposite · Database2 of 5
🥈 SilverFamily compositeComposite · HTTP/22 of 18
🥈 SilverTest profileConcurrency · CON-1M2 of 6
🥈 SilverTest profileDatabase · Async DB2 of 5
🥈 SilverTest profileEfficiency · Latency-10K2 of 30
🥈 SilverTest profileHTTP/2 · Baseline2 of 16
🥈 SilverTest profileHTTP/2 · Baseline (h2c)2 of 18
🥈 SilverTest profileHTTP/2 · Static2 of 16
🥈 SilverTest profileWebSocket · Echo2 of 23
🥈 SilverTest profileWebSocket · Echo Pipelined2 of 23
🥈 SilverTest profileWorkload · JSON Comp2 of 29
🥉 BronzeTest profileHTTP/2 · JSON (h2c)3 of 18

Composite rank

Each profile of a family is worth its weight × 1,000 to the entry that leads it - 1, or 0.5 apiece for two profiles that measure one thing - 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.11 of 326886
HTTP/22 of 183789
WebSocket1 of 232982
Database2 of 5666

Protocol compliance

The conformance suites this entry subscribes to, run against it on the benchmark machine: Http11Probe on HTTP/1.1, h2spec on HTTP/2, h3spec on HTTP/3 and Autobahn on WebSocket. A score, not part of the composite. How it works.

SuiteToolPassedFailed
HTTP/1.1http11probe d50d818159 of 159 (100%)0
HTTP/2h2spec 2.6.0145 of 146 (99.3%)1
WebSocketautobahn-testsuite 25.10.1244 of 244 (100%)0

HTTP/2: what failed

TestExpectedGot
http2/3.5/2 Sends invalid connection prefaceGOAWAY Frame (Error Code: PROTOCOL_ERROR) or Connection closedError: unexpected EOF

Every result

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

CategoryProfileConnsReq/secAvgp99CPUMemory
ConnectionBaseline4,0963,948,8841.04ms2.20ms6544.8%81MiB
ConnectionPipelined4,09631,438,8482.08ms4.54ms6332.4%79MiB
ConnectionShort-lived4,0962,769,2481.35ms2.28ms5811.4%99MiB
ConcurrencyAsync Delay32,0002,835,18811.29ms13.20ms5268.4%201MiB
ConcurrencyCON-1M1,000,000250,00075.1us127.0us733.1%4.7GiB
ConcurrencyCON-1M-TLS1,000,000249,95671.0us98.0us1982.4%8.4GiB
EfficiencyLatency-10K1,0249,98371.8us100.0us23.5%50MiB
EfficiencyLatency-1M1,024997,70389.0us162.0us2270.0%51MiB
WorkloadJSON Comp4,096967,9014.23ms12.40ms6671.5%85MiB
WorkloadJSON Comp16,384969,42516.90ms43.50ms6691.2%202MiB
WorkloadJSON TLS4,0961,864,4781.32ms56.00ms5358.7%159MiB
Workload8Gbit51249,32776.2us101.0us200.6%65MiB
WorkloadStatic TLS1,024365,1712.99ms20.77ms2659.1%266MiB
DatabaseAsync DB1,024240,4524.25ms11.50ms3157.1%655MiB
DatabaseFortunes1,0248,104125.44ms241.20ms1475.2%219MiB
HTTP/2Baseline25615,213,180842us3.21ms1232.2%64MiB
HTTP/2Baseline1,02415,235,7823.24ms4.96ms1307.2%100MiB
HTTP/2Static2561,456,0255.73ms15.07ms6390.8%143MiB
HTTP/2Static1,0241,435,37621.58ms46.00ms6280.7%359MiB
HTTP/2Baseline (h2c)25615,707,952798us1.48ms1256.7%46MiB
HTTP/2Baseline (h2c)1,02415,575,5243.50ms20.53ms1232.7%65MiB
HTTP/2Baseline (h2c)4,09614,086,69213.65ms21.38ms1146.3%141MiB
HTTP/2JSON (h2c)1,0244,682,8746.94ms18.62ms6294.9%202MiB
HTTP/2JSON (h2c)4,0964,538,98330.31ms98.85ms6088.2%378MiB
WebSocketEcho5124,213,067120us308us6167.2%48MiB
WebSocketEcho4,0964,304,845951us2.01ms6444.5%78MiB
WebSocketEcho16,3844,167,2943.93ms7.73ms6069.1%195MiB
WebSocketEcho Pipelined51262,677,404130us364us6354.4%45MiB
WebSocketEcho Pipelined4,09663,633,0301.03ms2.19ms6233.3%79MiB
WebSocketEcho Pipelined16,38461,891,3534.24ms8.40ms5862.6%189MiB
WebSocketEcho Short-lived5122,504,795165us505us5360.3%57MiB
WebSocketEcho Short-lived4,0962,602,2071.31ms2.17ms5502.6%96MiB

Compare viltrum with any V entry · Compare viltrum with any entry, in any language · Every V entry, ranked

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