Explore by language

scala web framework benchmarks

Benchmark results for 5 scala web frameworks, measured with zrk at concurrency 64, 256, 512. Fastest at concurrency 64: zio-http with 175 057 requests per second.

Compare throughput and latency together. These measurements describe a specific workload and test environment; performance in your application may differ.

Concurrency 64

scala frameworks at concurrency 64, ranked on requests per second.
# Framework Requests / second P50 latency P99 latency HTTP errors
1 zio-http 3.11 175 057 0.33 ms 0.72 ms 0
2 cask 0.11 94 515 0.41 ms 3.95 ms 0
3 pekkohttp 1.7 83 795 0.71 ms 1.68 ms 0
4 play 3.0 52 753 1.10 ms 3.89 ms 0
5 http4s 0.23 37 495 1.16 ms 5.12 ms 0

Concurrency 256

scala frameworks at concurrency 256, ranked on requests per second.
# Framework Requests / second P50 latency P99 latency HTTP errors
1 zio-http 3.11 158 966 1.60 ms 2.19 ms 0
2 cask 0.11 98 640 2.21 ms 9.07 ms 0
3 pekkohttp 1.7 73 404 3.20 ms 7.20 ms 0
4 play 3.0 56 798 4.24 ms 8.57 ms 0
5 http4s 0.23 36 488 4.04 ms 17.77 ms 0

Concurrency 512

scala frameworks at concurrency 512, ranked on requests per second.
# Framework Requests / second P50 latency P99 latency HTTP errors
1 zio-http 3.11 154 964 3.29 ms 4.02 ms 0
2 cask 0.11 100 864 4.74 ms 13.95 ms 0
3 pekkohttp 1.7 67 166 6.75 ms 16.29 ms 0
4 play 3.0 56 660 8.08 ms 17.47 ms 0
5 http4s 0.23 35 270 12.76 ms 24.38 ms 0