Python web framework benchmarks
The fastest Python web framework in HttpArena is pyronova, with a composite of 898 on HTTP/1.1 — 1 of 2 against every language in its league. Measured over Alpha Round, every entry on the same machine. This is a tuned entry.
Every Python entry in the benchmark, compared on the composite score of each family. The composite sums a normalized score over the profiles of that family, where the leader of each profile scores 100. Rank overall is the entry's place in its own league across all languages; rank among Python narrows the same field to this language. Both link through to the board view they were taken in. How the score works.
Composite scores compare directly across every row. Ranks do not always share a field: a tuned entry has no place in the standard-only ranking, so its rank is taken from the field that includes tuned entries and counts more of them.
HTTP/1.1
| Framework | Type | Composite | Rank overall | Rank among Python |
|---|---|---|---|---|
| pyronova | Experimental tuned | 898 | 1 of 2 | — |
| mq-bridge-py | Emerging | 319 | 23 of 71 | 1 of 9 |
| fastapi | Flagship | 190 | 41 of 71 | 2 of 9 |
| sanic | Flagship tuned | 161 | 69 of 97 | 3 of 12 |
| blackbull | Emerging | 147 | 52 of 71 | 3 of 9 |
| litestar | Flagship | 137 | 55 of 71 | 5 of 9 |
| starlette | Flagship | 137 | 54 of 71 | 4 of 9 |
| aiohttp | Flagship | 132 | 58 of 71 | 6 of 9 |
| fastpysgi-wsgi | Engine | 124 | 20 of 34 | 1 of 4 |
| fastpysgi-asgi | Engine | 117 | 21 of 34 | 2 of 4 |
| flask | Flagship | 110 | 63 of 71 | 7 of 9 |
| bottle | Flagship tuned | 105 | 87 of 97 | 9 of 12 |
| slimeweb | Emerging tuned | 101 | 88 of 97 | 10 of 12 |
| robyn | Emerging | 75 | 67 of 71 | 8 of 9 |
| uvicorn | Engine | 73 | 26 of 34 | 3 of 4 |
| django | Flagship | 31 | 71 of 71 | 9 of 9 |
| bjoern | Engine | 20 | 30 of 34 | 4 of 4 |
HTTP/2
| Framework | Type | Composite | Rank overall | Rank among Python |
|---|---|---|---|---|
| pyronova | Experimental tuned | 166 | 1 of 2 | — |
| mq-bridge-py | Emerging | 80 | 6 of 16 | 1 of 2 |
| blackbull | Emerging | 15 | 14 of 16 | 2 of 2 |
WebSocket
| Framework | Type | Composite | Rank overall | Rank among Python |
|---|---|---|---|---|
| blackbull | Emerging | 15 | 19 of 20 | — |
Questions
What is the fastest Python web framework?
pyronova leads the Python entries in HttpArena with a composite score of 898 on HTTP/1.1, measured over Alpha Round. The composite sums a normalized score across the profiles of a family, where the leader of each profile scores 100. Against every language, pyronova ranks 1 of 2 in its own league. It is a tuned entry, so it is ranked in the field that includes tuned configurations.
What is the fastest Python HTTP/2 server?
pyronova, with a composite of 166 on HTTP/2 and 1 of 2 against all languages in its league.
What is the fastest Python WebSocket server?
blackbull, with a composite of 15 on WebSocket and 19 of 20 against all languages in its league.
How many Python web frameworks are benchmarked?
17 Python entries are measured, covering HTTP/1.1, HTTP/2, WebSocket. Every one runs on the same machine, in the same round (Alpha Round), against the same profiles.
Is Python fast for web servers?
The quickest Python entry, pyronova, places 1 of 2 on HTTP/1.1 across every language in its league, so that placing is the honest answer for Python at its best rather than for Python in general. The tables below show the spread across all 17 entries.
Every Python entry
- aiohttp
- bjoern
- blackbull
- bottle
- django
- fastapi
- fastpysgi-asgi
- fastpysgi-wsgi
- flask
- litestar
- mq-bridge-py
- pyronova
- robyn
- sanic
- slimeweb
- starlette
- uvicorn
Alpha Round · All languages · Open the leaderboard