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. Request framing is smuggling-hardened (Content-Length and chunked) and fuzzed in CI. Default configuration.
Achievements
🥇 11 Gold · 🥈 3 Silver. 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 30 |
| 🥇 Gold | Family composite | Composite · HTTP/2 | 1 of 16 |
| 🥇 Gold | Family composite | Composite · WebSocket | 1 of 23 |
| 🥇 Gold | Test profile | Connection · Short-lived | 1 of 30 |
| 🥇 Gold | Test profile | HTTP/2 · Baseline | 1 of 15 |
| 🥇 Gold | Test profile | HTTP/2 · Baseline (h2c) | 1 of 16 |
| 🥇 Gold | Test profile | HTTP/2 · JSON (h2c) | 1 of 16 |
| 🥇 Gold | Test profile | HTTP/2 · Static | 1 of 15 |
| 🥇 Gold | Test profile | WebSocket · Echo Pipelined | 1 of 23 |
| 🥇 Gold | Test profile | WebSocket · Echo Short-lived | 1 of 21 |
| 🥇 Gold | Test profile | Workload · JSON Comp | 1 of 27 |
| 🥈 Silver | Test profile | Concurrency · Async Delay | 2 of 26 |
| 🥈 Silver | Test profile | WebSocket · Echo | 2 of 23 |
| 🥈 Silver | Test profile | Workload · JSON TLS | 2 of 27 |
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.
Every result
Alpha Round, 28 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,955,457 | 1.04ms | 2.21ms | 6161.1% | 83MiB |
| Connection | Pipelined | 4,096 | 31,405,681 | 2.09ms | 3.17ms | 6744.4% | 80MiB |
| Connection | Short-lived | 4,096 | 2,741,090 | 1.36ms | 2.21ms | 5558.2% | 91MiB |
| Concurrency | Async Delay | 32,000 | 2,824,490 | 11.25ms | 13.20ms | 5256.0% | 201MiB |
| Efficiency | Latency-10K | 1,024 | 9,981 | 72.9us | 101.0us | 22.9% | 48MiB |
| Efficiency | Latency-1M | 1,024 | 997,711 | 97.1us | 167.0us | 2241.0% | 50MiB |
| Efficiency | Latency-500K/8 | 1,024 | 498,737 | 1039.6us | 9612.0us | 778.7% | 22MiB |
| Workload | JSON Comp | 4,096 | 936,980 | 4.34ms | 13.00ms | 6360.3% | 84MiB |
| Workload | JSON Comp | 16,384 | 924,054 | 17.65ms | 45.10ms | 6384.2% | 200MiB |
| Workload | JSON TLS | 4,096 | 1,820,909 | 1.35ms | 40.13ms | 5229.8% | 179MiB |
| Workload | 8Gbit | 512 | 49,068 | 78.5us | 104.0us | 177.8% | 62MiB |
| HTTP/2 | Baseline | 256 | 14,441,073 | 969us | 40.33ms | 3559.8% | 56MiB |
| HTTP/2 | Baseline | 1,024 | 14,216,653 | 3.60ms | 90.80ms | 3614.8% | 100MiB |
| HTTP/2 | Static | 256 | 1,489,295 | 5.45ms | 60.64ms | 6439.5% | 144MiB |
| HTTP/2 | Static | 1,024 | 1,464,732 | 21.29ms | 189.58ms | 6135.4% | 366MiB |
| HTTP/2 | Baseline (h2c) | 256 | 14,771,789 | 999us | 35.41ms | 3670.9% | 44MiB |
| HTTP/2 | Baseline (h2c) | 1,024 | 14,792,924 | 3.65ms | 51.79ms | 3625.5% | 62MiB |
| HTTP/2 | Baseline (h2c) | 4,096 | 14,129,250 | 14.77ms | 80.43ms | 3522.2% | 134MiB |
| HTTP/2 | JSON (h2c) | 1,024 | 4,943,961 | 6.64ms | 89.59ms | 6491.6% | 168MiB |
| HTTP/2 | JSON (h2c) | 4,096 | 4,762,394 | 29.14ms | 260.26ms | 5926.3% | 372MiB |
| WebSocket | Echo | 512 | 4,200,286 | 121us | 295us | 6176.3% | 43MiB |
| WebSocket | Echo | 4,096 | 4,304,573 | 951us | 2.05ms | 6202.2% | 80MiB |
| WebSocket | Echo | 16,384 | 4,102,606 | 3.97ms | 7.88ms | 6095.6% | 200MiB |
| WebSocket | Echo Pipelined | 512 | 63,153,846 | 129us | 378us | 6413.7% | 44MiB |
| WebSocket | Echo Pipelined | 4,096 | 64,623,692 | 1.01ms | 2.18ms | 6247.6% | 77MiB |
| WebSocket | Echo Pipelined | 16,384 | 61,148,643 | 4.27ms | 8.65ms | 6036.3% | 198MiB |
| WebSocket | Echo Short-lived | 512 | 2,219,481 | 124us | 427us | 5201.2% | 50MiB |
| WebSocket | Echo Short-lived | 4,096 | 2,600,502 | 1.03ms | 1.89ms | 5516.2% | 89MiB |
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