ktor-kronos
Experimental · Kotlin · engine: io_uring · standard configuration · completeness 4/4
ktor-kronos, JetBrains Ktor on the JVM with the kron engine (ktor-server-kron, in the MDA2AV/ktor fork) instead of Netty or CIO. kron is the Kotlin port of the ioxide io_uring runtime: one reactor per core, each pinned to its CPU and owning its ring and its share of the SO_REUSEPORT listeners; multishot accept and recv into provided buffer rings, the kernel and BoringSSL reached through the FFM API on JDK 25. Requests are parsed by Glyph11, the hardened HTTP/1.1 parser, and run through Ktor's own pipeline - routing, plugins, call.receive and call.respond - on the reactor that accepted the connection, with no thread pool in between. Responses to pipelined requests leave in one send. delay() is an IORING_OP_TIMEOUT on the reactor's ring. The routes are the ktor entry's, answered the same way: JSON through Ktor's ContentNegotiation with kotlinx.serialization, gzipped by Ktor's Compression plugin, and Ktor's own WebSockets. TLS on :8081 is the engine's own connector on kron's BoringSSL. The engine passes Ktor's own engine suites (HttpServerCommonTestSuite, WebSocketEngineSuite).
Achievements
🥇 1 Gold · 🥈 1 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 | Test profile | Efficiency · Latency-10K | 1 of 27 |
| 🥈 Silver | Within its language | Kotlin · HTTP/1.1 | 2 of 5 |
| 🥉 Bronze | Within its language | Kotlin · WebSocket | 3 of 4 |
Composite rank
Each profile of a family is worth 100 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 | 11 of 29 | 5577 |
| WebSocket | 18 of 21 | 1028 |
Every result
Alpha Round, 16 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,300,024 | 1.24ms | 2.00ms | 6304.0% | 3.9GiB |
| Connection | Pipelined | 4,096 | 16,017,228 | 4.09ms | 7.81ms | 6312.5% | 7.1GiB |
| Connection | Short-lived | 4,096 | 2,603,078 | 1.47ms | 3.30ms | 6054.8% | 4.3GiB |
| Concurrency | Async Delay | 32,000 | 1,989,842 | 15.97ms | 50.90ms | 6258.5% | 17.3GiB |
| Efficiency | Latency-10K | 1,024 | 9,983 | 86.6us | 124.0us | 34.9% | 1.5GiB |
| Efficiency | Latency-1M | 1,024 | 997,710 | 115.1us | 205.0us | 2744.2% | 2.4GiB |
| Workload | JSON Comp | 4,096 | 252,998 | 16.12ms | 39.10ms | 6335.3% | 4.4GiB |
| Workload | JSON Comp | 16,384 | 244,562 | 66.05ms | 99.90ms | 6262.0% | 6.1GiB |
| Workload | JSON TLS | 4,096 | 769,835 | 5.29ms | 37.09ms | 6425.0% | 4.7GiB |
| Workload | 8Gbit | 512 | 49,367 | 107.3us | 137.0us | 237.5% | 4.2GiB |
| WebSocket | Echo | 512 | 2,887,204 | 176us | 355us | 6531.9% | 2.1GiB |
| WebSocket | Echo | 4,096 | 2,936,216 | 1.39ms | 2.02ms | 6364.3% | 3.6GiB |
| WebSocket | Echo | 16,384 | 2,325,168 | 6.98ms | 10.40ms | 6204.9% | 5.4GiB |
| WebSocket | Echo Pipelined | 512 | 26,817,407 | 304us | 638us | 6639.0% | 4.0GiB |
| WebSocket | Echo Pipelined | 4,096 | 26,864,044 | 2.44ms | 3.33ms | 6457.4% | 11.4GiB |
| WebSocket | Echo Pipelined | 16,384 | 20,967,689 | 12.40ms | 22.60ms | 6152.8% | 13.0GiB |
Compared with
The Kotlin entries around ktor-kronos on the HTTP/1.1 composite, and the one leading them. The last column shows every profile side by side.
| Entry | Composite | vs ktor-kronos | |
|---|---|---|---|
| ktron | 7546 | +35% | head to head |
| kron | 6634 | +19% | head to head |
| kron-native | 6434 | +15% | head to head |
| genhttp-kt-netty | 5526 | -1% | head to head |
| genhttp-kt | 3779 | -32% | head to head |
Compare ktor-kronos with any Kotlin entry · Compare ktor-kronos with any entry, in any language · Every Kotlin entry, ranked
Results updated · How the benchmark is run · The machine · Add or fix an entry