HTTP server & framework benchmarks

httprouter benchmark results

httprouter 1.3 is a go web framework. At concurrency 64 it serves 105 622 requests per second with a P50 latency of 0.49 ms, ranking 146 of 383 overall and 16 of 42 among go frameworks.

Throughput, latency & reliability

All measured metrics for httprouter 1.3, by concurrency level.
MetricConcurrency 64Concurrency 256Concurrency 512
Requests / second105 62298 23196 856
P50 latency0.49 ms2.28 ms5.17 ms
P75 latency0.86 ms3.73 ms6.46 ms
P90 latency1.26 ms5.14 ms7.76 ms
P99 latency2.08 ms8.32 ms13.02 ms
P99.999 latency4.91 ms17.05 ms25.89 ms
Average latency0.61 ms2.60 ms5.28 ms
Minimum latency0.03 ms0.03 ms0.03 ms
Standard deviation0.48 ms1.90 ms2.33 ms
Total requests1 584 3931 473 6271 453 156
Bytes received133.99 MB124.76 MB122.92 MB
HTTP errors000
Request timeouts000
Socket connection errors000
Socket read errors000
Socket write errors000

Position in this benchmark

Position of httprouter on requests per second.
ConcurrencyOverallAmong go frameworks
64146 of 38316 of 42
256153 of 38317 of 42
512154 of 38316 of 42

Badge for your README

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

web frameworks benchmark: #146 of 383

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

web frameworks benchmark: #16 of 42 in go

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

Explore go frameworks

Fastest go frameworks at concurrency 64.
# Framework Requests / second P50 latency P99 latency HTTP errors
1 breeze 2 216 272 0.26 ms 0.66 ms 0
2 web 0 205 272 0.26 ms 0.98 ms 0
3 fasthttp 1.74 182 167 0.29 ms 1.10 ms 0
4 gorouter-fasthttp 4.4 180 176 0.29 ms 1.12 ms 0
5 gearbox 1.2 180 070 0.29 ms 1.12 ms 0
6 fiber 3.5 178 319 0.30 ms 1.12 ms 0
7 hertz 0.9 173 885 0.36 ms 0.76 ms 0
8 router 1.5 172 563 0.31 ms 1.17 ms 0
9 atreugo 11.13 169 652 0.31 ms 1.20 ms 0
10 apirouter 1 108 569 0.47 ms 2.05 ms 0

All 42 go frameworks