HttpArena

okena

Infrastructure · Assembly

okena, a load balancer, reverse proxy and API gateway written in x86-64 assembly (no libc, io_uring), with HttpArena's handler module assembled into the binary (make MODULES=httparena.inc): /baseline sums the query and body, /json/{count} serializes the parsed dataset per request (compressed per request by okena's own gzip/brotli for json-comp), /echo returns the body okena read, /delay/{ms} holds the request on okena's timers without blocking the worker, and benchmark.BenchmarkService/GetSum answers unary gRPC (protobuf decoded and encoded by the module, grpc-status as an HTTP/2 trailer). Static files from okena's own file server with its precompressed .br/.gz. Its own TLS 1.3 / 1.2, HTTP/2 and HTTP/3. HTTP/1.1 (and h2c for gRPC) on :8080, h1 over TLS on :8081, h2c on :8082, h2 and h3 on :8443.

Achievements

🥇 12 Gold. 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 9
🥇 GoldFamily compositeComposite · HTTP/21 of 8
🥇 GoldFamily compositeComposite · HTTP/31 of 6
🥇 GoldTest profileConnection · Baseline1 of 9
🥇 GoldTest profileConnection · Pipelined1 of 9
🥇 GoldTest profileConnection · Short-lived1 of 9
🥇 GoldTest profileHTTP/2 · Baseline1 of 8
🥇 GoldTest profileHTTP/2 · Static1 of 8
🥇 GoldTest profileHTTP/3 · Baseline1 of 6
🥇 GoldTest profileHTTP/3 · Static1 of 6
🥇 GoldTest profileWorkload · JSON TLS1 of 7
🥇 GoldTest profileWorkload · Static TLS1 of 7

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.11 of 95000
HTTP/21 of 82000
HTTP/31 of 62000

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.0146 of 146 (100%)0
HTTP/3h3spec v0.1.1585 of 85 (100%)0

Every result

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

CategoryProfileConnsReq/secAvgp99CPUMemory
ConnectionBaseline4,0963,977,2351.03ms1.51ms6516.5%198MiB
ConnectionPipelined4,09627,122,9662.42ms3.12ms6475.6%209MiB
ConnectionShort-lived4,0962,765,5241.35ms1.78ms5711.9%233MiB
ConcurrencyAsync Delay32,0002,955,57910.83ms12.20ms5773.5%649MiB
EfficiencyLatency-10K1,0249,98268.2us103.0us22.7%129MiB
EfficiencyLatency-1M1,024998,28794.3us166.0us2261.7%130MiB
WorkloadJSON Comp4,0961,010,9334.05ms9.87ms6677.3%356MiB
WorkloadJSON Comp16,384985,22616.42ms295.10ms6334.0%473MiB
WorkloadJSON TLS4,0961,897,5951.15ms34.65ms4622.2%254MiB
Workload8Gbit51249,15879.6us103.0us173.3%142MiB
WorkloadStatic TLS1,0241,239,836586.89us17.07ms5281.4%150MiB
HTTP/2Baseline25616,769,145791us1.42ms2260.1%369MiB
HTTP/2Baseline1,02416,211,7193.12ms6.59ms2083.6%405MiB
HTTP/2Static2561,762,2143.28ms8.71ms5733.1%447MiB
HTTP/2Static1,0241,640,96518.08ms36.27ms6309.1%1.0GiB
HTTP/2Baseline (h2c)25617,294,214750us1.33ms2133.6%365MiB
HTTP/2Baseline (h2c)1,02417,291,4622.83ms4.35ms2262.5%531MiB
HTTP/2Baseline (h2c)4,09616,079,14012.30ms22.79ms2100.0%570MiB
HTTP/2JSON (h2c)1,0246,646,5222.89ms8.02ms5298.5%396MiB
HTTP/2JSON (h2c)4,0965,519,86418.46ms53.18ms6401.2%734MiB
HTTP/3Baseline648,776,341453us740us1411.9%432MiB
HTTP/3Static641,018,3574.13ms15.91ms2702.9%280MiB
gRPCUnary2567,123,2202.12ms2.71ms1533.9%391MiB
gRPCUnary1,0247,237,4907.35ms17.34ms1577.0%486MiB
gRPCUnary TLS2567,076,3692.16ms5.13ms1528.1%395MiB
gRPCUnary TLS1,0247,023,7747.51ms14.46ms1429.2%474MiB

Compare okena with any entry, in any language · Every Assembly entry, ranked

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