HttpArena
Frameworks

valk

Experimental · Valk · engine: valk.http · standard configuration · completeness 4/4

Valk's standard library HTTP/1.1, HTTP/2 and WebSocket server (io_uring with epoll fallback), built-in router, JSON serializer, static file server and response compression.

Achievements

🥇 1 Gold · 🥉 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
🥇 GoldTest profileEfficiency · Latency-10K1 of 28
🥉 BronzeTest profileEfficiency · Latency-1M3 of 28

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.111 of 305610
HTTP/210 of 161393
WebSocket8 of 222555

Every result

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

CategoryProfileConnsReq/secAvgp99CPUMemory
ConnectionBaseline4,0963,903,0351.05ms1.75ms6507.1%378MiB
ConnectionPipelined4,09617,112,9013.83ms19.70ms3148.5%407MiB
ConnectionShort-lived4,0962,692,0491.46ms10.40ms6088.1%419MiB
ConcurrencyAsync Delay32,0001,979,41716.04ms36.60ms5152.2%888MiB
EfficiencyLatency-10K1,0249,984426.4us2015.0us30.5%291MiB
EfficiencyLatency-1M1,024998,033118.8us192.0us2587.8%309MiB
EfficiencyLatency-500K/81,024488,890190866.3us1743360.0us822.2%64MiB
WorkloadJSON Comp4,096665,8766.12ms57.40ms3380.9%494MiB
WorkloadJSON Comp16,384494,23632.24ms493.40ms2711.6%699MiB
WorkloadJSON TLS4,096444,7399.29ms51.02ms1952.2%813MiB
Workload8Gbit51249,15993.7us117.0us226.8%304MiB
WorkloadStatic TLS1,024237,7384.64ms35.37ms2389.0%450MiB
HTTP/2Baseline2567,732,1233.45ms43.41ms1398.9%351MiB
HTTP/2Baseline1,0244,369,13023.04ms134.23ms984.9%480MiB
HTTP/2Static256546,37316.30ms109.40ms6076.1%568MiB
HTTP/2Static1,024471,12067.38ms221.99ms6616.2%1.2GiB
HTTP/2Baseline (h2c)2568,965,3672.91ms60.27ms1484.8%321MiB
HTTP/2Baseline (h2c)1,0244,748,61321.35ms393.27ms971.6%390MiB
HTTP/2Baseline (h2c)4,0966,709,58764.30ms1.04s1581.1%1021MiB
HTTP/2JSON (h2c)1,024580,94155.51ms589.80ms746.8%464MiB
HTTP/2JSON (h2c)4,096959,346132.74ms2.43s1211.9%1.1GiB
WebSocketEcho5123,978,479128us320us6438.0%283MiB
WebSocketEcho4,0964,198,097974us1.89ms6429.4%389MiB
WebSocketEcho16,3843,778,6294.22ms8.21ms6409.7%986MiB
WebSocketEcho Pipelined51258,865,763138us358us6496.2%280MiB
WebSocketEcho Pipelined4,09657,508,6841.14ms2.28ms6473.6%394MiB
WebSocketEcho Pipelined16,38448,260,4455.26ms10.50ms5768.1%1.0GiB
WebSocketEcho Short-lived5121,671,429131us495us4478.2%319MiB
WebSocketEcho Short-lived4,0961,963,668510us4.79ms4367.0%383MiB

Compare valk with any entry, in any language · Every Valk entry, ranked

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