HTTP server & framework benchmarks

ktor benchmark results

ktor 3.5 is a kotlin web framework. At concurrency 64 it serves 102 130 requests per second with a P50 latency of 0.55 ms, ranking 153 of 383 overall and 4 of 7 among kotlin frameworks.

Throughput, latency & reliability

All measured metrics for ktor 3.5, by concurrency level.
MetricConcurrency 64Concurrency 256Concurrency 512
Requests / second102 13098 96595 381
P50 latency0.55 ms2.49 ms5.25 ms
P75 latency0.65 ms2.82 ms5.84 ms
P90 latency0.87 ms3.33 ms6.63 ms
P99 latency2.46 ms5.16 ms8.65 ms
P99.999 latency8.71 ms13.79 ms14.78 ms
Average latency0.63 ms2.59 ms5.37 ms
Minimum latency0.06 ms0.31 ms0.15 ms
Standard deviation0.42 ms0.73 ms1.05 ms
Total requests1 532 0021 484 6431 430 961
Bytes received150.97 MB146.31 MB141.02 MB
HTTP errors000
Request timeouts000
Socket connection errors000
Socket read errors000
Socket write errors000

Position in this benchmark

Position of ktor on requests per second.
ConcurrencyOverallAmong kotlin frameworks
64153 of 3834 of 7
256148 of 3834 of 7
512157 of 3834 of 7

Badge for your README

Show the rank of ktor in your README. The image is updated together with the results.

web frameworks benchmark: #153 of 383

[![Web Frameworks Benchmark](https://web-frameworks-benchmark.vercel.app/frameworks/kotlin/ktor/badge.svg)](https://web-frameworks-benchmark.vercel.app/frameworks/kotlin/ktor/)

web frameworks benchmark: #4 of 7 in kotlin

[![Web Frameworks Benchmark](https://web-frameworks-benchmark.vercel.app/frameworks/kotlin/ktor/badge-language.svg)](https://web-frameworks-benchmark.vercel.app/frameworks/kotlin/ktor/)

Explore kotlin frameworks

Fastest kotlin frameworks at concurrency 64.
# Framework Requests / second P50 latency P99 latency HTTP errors
1 jooby 4.5 187 691 0.31 ms 0.65 ms 0
2 hexagon-netty-epoll 3.7 154 799 0.17 ms 5.60 ms 0
3 hexagon-netty 3.7 146 944 0.18 ms 5.81 ms 0
5 hexagon-jetty 3.7 68 364 0.79 ms 2.75 ms 0
6 http4k 6.59 67 204 0.62 ms 5.03 ms 0
7 spring 3.4 51 992 1.22 ms 4.55 ms 0

All 7 kotlin frameworks