HttpArena

Kotlin web framework comparison: any two, head to head

ktor-tuned is ahead of ktor on 26 of the 29 tests they both run, and behind on 3. On the HTTP/1.1 composite ktor-tuned scores 2873 and ktor 2316.

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. The fixed-rate profiles offer every entry the same request rate, so they are compared on their score out of 100 instead, which is CPU cost and latency at that rate. What each profile measures.

ProfileConnsktor-tunedktorDeltaktor-tuned p99ktor p99
Requests per second
Baseline4,0961,422,5911,005,736+41%6.43ms8.27ms
Pipelined4,0962,496,6682,148,466+16%50.10ms40.30ms
Short-lived4,096687,648747,149-8%63.80ms52.90ms
Async Delay32,0001,152,311865,613+33%50.40ms56.00ms
JSON Comp4,096250,838216,035+16%44.00ms74.60ms
JSON Comp16,384204,816145,288+41%730.40ms850.60ms
JSON TLS4,096872,173489,150+78%48.04ms79.23ms
Static TLS1,024280,011246,839+13%63.83ms78.32ms
Async DB1,02459,03461,011-3%20.60ms20.70ms
Baseline2561,014,174806,205+26%41.58ms50.57ms
Baseline1,024936,897734,383+28%295.62ms344.41ms
Static256243,892218,134+12%60.20ms63.49ms
Static1,024218,59162,333+251%961.92ms1.25s
Baseline (h2c)2561,035,337796,400+30%41.24ms61.78ms
Baseline (h2c)1,024961,442755,753+27%303.32ms325.34ms
Baseline (h2c)4,096466,941402,242+16%1.42s1.49s
JSON (h2c)1,024682,429394,573+73%80.22ms273.18ms
JSON (h2c)4,096684,393339,795+101%583.02ms819.40ms
Baseline64380,275339,775+12%35.66ms47.18ms
Static6478,368100,780-22%166.47ms146.90ms
Echo5121,356,7021,036,325+31%1.13ms1.13ms
Echo4,0961,369,477951,122+44%5.60ms9.64ms
Echo16,384899,216730,522+23%34.00ms45.70ms
Echo Pipelined51215,046,57711,000,318+37%2.07ms2.35ms
Echo Pipelined4,09614,810,98110,198,835+45%10.20ms15.70ms
Echo Pipelined16,38412,163,0109,062,406+34%59.70ms64.90ms
Fixed-rate profiles: score out of 100
Latency-10K1,02464.554.6+18%131us153us
Latency-1M1,02448.739.1+25%1.61ms3.35ms
8Gbit51269.059.2+17%169us219us

Common comparisons

ktor-tuned vs ktor · ktor-tuned vs http4k · ktor-tuned vs neton · ktor vs http4k · ktor vs neton · http4k vs neton

Questions

Is ktor-tuned faster than ktor?

ktor-tuned is ahead of ktor on 26 of the 29 tests they both run, and behind on 3. On the HTTP/1.1 composite ktor-tuned scores 2873 and ktor 2316. Both run on the same machine, in the same round, against the same profiles.

Is ktor-tuned faster than http4k?

ktor-tuned is ahead of http4k on 10 of the 10 tests they both run. On the HTTP/1.1 composite ktor-tuned scores 2873 and http4k 1188. Both run on the same machine, in the same round, against the same profiles.

Is ktor-tuned faster than neton?

ktor-tuned is ahead of neton on 15 of the 20 tests they both run, and behind on 5. On the HTTP/1.1 composite ktor-tuned scores 2873 and neton 1483. Both run on the same machine, in the same round, against the same profiles.

Is ktor faster than http4k?

ktor is ahead of http4k on 8 of the 10 tests they both run, and behind on 2. On the HTTP/1.1 composite ktor scores 2316 and http4k 1188. Both run on the same machine, in the same round, against the same profiles.

Which Kotlin framework is fastest overall?

Among the Kotlin web frameworks, ktor-tuned holds the highest HTTP/1.1 composite, at 2873; among the Kotlin HTTP engines, edixoi-kt holds the highest HTTP/1.1 composite, at 5789; among the experimental Kotlin frameworks, ktron holds the highest HTTP/1.1 composite, at 6436. Each league is measured against its own leader, and the leagues do not all count the same profiles, so those numbers are not on one scale and the highest of them is not the fastest entry on the page: to set an entry of one league against an entry of another, pick the two in the table above. 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

Results updated · Kotlin composite ranking · Compare across languages · Other languages · Open the leaderboard