HttpArena
Frameworks

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.

MedalAwardFieldRank
🥇 GoldTest profileEfficiency · Latency-10K1 of 27
🥈 SilverWithin its languageKotlin · HTTP/1.12 of 5
🥉 BronzeWithin its languageKotlin · WebSocket3 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.

FamilyRankComposite
HTTP/1.111 of 295577
WebSocket18 of 211028

Every result

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

CategoryProfileConnsReq/secAvgp99CPUMemory
ConnectionBaseline4,0963,300,0241.24ms2.00ms6304.0%3.9GiB
ConnectionPipelined4,09616,017,2284.09ms7.81ms6312.5%7.1GiB
ConnectionShort-lived4,0962,603,0781.47ms3.30ms6054.8%4.3GiB
ConcurrencyAsync Delay32,0001,989,84215.97ms50.90ms6258.5%17.3GiB
EfficiencyLatency-10K1,0249,98386.6us124.0us34.9%1.5GiB
EfficiencyLatency-1M1,024997,710115.1us205.0us2744.2%2.4GiB
WorkloadJSON Comp4,096252,99816.12ms39.10ms6335.3%4.4GiB
WorkloadJSON Comp16,384244,56266.05ms99.90ms6262.0%6.1GiB
WorkloadJSON TLS4,096769,8355.29ms37.09ms6425.0%4.7GiB
Workload8Gbit51249,367107.3us137.0us237.5%4.2GiB
WebSocketEcho5122,887,204176us355us6531.9%2.1GiB
WebSocketEcho4,0962,936,2161.39ms2.02ms6364.3%3.6GiB
WebSocketEcho16,3842,325,1686.98ms10.40ms6204.9%5.4GiB
WebSocketEcho Pipelined51226,817,407304us638us6639.0%4.0GiB
WebSocketEcho Pipelined4,09626,864,0442.44ms3.33ms6457.4%11.4GiB
WebSocketEcho Pipelined16,38420,967,68912.40ms22.60ms6152.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.

EntryCompositevs ktor-kronos
ktron7546+35%head to head
kron6634+19%head to head
kron-native6434+15%head to head
genhttp-kt-netty5526-1%head to head
genhttp-kt3779-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