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. A quiet connection holds no buffers (they are lent per event). Request framing is smuggling-hardened (Content-Length and chunked) and fuzzed in CI. async-db and fortunes park the request (Ctx.suspend) while the entry's own Postgres wire client (no libpq) runs the query; fortunes renders with V's compile-time templates. Default configuration.
Achievements
🥇 6 Gold · 🥈 11 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 | Family composite | Composite · HTTP/1.1 | 1 of 32 |
| 🥇 Gold | Family composite | Composite · WebSocket | 1 of 23 |
| 🥇 Gold | Test profile | Concurrency · Async Delay | 1 of 28 |
| 🥇 Gold | Test profile | Connection · Short-lived | 1 of 32 |
| 🥇 Gold | Test profile | WebSocket · Echo Short-lived | 1 of 21 |
| 🥇 Gold | Test profile | Workload · JSON TLS | 1 of 29 |
| 🥈 Silver | Family composite | Composite · Database | 2 of 5 |
| 🥈 Silver | Family composite | Composite · HTTP/2 | 2 of 18 |
| 🥈 Silver | Test profile | Concurrency · CON-1M | 2 of 6 |
| 🥈 Silver | Test profile | Database · Async DB | 2 of 5 |
| 🥈 Silver | Test profile | Efficiency · Latency-10K | 2 of 30 |
| 🥈 Silver | Test profile | HTTP/2 · Baseline | 2 of 16 |
| 🥈 Silver | Test profile | HTTP/2 · Baseline (h2c) | 2 of 18 |
| 🥈 Silver | Test profile | HTTP/2 · Static | 2 of 16 |
| 🥈 Silver | Test profile | WebSocket · Echo | 2 of 23 |
| 🥈 Silver | Test profile | WebSocket · Echo Pipelined | 2 of 23 |
| 🥈 Silver | Test profile | Workload · JSON Comp | 2 of 29 |
| 🥉 Bronze | Test profile | HTTP/2 · JSON (h2c) | 3 of 18 |
Composite rank
Each profile of a family is worth its weight × 1,000 to the entry that leads it - 1, or 0.5 apiece for two profiles that measure one thing - 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 | 145 of 146 (99.3%) | 1 |
| WebSocket | autobahn-testsuite 25.10.1 | 244 of 244 (100%) | 0 |
HTTP/2: what failed
| Test | Expected | Got |
|---|---|---|
http2/3.5/2 Sends invalid connection preface | GOAWAY Frame (Error Code: PROTOCOL_ERROR) or Connection closed | Error: unexpected EOF |
Every result
Alpha Round, 32 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,948,884 | 1.04ms | 2.20ms | 6544.8% | 81MiB |
| Connection | Pipelined | 4,096 | 31,438,848 | 2.08ms | 4.54ms | 6332.4% | 79MiB |
| Connection | Short-lived | 4,096 | 2,769,248 | 1.35ms | 2.28ms | 5811.4% | 99MiB |
| Concurrency | Async Delay | 32,000 | 2,835,188 | 11.29ms | 13.20ms | 5268.4% | 201MiB |
| Concurrency | CON-1M | 1,000,000 | 250,000 | 75.1us | 127.0us | 733.1% | 4.7GiB |
| Concurrency | CON-1M-TLS | 1,000,000 | 249,956 | 71.0us | 98.0us | 1982.4% | 8.4GiB |
| Efficiency | Latency-10K | 1,024 | 9,983 | 71.8us | 100.0us | 23.5% | 50MiB |
| Efficiency | Latency-1M | 1,024 | 997,703 | 89.0us | 162.0us | 2270.0% | 51MiB |
| Workload | JSON Comp | 4,096 | 967,901 | 4.23ms | 12.40ms | 6671.5% | 85MiB |
| Workload | JSON Comp | 16,384 | 969,425 | 16.90ms | 43.50ms | 6691.2% | 202MiB |
| Workload | JSON TLS | 4,096 | 1,864,478 | 1.32ms | 56.00ms | 5358.7% | 159MiB |
| Workload | 8Gbit | 512 | 49,327 | 76.2us | 101.0us | 200.6% | 65MiB |
| Workload | Static TLS | 1,024 | 365,171 | 2.99ms | 20.77ms | 2659.1% | 266MiB |
| Database | Async DB | 1,024 | 240,452 | 4.25ms | 11.50ms | 3157.1% | 655MiB |
| Database | Fortunes | 1,024 | 8,104 | 125.44ms | 241.20ms | 1475.2% | 219MiB |
| HTTP/2 | Baseline | 256 | 15,213,180 | 842us | 3.21ms | 1232.2% | 64MiB |
| HTTP/2 | Baseline | 1,024 | 15,235,782 | 3.24ms | 4.96ms | 1307.2% | 100MiB |
| HTTP/2 | Static | 256 | 1,456,025 | 5.73ms | 15.07ms | 6390.8% | 143MiB |
| HTTP/2 | Static | 1,024 | 1,435,376 | 21.58ms | 46.00ms | 6280.7% | 359MiB |
| HTTP/2 | Baseline (h2c) | 256 | 15,707,952 | 798us | 1.48ms | 1256.7% | 46MiB |
| HTTP/2 | Baseline (h2c) | 1,024 | 15,575,524 | 3.50ms | 20.53ms | 1232.7% | 65MiB |
| HTTP/2 | Baseline (h2c) | 4,096 | 14,086,692 | 13.65ms | 21.38ms | 1146.3% | 141MiB |
| HTTP/2 | JSON (h2c) | 1,024 | 4,682,874 | 6.94ms | 18.62ms | 6294.9% | 202MiB |
| HTTP/2 | JSON (h2c) | 4,096 | 4,538,983 | 30.31ms | 98.85ms | 6088.2% | 378MiB |
| WebSocket | Echo | 512 | 4,213,067 | 120us | 308us | 6167.2% | 48MiB |
| WebSocket | Echo | 4,096 | 4,304,845 | 951us | 2.01ms | 6444.5% | 78MiB |
| WebSocket | Echo | 16,384 | 4,167,294 | 3.93ms | 7.73ms | 6069.1% | 195MiB |
| WebSocket | Echo Pipelined | 512 | 62,677,404 | 130us | 364us | 6354.4% | 45MiB |
| WebSocket | Echo Pipelined | 4,096 | 63,633,030 | 1.03ms | 2.19ms | 6233.3% | 79MiB |
| WebSocket | Echo Pipelined | 16,384 | 61,891,353 | 4.24ms | 8.40ms | 5862.6% | 189MiB |
| WebSocket | Echo Short-lived | 512 | 2,504,795 | 165us | 505us | 5360.3% | 57MiB |
| WebSocket | Echo Short-lived | 4,096 | 2,602,207 | 1.31ms | 2.17ms | 5502.6% | 96MiB |
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