flask
Flagship · Python · engine: gunicorn · standard configuration · completeness 4/4
Flask web framework on Gunicorn with sync workers
Composite rank
Each profile of a family is worth 100 to the entry that leads it, and the composite is the sum over the family, less 2.5% for each of routing, middleware, request and response the entry does not do for you - its completeness factor, which the WebSocket and gRPC families do not carry. The field is this entry's own league: engines and reverse proxies are scored apart from frameworks. How it works.
| Family | Rank | Composite |
|---|---|---|
| HTTP/1.1 | 69 of 71 | 343 |
Every result
Alpha Round, 12 runs. Requests per second is the best of three; latency, CPU and memory come from that run.
| Category | Profile | Conns | Req/sec | Avg | p99 | CPU | Memory |
|---|---|---|---|---|---|---|---|
| Connection | Baseline | 4,096 | 77,319 | 28.75ms | 257.70ms | 3355.5% | 3.2GiB |
| Connection | Pipelined | 4,096 | 77,697 | 28.52ms | 161.70ms | 3325.3% | 3.2GiB |
| Connection | Short-lived | 4,096 | 107,404 | 20.50ms | 28.30ms | 5688.8% | 3.2GiB |
| Concurrency | Async Delay | 32,000 | 5,252 | 415.62ms | 1.18s | 384.2% | 3.3GiB |
| Efficiency | Latency-10K | 1,024 | 9,980 | 585.7us | 6790.0us | 403.7% | 3.3GiB |
| Efficiency | Latency-1M | 1,024 | 109,754 | 9103406.4us | 17588224.0us | 5110.6% | 3.3GiB |
| Efficiency | Latency-500K/8 | 1,024 | 20,438 | 9569078.6us | 18964480.0us | 756.0% | 516MiB |
| Workload | JSON Comp | 4,096 | 66,225 | 33.05ms | 37.30ms | 5437.4% | 3.2GiB |
| Workload | JSON Comp | 16,384 | 55,126 | 43.70ms | 642.60ms | 4112.9% | 3.2GiB |
| Workload | JSON TLS | 4,096 | 6,834 | 6.57ms | 6.57ms | 2183.7% | 3.3GiB |
| Workload | 8Gbit | 512 | 16,688 | 1626766.5us | 3220480.0us | 4977.3% | 3.3GiB |
| Database | Async DB | 1,024 | 42,384 | 23.88ms | 25.70ms | 5346.6% | 3.3GiB |
Compared with
The Python entries around flask on the HTTP/1.1 composite, and the one leading them. The last column shows every profile side by side.
| Entry | Composite | vs flask | |
|---|---|---|---|
| fastpysgi-wsgi | 3148 | +819% | head to head |
| robyn | 892 | +160% | head to head |
| slimeweb | 865 | +153% | head to head |
| bottle | 289 | -16% | head to head |
| django | 227 | -34% | head to head |
Compare flask with any Python entry · Compare flask with any entry, in any language · Every Python entry, ranked
Results updated · How the benchmark is run · The machine · Add or fix an entry