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 108 419 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 108 419 1509.55 ms 5386.92 ms 0
2 cask 0.11 103 966 1766.57 ms 5748.74 ms 0
3 pekkohttp 1.7 87 643 2147.50 ms 6472.36 ms 0
4 play 3.0 74 628 2414.93 ms 6981.63 ms 0
5 http4s 0.23 66 705 2763.09 ms 7437.65 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 93 517 1798.31 ms 5866.15 ms 0
2 cask 0.11 90 974 1932.46 ms 6227.97 ms 0
3 pekkohttp 1.7 78 740 2193.07 ms 6729.05 ms 0
4 play 3.0 71 829 2435.41 ms 7064.92 ms 0
5 http4s 0.23 48 473 3068.25 ms 8295.08 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 92 587 1038.34 ms 4644.18 ms 0
2 cask 0.11 88 502 950.70 ms 6248.11 ms 0
3 pekkohttp 1.7 77 730 2214.23 ms 7226.03 ms 0
4 play 3.0 69 619 2278.57 ms 7796.74 ms 0
5 http4s 0.23 63 557 2206.55 ms 8757.25 ms 0