HttpArena
Frameworks

ktor

Flagship · Kotlin · engine: netty · standard configuration · completeness 4/4

JetBrains Ktor 3.x on Netty with kotlinx.serialization, JDK 25.

Achievements

🥇 1 Gold. 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
🥇 GoldWithin its languageKotlin · HTTP/1.11 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.129 of 843330
HTTP/222 of 31558
HTTP/310 of 15405
WebSocket24 of 29416

Every result

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

CategoryProfileConnsReq/secAvgp99CPUMemory
ConnectionBaseline4,0961,057,0943.89ms9.01ms5937.1%5.2GiB
ConnectionPipelined4,0962,224,93729.45ms41.70ms5167.0%8.4GiB
ConnectionShort-lived4,096817,5994.99ms50.10ms5533.5%9.9GiB
ConcurrencyAsync Delay32,000919,88334.43ms54.60ms5415.4%8.9GiB
EfficiencyLatency-10K1,0249,981129.9us169.0us66.6%481MiB
EfficiencyLatency-1M1,024997,467596.4us4714.0us5546.8%5.2GiB
EfficiencyLatency-500K/81,024225,5195496774.9us10833920.0us669.3%1.3GiB
WorkloadJSON Comp4,096215,76118.93ms75.40ms6347.0%9.5GiB
WorkloadJSON Comp16,384211,39376.20ms242.40ms6327.2%11.1GiB
WorkloadJSON TLS4,096481,3268.70ms87.19ms4551.2%5.5GiB
Workload8Gbit51249,341147.7us219.0us466.1%1.5GiB
WorkloadStatic TLS1,024265,4024.24ms106.09ms6115.1%3.9GiB
DatabaseAsync DB1,02446,78921.64ms25.50ms2288.0%2.7GiB
DatabaseFortunes1,02461,80515.25ms26.50ms5159.1%10.7GiB
HTTP/2Baseline256823,57530.76ms102.05ms6233.9%14.3GiB
HTTP/2Baseline1,024733,980137.06ms583.02ms6243.1%24.6GiB
HTTP/2Static256224,83635.85ms115.99ms5978.2%6.0GiB
HTTP/2Static1,024206,406152.84ms536.96ms5800.3%14.6GiB
HTTP/2Baseline (h2c)256855,37529.80ms104.39ms6395.6%14.3GiB
HTTP/2Baseline (h2c)1,024750,822133.71ms580.04ms6347.1%25.2GiB
HTTP/2Baseline (h2c)4,096455,001775.89ms2.84s5763.1%30.8GiB
HTTP/2JSON (h2c)1,024447,90070.42ms420.00ms5329.4%12.5GiB
HTTP/2JSON (h2c)4,096400,824303.79ms699.55ms5066.4%26.4GiB
HTTP/3Baseline64337,85012.39ms37.22ms4263.3%4.9GiB
HTTP/3Static6497,81837.12ms192.12ms6365.2%4.8GiB
WebSocketEcho5121,061,779481us1.09ms3393.8%1.6GiB
WebSocketEcho4,096976,5564.17ms10.50ms3379.7%2.1GiB
WebSocketEcho16,384669,77023.86ms53.50ms3241.6%4.1GiB
WebSocketEcho Pipelined51211,549,842708us1.81ms3365.4%8.9GiB
WebSocketEcho Pipelined4,09611,057,1375.91ms14.60ms3357.5%3.3GiB
WebSocketEcho Pipelined16,3849,091,70828.15ms63.10ms3261.9%11.3GiB

Compared with

The Kotlin entries around ktor on the HTTP/1.1 composite, and the one leading them. The last column shows every profile side by side.

EntryCompositevs ktor
ktron7546+127%head to head
genhttp-kt3779+13%head to head
ktor-tuned3771+13%head to head
ktor-kronos-native2750-17%head to head
neton2307-31%head to head

Compare ktor with any Kotlin entry · Compare ktor with any entry, in any language · Every Kotlin entry, ranked

Results updated · How the benchmark is run · The machine · Add or fix an entry