anole
Experimental · Zig · engine: zio · standard configuration · completeness 4/4
Anole: HTTP/1.1, HTTP/2, HTTP/3, WebSocket, gRPC and WebTransport on the zio async runtime (io_uring where available, epoll fallback), BoringSSL. Documented APIs and default settings.
Achievements
🥇 1 Gold · 🥈 4 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.
| Medal | Award | Field | Rank |
|---|---|---|---|
| 🥇 Gold | Within its language | Zig · HTTP/2 | 1 of 3 |
| 🥈 Silver | Family composite | Composite · gRPC | 2 of 7 |
| 🥈 Silver | Within its language | Zig · HTTP/1.1 | 2 of 4 |
| 🥈 Silver | Within its language | Zig · WebSocket | 2 of 4 |
| 🥈 Silver | Test profile | gRPC · Unary | 2 of 7 |
| 🥉 Bronze | Test profile | gRPC · Unary TLS | 3 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.
| Family | Rank | Composite |
|---|---|---|
| HTTP/1.1 | 8 of 30 | 6089 |
| HTTP/2 | 6 of 16 | 2194 |
| HTTP/3 | 5 of 10 | 1118 |
| Gateway | 2 of 2 | 2145 |
| gRPC | 2 of 7 | 1699 |
| WebSocket | 10 of 23 | 2524 |
Every result
Alpha Round, 41 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,070,311 | 1.33ms | 1.71ms | 6364.1% | 146MiB |
| Connection | Pipelined | 4,096 | 19,963,344 | 3.28ms | 6.00ms | 6686.5% | 138MiB |
| Connection | Short-lived | 4,096 | 2,468,293 | 1.62ms | 3.89ms | 6459.8% | 189MiB |
| Concurrency | Async Delay | 32,000 | 1,773,951 | 17.90ms | 23.20ms | 5508.5% | 808MiB |
| Efficiency | Latency-10K | 1,024 | 9,980 | 83.1us | 105.0us | 26.0% | 54MiB |
| Efficiency | Latency-1M | 1,024 | 997,573 | 103.0us | 185.0us | 2793.2% | 65MiB |
| Efficiency | Latency-500K/8 | 1,024 | 423,863 | 1362483.1us | 5376000.0us | 801.2% | 38MiB |
| Workload | JSON Comp | 4,096 | 650,318 | 6.27ms | 14.40ms | 6527.5% | 650MiB |
| Workload | JSON Comp | 16,384 | 620,261 | 26.18ms | 47.70ms | 6102.1% | 1.7GiB |
| Workload | JSON TLS | 4,096 | 1,146,694 | 3.55ms | 57.51ms | 6588.3% | 749MiB |
| Workload | 8Gbit | 512 | 49,107 | 95.9us | 117.0us | 208.1% | 66MiB |
| Workload | Static TLS | 1,024 | 420,601 | 2.44ms | 30.93ms | 6561.7% | 323MiB |
| HTTP/2 | Baseline | 256 | 11,148,478 | 2.07ms | 12.15ms | 6120.7% | 1.6GiB |
| HTTP/2 | Baseline | 1,024 | 10,580,892 | 9.09ms | 123.10ms | 6434.4% | 1.5GiB |
| HTTP/2 | Static | 256 | 351,976 | 25.20ms | 251.22ms | 6503.6% | 1.3GiB |
| HTTP/2 | Static | 1,024 | 284,228 | 111.39ms | 765.68ms | 6266.5% | 3.0GiB |
| HTTP/2 | Baseline (h2c) | 256 | 12,272,405 | 1.82ms | 17.53ms | 5720.9% | 518MiB |
| HTTP/2 | Baseline (h2c) | 1,024 | 12,132,987 | 7.80ms | 119.43ms | 6431.9% | 1.1GiB |
| HTTP/2 | Baseline (h2c) | 4,096 | 11,704,933 | 33.65ms | 218.82ms | 6120.2% | 2.7GiB |
| HTTP/2 | JSON (h2c) | 1,024 | 1,979,663 | 16.46ms | 136.98ms | 6286.4% | 1.8GiB |
| HTTP/2 | JSON (h2c) | 4,096 | 1,841,506 | 73.05ms | 417.97ms | 5971.2% | 3.3GiB |
| HTTP/3 | Baseline | 64 | 5,144,968 | 820us | 1.72ms | 2994.1% | 613MiB |
| HTTP/3 | Static | 64 | 354,685 | 14.61ms | 39.04ms | 4350.5% | 894MiB |
| gRPC | Unary | 256 | 6,728,122 | 3.07ms | 42.48ms | 4956.6% | 1.0GiB |
| gRPC | Unary | 1,024 | 6,735,656 | 9.63ms | 313.25ms | 5322.6% | 1.2GiB |
| gRPC | Unary TLS | 256 | 5,533,527 | 4.61ms | 210.13ms | 5803.7% | 832MiB |
| gRPC | Unary TLS | 1,024 | 4,716,654 | 21.39ms | 948.37ms | 6406.7% | 1.7GiB |
| Gateway | Gateway (H2) | 512 | 248,791 | 58.88ms | 3.57s | 4772.6% | 2.0GiB |
| Gateway | Gateway (H2) | 1,024 | 249,232 | 107.96ms | 4.55s | 4843.7% | 2.9GiB |
| Gateway | Gateway (H3) | 64 | 173,895 | 13.16ms | 46.38ms | 4015.3% | 1.3GiB |
| Gateway | Gateway (H3) | 256 | 174,208 | 45.93ms | 204.97ms | 4277.1% | 1.7GiB |
| Gateway | Production Stack | 256 | 109,218 | 28.96ms | 3.38s | 2855.6% | 1.3GiB |
| Gateway | Production Stack | 1,024 | 107,848 | 75.43ms | 4.58s | 2704.4% | 2.0GiB |
| WebSocket | Echo | 512 | 3,985,342 | 127us | 282us | 6313.3% | 55MiB |
| WebSocket | Echo | 4,096 | 4,019,570 | 1.02ms | 1.88ms | 6172.5% | 151MiB |
| WebSocket | Echo | 16,384 | 3,343,629 | 4.30ms | 5.97ms | 6557.4% | 474MiB |
| WebSocket | Echo Pipelined | 512 | 55,093,824 | 148us | 306us | 6383.5% | 56MiB |
| WebSocket | Echo Pipelined | 4,096 | 54,991,938 | 1.19ms | 2.02ms | 6215.5% | 166MiB |
| WebSocket | Echo Pipelined | 16,384 | 47,271,875 | 4.27ms | 6.88ms | 6598.4% | 481MiB |
| WebSocket | Echo Short-lived | 512 | 1,741,098 | 210us | 701us | 5606.2% | 105MiB |
| WebSocket | Echo Short-lived | 4,096 | 2,158,878 | 1.52ms | 3.66ms | 6146.7% | 221MiB |
Compared with
The experimental Zig frameworks around anole 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.
| Entry | Composite | vs anole | |
|---|---|---|---|
| nilo | 6333 | +4% | head to head |
| swerver | 6150 | +1% | head to head |
| netcode-http | 3829 | -37% | head to head |
| uWebZockets | 3747 | -38% | head to head |
Compare anole with any Zig entry · Compare anole with any entry, in any language · Every Zig entry, ranked
Results updated · How the benchmark is run · The machine · Add or fix an entry