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.
| Medal | Award | Field | Rank |
|---|---|---|---|
| 🥇 Gold | Within its language | Kotlin · HTTP/1.1 | 1 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 | 29 of 84 | 3330 |
| HTTP/2 | 22 of 31 | 558 |
| HTTP/3 | 10 of 15 | 405 |
| WebSocket | 24 of 29 | 416 |
Every result
Alpha Round, 31 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 | 1,057,094 | 3.89ms | 9.01ms | 5937.1% | 5.2GiB |
| Connection | Pipelined | 4,096 | 2,224,937 | 29.45ms | 41.70ms | 5167.0% | 8.4GiB |
| Connection | Short-lived | 4,096 | 817,599 | 4.99ms | 50.10ms | 5533.5% | 9.9GiB |
| Concurrency | Async Delay | 32,000 | 919,883 | 34.43ms | 54.60ms | 5415.4% | 8.9GiB |
| Efficiency | Latency-10K | 1,024 | 9,981 | 129.9us | 169.0us | 66.6% | 481MiB |
| Efficiency | Latency-1M | 1,024 | 997,467 | 596.4us | 4714.0us | 5546.8% | 5.2GiB |
| Efficiency | Latency-500K/8 | 1,024 | 225,519 | 5496774.9us | 10833920.0us | 669.3% | 1.3GiB |
| Workload | JSON Comp | 4,096 | 215,761 | 18.93ms | 75.40ms | 6347.0% | 9.5GiB |
| Workload | JSON Comp | 16,384 | 211,393 | 76.20ms | 242.40ms | 6327.2% | 11.1GiB |
| Workload | JSON TLS | 4,096 | 481,326 | 8.70ms | 87.19ms | 4551.2% | 5.5GiB |
| Workload | 8Gbit | 512 | 49,341 | 147.7us | 219.0us | 466.1% | 1.5GiB |
| Workload | Static TLS | 1,024 | 265,402 | 4.24ms | 106.09ms | 6115.1% | 3.9GiB |
| Database | Async DB | 1,024 | 46,789 | 21.64ms | 25.50ms | 2288.0% | 2.7GiB |
| Database | Fortunes | 1,024 | 61,805 | 15.25ms | 26.50ms | 5159.1% | 10.7GiB |
| HTTP/2 | Baseline | 256 | 823,575 | 30.76ms | 102.05ms | 6233.9% | 14.3GiB |
| HTTP/2 | Baseline | 1,024 | 733,980 | 137.06ms | 583.02ms | 6243.1% | 24.6GiB |
| HTTP/2 | Static | 256 | 224,836 | 35.85ms | 115.99ms | 5978.2% | 6.0GiB |
| HTTP/2 | Static | 1,024 | 206,406 | 152.84ms | 536.96ms | 5800.3% | 14.6GiB |
| HTTP/2 | Baseline (h2c) | 256 | 855,375 | 29.80ms | 104.39ms | 6395.6% | 14.3GiB |
| HTTP/2 | Baseline (h2c) | 1,024 | 750,822 | 133.71ms | 580.04ms | 6347.1% | 25.2GiB |
| HTTP/2 | Baseline (h2c) | 4,096 | 455,001 | 775.89ms | 2.84s | 5763.1% | 30.8GiB |
| HTTP/2 | JSON (h2c) | 1,024 | 447,900 | 70.42ms | 420.00ms | 5329.4% | 12.5GiB |
| HTTP/2 | JSON (h2c) | 4,096 | 400,824 | 303.79ms | 699.55ms | 5066.4% | 26.4GiB |
| HTTP/3 | Baseline | 64 | 337,850 | 12.39ms | 37.22ms | 4263.3% | 4.9GiB |
| HTTP/3 | Static | 64 | 97,818 | 37.12ms | 192.12ms | 6365.2% | 4.8GiB |
| WebSocket | Echo | 512 | 1,061,779 | 481us | 1.09ms | 3393.8% | 1.6GiB |
| WebSocket | Echo | 4,096 | 976,556 | 4.17ms | 10.50ms | 3379.7% | 2.1GiB |
| WebSocket | Echo | 16,384 | 669,770 | 23.86ms | 53.50ms | 3241.6% | 4.1GiB |
| WebSocket | Echo Pipelined | 512 | 11,549,842 | 708us | 1.81ms | 3365.4% | 8.9GiB |
| WebSocket | Echo Pipelined | 4,096 | 11,057,137 | 5.91ms | 14.60ms | 3357.5% | 3.3GiB |
| WebSocket | Echo Pipelined | 16,384 | 9,091,708 | 28.15ms | 63.10ms | 3261.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.
| Entry | Composite | vs ktor | |
|---|---|---|---|
| ktron | 7546 | +127% | head to head |
| genhttp-kt | 3779 | +13% | head to head |
| ktor-tuned | 3771 | +13% | head to head |
| ktor-kronos-native | 2750 | -17% | head to head |
| neton | 2307 | -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