HttpArena
Frameworks

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.

MedalAwardFieldRank
🥈 SilverTest profileEfficiency · Latency-10K2 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.

FamilyRankComposite
HTTP/1.113 of 465160

Every result

Alpha Round, 14 runs. Requests per second is the best of three; latency, CPU and memory come from that run.

CategoryProfileConnsReq/secAvgp99CPUMemory
ConnectionBaseline4,0964,306,423951us1.36ms6418.3%656MiB
ConnectionPipelined4,09642,910,7261.53ms1.98ms6644.1%648MiB
ConnectionShort-lived4,0962,624,4321.43ms2.16ms5500.0%790MiB
ConcurrencyAsync Delay32,00030,682492.12ms5.00s151.4%2.3GiB
EfficiencyLatency-10K1,0249,98367.3us99.0us22.5%584MiB
EfficiencyLatency-1M1,024998,03694.7us170.0us2149.4%587MiB
EfficiencyLatency-500K/81,024498,958352.5us1586.0us820.3%116MiB
WorkloadJSON Comp4,0962,856,398901us2.82ms5946.1%745MiB
WorkloadJSON Comp16,3842,481,8905.72ms20.10ms5041.0%1007MiB
WorkloadJSON TLS4,0961,545,25013.38ms605.22ms5611.0%919MiB
Workload8Gbit51249,155287.7us229.0us537.7%613MiB
WorkloadStatic TLS1,0241,075,5491.49ms127.55ms6383.8%655MiB
DatabaseAsync DB1,024320,4141.10ms8.44ms3000.8%710MiB
DatabaseFortunes1,024186,9554.08ms9.59ms6071.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.

EntryCompositevs vanilla-io_uring
vanilla-epoll5445+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