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.
| Medal | Award | Field | Rank |
|---|---|---|---|
| 🥇 Gold | Family composite | Composite · HTTP/1.1 | 1 of 9 |
| 🥇 Gold | Family composite | Composite · HTTP/2 | 1 of 8 |
| 🥇 Gold | Family composite | Composite · HTTP/3 | 1 of 6 |
| 🥇 Gold | Test profile | Connection · Baseline | 1 of 9 |
| 🥇 Gold | Test profile | Connection · Pipelined | 1 of 9 |
| 🥇 Gold | Test profile | Connection · Short-lived | 1 of 9 |
| 🥇 Gold | Test profile | HTTP/2 · Baseline | 1 of 8 |
| 🥇 Gold | Test profile | HTTP/2 · Static | 1 of 8 |
| 🥇 Gold | Test profile | HTTP/3 · Baseline | 1 of 6 |
| 🥇 Gold | Test profile | HTTP/3 · Static | 1 of 6 |
| 🥇 Gold | Test profile | Workload · JSON TLS | 1 of 7 |
| 🥇 Gold | Test profile | Workload · Static TLS | 1 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.
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.
| Suite | Tool | Passed | Failed |
|---|---|---|---|
| HTTP/1.1 | http11probe d50d818 | 159 of 159 (100%) | 0 |
| HTTP/2 | h2spec 2.6.0 | 146 of 146 (100%) | 0 |
| HTTP/3 | h3spec v0.1.15 | 85 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.
| Category | Profile | Conns | Req/sec | Avg | p99 | CPU | Memory |
|---|---|---|---|---|---|---|---|
| Connection | Baseline | 4,096 | 3,977,235 | 1.03ms | 1.51ms | 6516.5% | 198MiB |
| Connection | Pipelined | 4,096 | 27,122,966 | 2.42ms | 3.12ms | 6475.6% | 209MiB |
| Connection | Short-lived | 4,096 | 2,765,524 | 1.35ms | 1.78ms | 5711.9% | 233MiB |
| Concurrency | Async Delay | 32,000 | 2,955,579 | 10.83ms | 12.20ms | 5773.5% | 649MiB |
| Efficiency | Latency-10K | 1,024 | 9,982 | 68.2us | 103.0us | 22.7% | 129MiB |
| Efficiency | Latency-1M | 1,024 | 998,287 | 94.3us | 166.0us | 2261.7% | 130MiB |
| Workload | JSON Comp | 4,096 | 1,010,933 | 4.05ms | 9.87ms | 6677.3% | 356MiB |
| Workload | JSON Comp | 16,384 | 985,226 | 16.42ms | 295.10ms | 6334.0% | 473MiB |
| Workload | JSON TLS | 4,096 | 1,897,595 | 1.15ms | 34.65ms | 4622.2% | 254MiB |
| Workload | 8Gbit | 512 | 49,158 | 79.6us | 103.0us | 173.3% | 142MiB |
| Workload | Static TLS | 1,024 | 1,239,836 | 586.89us | 17.07ms | 5281.4% | 150MiB |
| HTTP/2 | Baseline | 256 | 16,769,145 | 791us | 1.42ms | 2260.1% | 369MiB |
| HTTP/2 | Baseline | 1,024 | 16,211,719 | 3.12ms | 6.59ms | 2083.6% | 405MiB |
| HTTP/2 | Static | 256 | 1,762,214 | 3.28ms | 8.71ms | 5733.1% | 447MiB |
| HTTP/2 | Static | 1,024 | 1,640,965 | 18.08ms | 36.27ms | 6309.1% | 1.0GiB |
| HTTP/2 | Baseline (h2c) | 256 | 17,294,214 | 750us | 1.33ms | 2133.6% | 365MiB |
| HTTP/2 | Baseline (h2c) | 1,024 | 17,291,462 | 2.83ms | 4.35ms | 2262.5% | 531MiB |
| HTTP/2 | Baseline (h2c) | 4,096 | 16,079,140 | 12.30ms | 22.79ms | 2100.0% | 570MiB |
| HTTP/2 | JSON (h2c) | 1,024 | 6,646,522 | 2.89ms | 8.02ms | 5298.5% | 396MiB |
| HTTP/2 | JSON (h2c) | 4,096 | 5,519,864 | 18.46ms | 53.18ms | 6401.2% | 734MiB |
| HTTP/3 | Baseline | 64 | 8,776,341 | 453us | 740us | 1411.9% | 432MiB |
| HTTP/3 | Static | 64 | 1,018,357 | 4.13ms | 15.91ms | 2702.9% | 280MiB |
| gRPC | Unary | 256 | 7,123,220 | 2.12ms | 2.71ms | 1533.9% | 391MiB |
| gRPC | Unary | 1,024 | 7,237,490 | 7.35ms | 17.34ms | 1577.0% | 486MiB |
| gRPC | Unary TLS | 256 | 7,076,369 | 2.16ms | 5.13ms | 1528.1% | 395MiB |
| gRPC | Unary TLS | 1,024 | 7,023,774 | 7.51ms | 14.46ms | 1429.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