Home / Frameworks / python / fastapi
HTTP server & framework benchmarks
fastapi benchmark results
fastapi 0.141 is a python web framework. At concurrency 64 it serves 19 732 requests per second with a P50 latency of 3.30 ms, ranking 309 of 383 overall and 27 of 46 among python frameworks.
Throughput, latency & reliability
All measured metrics for fastapi 0.141, by concurrency level.
Metric Concurrency 64 Concurrency 256 Concurrency 512
Requests / second 19 732 19 345 19 153
P50 latency 3.30 ms 13.43 ms 27.19 ms
P75 latency 3.42 ms 13.58 ms 27.40 ms
P90 latency 3.54 ms 13.75 ms 27.65 ms
P99 latency 3.66 ms 14.22 ms 28.81 ms
P99.999 latency 8.87 ms 202.87 ms 1423.87 ms
Average latency 3.31 ms 13.48 ms 27.26 ms
Minimum latency 0.69 ms 0.69 ms 0.68 ms
Standard deviation 0.23 ms 3.03 ms 29.31 ms
Total requests 295 995 290 206 287 362
Bytes received 37.62 MB 36.88 MB 36.52 MB
HTTP errors 0 0 0
Request timeouts 0 0 0
Socket connection errors 0 0 0
Socket read errors 0 0 0
Socket write errors 0 0 0
Position in this benchmark
Position of fastapi on requests per second.
Concurrency Overall Among python frameworks
64 309 of 383 27 of 46
256 308 of 383 26 of 46
512 307 of 383 26 of 46
Badge for your README
Show the rank of fastapi in your README. The image is updated together with the results.
[](https://web-frameworks-benchmark.vercel.app/frameworks/python/fastapi/)
[](https://web-frameworks-benchmark.vercel.app/frameworks/python/fastapi/)
Explore python frameworks
All 46 python frameworks