Kotlin web framework comparison: any two, head to head
ktor-tuned is quicker than ktor on 26 of the 31 profiles they both run, and behind on 5. On the HTTP/1.1 composite they score 3771 and 3330.
Pick any two of the 13 Kotlin entries. Requests per second is the best of three runs and the delta is the first column against the second; every row is the same profile at the same connection count, on the same machine. What each profile measures.
| Profile | Conns | ktor-tuned req/sec | ktor req/sec | Delta | ktor-tuned p99 | ktor p99 |
|---|---|---|---|---|---|---|
| Baseline | 4,096 | 1,414,020 | 1,057,094 | +34% | 10.90ms | 9.01ms |
| Pipelined | 4,096 | 2,491,539 | 2,224,937 | +12% | 85.20ms | 41.70ms |
| Short-lived | 4,096 | 601,087 | 817,599 | -26% | 68.60ms | 50.10ms |
| Async Delay | 32,000 | 310,599 | 919,883 | -66% | 283.90ms | 54.60ms |
| Latency-10K | 1,024 | 9,983 | 9,981 | +0% | 135.0us | 169.0us |
| Latency-1M | 1,024 | 997,705 | 997,467 | +0% | 2373.0us | 4714.0us |
| Latency-500K/8 | 1,024 | 283,892 | 225,519 | +26% | 8990720.0us | 10833920.0us |
| JSON Comp | 4,096 | 249,350 | 215,761 | +16% | 45.00ms | 75.40ms |
| JSON Comp | 16,384 | 236,648 | 211,393 | +12% | 163.70ms | 242.40ms |
| JSON TLS | 4,096 | 896,371 | 481,326 | +86% | 75.18ms | 87.19ms |
| 8Gbit | 512 | 49,399 | 49,341 | +0% | 170.0us | 219.0us |
| Static TLS | 1,024 | 267,451 | 265,402 | +1% | 92.98ms | 106.09ms |
| Async DB | 1,024 | 45,624 | 46,789 | -2% | 25.80ms | 25.50ms |
| Fortunes | 1,024 | 49,991 | 61,805 | -19% | 43.10ms | 26.50ms |
| Baseline | 256 | 1,135,198 | 823,575 | +38% | 111.62ms | 102.05ms |
| Baseline | 1,024 | 1,047,470 | 733,980 | +43% | 327.37ms | 583.02ms |
| Static | 256 | 235,897 | 224,836 | +5% | 175.67ms | 115.99ms |
| Static | 1,024 | 231,399 | 206,406 | +12% | 373.52ms | 536.96ms |
| Baseline (h2c) | 256 | 1,170,892 | 855,375 | +37% | 119.04ms | 104.39ms |
| Baseline (h2c) | 1,024 | 1,102,189 | 750,822 | +47% | 346.75ms | 580.04ms |
| Baseline (h2c) | 4,096 | 521,941 | 455,001 | +15% | 2.17s | 2.84s |
| JSON (h2c) | 1,024 | 744,649 | 447,900 | +66% | 193.46ms | 420.00ms |
| JSON (h2c) | 4,096 | 676,200 | 400,824 | +69% | 638.40ms | 699.55ms |
| Baseline | 64 | 377,525 | 337,850 | +12% | 32.07ms | 37.22ms |
| Static | 64 | 76,777 | 97,818 | -22% | 208.94ms | 192.12ms |
| Echo | 512 | 1,092,275 | 1,061,779 | +3% | 1.13ms | 1.09ms |
| Echo | 4,096 | 1,207,338 | 976,556 | +24% | 9.46ms | 10.50ms |
| Echo | 16,384 | 1,053,889 | 669,770 | +57% | 48.20ms | 53.50ms |
| Echo Pipelined | 512 | 12,092,857 | 11,549,842 | +5% | 1.79ms | 1.81ms |
| Echo Pipelined | 4,096 | 12,853,100 | 11,057,137 | +16% | 16.10ms | 14.60ms |
| Echo Pipelined | 16,384 | 12,636,603 | 9,091,708 | +39% | 73.10ms | 63.10ms |
Common comparisons
ktor-tuned vs ktor · ktor-tuned vs http4k · ktor-tuned vs ktron · ktor vs http4k · ktor vs ktron · http4k vs ktron
Questions
Is ktor-tuned faster than ktor?
ktor-tuned is quicker than ktor on 26 of the 31 profiles they both run, and behind on 5. On the HTTP/1.1 composite they score 3771 and 3330. Both run on the same machine, in the same round, against the same profiles.
Is ktor-tuned faster than http4k?
ktor-tuned is quicker than http4k on 11 of the 11 profiles they both run. On the HTTP/1.1 composite they score 3771 and 1786. Both run on the same machine, in the same round, against the same profiles.
Is ktor-tuned faster than ktron?
ktron is quicker than ktor-tuned on 8 of the 10 profiles they both run, and behind on 1. On the HTTP/1.1 composite they score 3771 and 7546. Both run on the same machine, in the same round, against the same profiles.
Is ktor faster than http4k?
ktor is quicker than http4k on 11 of the 11 profiles they both run. On the HTTP/1.1 composite they score 3330 and 1786. Both run on the same machine, in the same round, against the same profiles.
Which Kotlin framework is fastest overall?
ktron holds the highest HTTP/1.1 composite of the Kotlin entries, at 7546. The composite is throughput over the whole suite; if a service is one shape of workload, compare that profile on its own in the table above, because the order changes.
Every Kotlin entry
- ktron
- edixoi-kt
- kron
- kron-native
- ktor-kronos
- genhttp-kt-netty
- genhttp-kt
- ktor-tuned
- ktor
- ktor-kronos-native
- neton
- http4k
- klite
Results updated · Kotlin composite ranking · Compare across languages · Other languages · Open the leaderboard