vanilla-io_uring
Engine · V · engine: io_uring
vanilla is a minimalist, high-performance HTTP server written in V: multi-threaded, non-blocking io_uring I/O, lock-free, copy-free, SO_REUSEPORT. This entry is the vanilla-epoll entry's async handler verbatim, running on the io_uring async runtime (enghitalo/vanilla#99): DB queries park on the PG socket via a oneshot IORING_OP_POLL_ADD and resume on the ring — never blocking the worker. JSON is built in a single allocation with precomputed prefixes (no per-request reflection); json-comp gzips on Accept-Encoding; json-tls serves /json over HTTP/1.1 + TLS 1.3 on :8081 via the lib's epoll backend (the io_uring backend has no TLS) with kTLS record offload where present; static-tls serves the 20 /static files on :8081 through vanilla's static_assets (br/gzip negotiation; snapshots re-checked against the disk, so a replaced file is served at once), sending bodies of 16 KiB or more with sendfile(2) over kTLS; fortunes renders the DB rows + a runtime row with HTML escaping; async-db/crud/fortunes use the native async pg_async driver with per-worker pipelined pools. Built with the default GC on pinned V master (built from source). async parks each /delay/{ms} on a one-shot timerfd from a per-worker free-list and answers only once it reports an expiration; 8gbit echoes the POST body on the :8081 TLS listener (Content-Length or chunked, per-worker dechunk buffer); production-stack's /api cache-aside (X-Cache MISS/HIT, 1 s items / 30 s users TTL, invalidated on write) runs in-process — no Redis required. One worker per CPU of the container's cpuset.
Achievements
🥈 1 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 |
|---|---|---|---|
| 🥈 Silver | Test profile | Efficiency · Latency-10K | 2 of 44 |
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 | 13 of 46 | 5160 |
Every result
Alpha Round, 14 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 | 4,306,423 | 951us | 1.36ms | 6418.3% | 656MiB |
| Connection | Pipelined | 4,096 | 42,910,726 | 1.53ms | 1.98ms | 6644.1% | 648MiB |
| Connection | Short-lived | 4,096 | 2,624,432 | 1.43ms | 2.16ms | 5500.0% | 790MiB |
| Concurrency | Async Delay | 32,000 | 30,682 | 492.12ms | 5.00s | 151.4% | 2.3GiB |
| Efficiency | Latency-10K | 1,024 | 9,983 | 67.3us | 99.0us | 22.5% | 584MiB |
| Efficiency | Latency-1M | 1,024 | 998,036 | 94.7us | 170.0us | 2149.4% | 587MiB |
| Efficiency | Latency-500K/8 | 1,024 | 498,958 | 352.5us | 1586.0us | 820.3% | 116MiB |
| Workload | JSON Comp | 4,096 | 2,856,398 | 901us | 2.82ms | 5946.1% | 745MiB |
| Workload | JSON Comp | 16,384 | 2,481,890 | 5.72ms | 20.10ms | 5041.0% | 1007MiB |
| Workload | JSON TLS | 4,096 | 1,545,250 | 13.38ms | 605.22ms | 5611.0% | 919MiB |
| Workload | 8Gbit | 512 | 49,155 | 287.7us | 229.0us | 537.7% | 613MiB |
| Workload | Static TLS | 1,024 | 1,075,549 | 1.49ms | 127.55ms | 6383.8% | 655MiB |
| Database | Async DB | 1,024 | 320,414 | 1.10ms | 8.44ms | 3000.8% | 710MiB |
| Database | Fortunes | 1,024 | 186,955 | 4.08ms | 9.59ms | 6071.2% | 777MiB |
Compared with
The V HTTP engines around vanilla-io_uring 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 vanilla-io_uring | |
|---|---|---|---|
| vanilla-epoll | 5445 | +6% | head to head |
Compare vanilla-io_uring with any V entry · Compare vanilla-io_uring with any entry, in any language · Every V entry, ranked
Results updated · How the benchmark is run · The machine · Add or fix an entry