HttpArena
Comparisons

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.

ProfileConnsktor-tuned req/secktor req/secDeltaktor-tuned p99ktor p99
Baseline4,0961,414,0201,057,094+34%10.90ms9.01ms
Pipelined4,0962,491,5392,224,937+12%85.20ms41.70ms
Short-lived4,096601,087817,599-26%68.60ms50.10ms
Async Delay32,000310,599919,883-66%283.90ms54.60ms
Latency-10K1,0249,9839,981+0%135.0us169.0us
Latency-1M1,024997,705997,467+0%2373.0us4714.0us
Latency-500K/81,024283,892225,519+26%8990720.0us10833920.0us
JSON Comp4,096249,350215,761+16%45.00ms75.40ms
JSON Comp16,384236,648211,393+12%163.70ms242.40ms
JSON TLS4,096896,371481,326+86%75.18ms87.19ms
8Gbit51249,39949,341+0%170.0us219.0us
Static TLS1,024267,451265,402+1%92.98ms106.09ms
Async DB1,02445,62446,789-2%25.80ms25.50ms
Fortunes1,02449,99161,805-19%43.10ms26.50ms
Baseline2561,135,198823,575+38%111.62ms102.05ms
Baseline1,0241,047,470733,980+43%327.37ms583.02ms
Static256235,897224,836+5%175.67ms115.99ms
Static1,024231,399206,406+12%373.52ms536.96ms
Baseline (h2c)2561,170,892855,375+37%119.04ms104.39ms
Baseline (h2c)1,0241,102,189750,822+47%346.75ms580.04ms
Baseline (h2c)4,096521,941455,001+15%2.17s2.84s
JSON (h2c)1,024744,649447,900+66%193.46ms420.00ms
JSON (h2c)4,096676,200400,824+69%638.40ms699.55ms
Baseline64377,525337,850+12%32.07ms37.22ms
Static6476,77797,818-22%208.94ms192.12ms
Echo5121,092,2751,061,779+3%1.13ms1.09ms
Echo4,0961,207,338976,556+24%9.46ms10.50ms
Echo16,3841,053,889669,770+57%48.20ms53.50ms
Echo Pipelined51212,092,85711,549,842+5%1.79ms1.81ms
Echo Pipelined4,09612,853,10011,057,137+16%16.10ms14.60ms
Echo Pipelined16,38412,636,6039,091,708+39%73.10ms63.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

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