HTTP server & framework benchmarks

flask benchmark results

flask 3.1 is a python web framework. At concurrency 64 it serves 738 requests per second with a P50 latency of 99.85 ms, ranking 376 of 383 overall and 42 of 46 among python frameworks.

Throughput, latency & reliability

All measured metrics for flask 3.1, by concurrency level.
MetricConcurrency 64Concurrency 256Concurrency 512
Requests / second7381 210859
P50 latency99.85 ms102.53 ms2376.91 ms
P75 latency130.94 ms185.38 ms2841.07 ms
P90 latency157.69 ms315.30 ms3031.30 ms
P99 latency190.75 ms973.27 ms5820.25 ms
P99.999 latency215.95 ms2727.13 ms6206.98 ms
Average latency94.84 ms159.71 ms2284.58 ms
Minimum latency14.04 ms0.40 ms44.52 ms
Standard deviation48.12 ms229.85 ms1204.36 ms
Total requests11 07718 15112 886
Bytes received1.61 MB2.64 MB1.87 MB
HTTP errors000
Request timeouts0063
Socket connection errors13 83610 48914 494
Socket read errors000
Socket write errors000

Position in this benchmark

Position of flask on requests per second.
ConcurrencyOverallAmong python frameworks
64376 of 38342 of 46
256374 of 38341 of 46
512377 of 38344 of 46

Badge for your README

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

web frameworks benchmark: #376 of 383

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

web frameworks benchmark: #42 of 46 in python

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

Explore python frameworks

Fastest python frameworks at concurrency 64.
# Framework Requests / second P50 latency P99 latency HTTP errors
1 peregrine-wsgi 1.1 191 025 0.30 ms 0.85 ms 0
2 weft-wsgi 0.1 153 346 0.41 ms 0.52 ms 0
3 fastpysgi-wsgi 0.6 147 137 0.46 ms 0.58 ms 0
4 peregrine-asgi 1.1 118 540 0.55 ms 0.68 ms 0
5 weft-asgi 0.1 118 218 0.53 ms 0.79 ms 0
6 oxapy 0.11 85 921 0.73 ms 1.34 ms 0
7 peregrine-blacksheep 2.6 74 401 0.95 ms 1.14 ms 0
8 emmett 2.7 47 667 1.27 ms 2.98 ms 0
9 asgineer 0.9 43 752 1.46 ms 2.09 ms 0
10 mq-bridge-py 0.2 41 435 1.63 ms 1.86 ms 0

All 46 python frameworks