HTTP server & framework benchmarks

http4s benchmark results

http4s 0.23 is a scala web framework. At concurrency 64 it serves 37 495 requests per second with a P50 latency of 1.16 ms, ranking 286 of 403 overall and 5 of 5 among scala frameworks.

Throughput, latency & reliability

All measured metrics for http4s 0.23, by concurrency level.
MetricConcurrency 64Concurrency 256Concurrency 512
Requests / second37 49536 48835 270
P50 latency1.16 ms4.04 ms12.76 ms
P75 latency1.70 ms7.27 ms14.95 ms
P90 latency3.29 ms13.36 ms17.43 ms
P99 latency5.12 ms17.77 ms24.38 ms
P99.999 latency18.82 ms675.46 ms5819.39 ms
Average latency1.71 ms6.68 ms13.75 ms
Minimum latency0.10 ms0.29 ms0.37 ms
Standard deviation2.54 ms12.41 ms80.56 ms
Total requests562 454547 399529 206
Bytes received77.76 MB75.80 MB73.28 MB
HTTP errors000
Request timeouts0011
Socket connection errors000
Socket read errors000
Socket write errors000

Position in this benchmark

Position of http4s on requests per second.
ConcurrencyOverallAmong scala frameworks
64286 of 4035 of 5
256287 of 4035 of 5
512292 of 4035 of 5

Badge for your README

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

web frameworks benchmark: #286 of 403

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

web frameworks benchmark: #5 of 5 in scala

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

Explore scala frameworks

Fastest scala frameworks at concurrency 64.
# 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

All 5 scala frameworks