HttpArena
Frameworks

Python web framework benchmarks: performance comparison

The fastest Python web framework in HttpArena is mq-bridge-py, with a composite of 2055 on HTTP/1.1 — 52 of 85 against every language in its league. Measured over Alpha Round, every entry on the same machine. The leading Python HTTP engine is fastpysgi-wsgi, 26 of 46 in its own league. The leading experimental Python framework is mipyre, 20 of 30 in its own league.

Compare any two Python entries profile by profile →

Every Python entry in the benchmark, compared on the composite score of each family, one table per league. The composite sums a normalized score over the profiles of that family, where the leader of each profile scores 1,000, and scales the sum by the entry's completeness factor. Frameworks, engines, experimental entries and infrastructure are separate leagues: each is normalized against its own leader, and they do not all count the same profiles, so a composite compares with the others in its table and with nothing outside it. Rank in its league is the entry's place 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.

To set two entries from different leagues against each other, compare them head to head: that table lines up every test both of them ran.

Composite scores compare directly across every row of a table. 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

Frameworks

FrameworkTypeCompositeRank in its leagueRank among Python
mq-bridge-pyEmerging205552 of 851 of 9
aiohttpFlagship191155 of 852 of 9
blackbullEmerging154067 of 853 of 9
sanicFlagship tuned150386 of 1094 of 12
starletteFlagship149868 of 854 of 9
litestarFlagship137570 of 855 of 9
fastapiFlagship119674 of 856 of 9
robynEmerging84777 of 857 of 9
slimewebEmerging tuned814100 of 1099 of 12
flaskFlagship32082 of 858 of 9
bottleFlagship tuned278106 of 10911 of 12
djangoFlagship21184 of 859 of 9

Engines

EngineTypeCompositeRank in its leagueRank among Python
fastpysgi-wsgiEngine308526 of 461 of 3
uvicornEngine150234 of 462 of 3
fastpysgi-asgiEngine134736 of 463 of 3

Experimental frameworks

FrameworkTypeCompositeRank in its leagueRank among Python
mipyreExperimental432220 of 301 of 2
veil-pythonExperimental56630 of 302 of 2

HTTP/2

Frameworks

FrameworkTypeCompositeRank in its leagueRank among Python
mq-bridge-pyEmerging55022 of 311 of 2
blackbullEmerging13829 of 312 of 2

Experimental frameworks

FrameworkTypeCompositeRank in its leagueRank among Python
mipyreExperimental122111 of 161 of 2
veil-pythonExperimental67212 of 162 of 2

HTTP/3

Experimental frameworks

FrameworkTypeCompositeRank in its leagueRank among Python
veil-pythonExperimental2668 of 10—

gRPC

Experimental frameworks

FrameworkTypeCompositeRank in its leagueRank among Python
mipyreExperimental2906 of 71 of 2
veil-pythonExperimental67 of 72 of 2

WebSocket

Frameworks

FrameworkTypeCompositeRank in its leagueRank among Python
blackbullEmerging18229 of 30—

Experimental frameworks

FrameworkTypeCompositeRank in its leagueRank among Python
veil-pythonExperimental5223 of 23—

Questions

What is the fastest Python web framework?

mq-bridge-py leads the Python web frameworks in HttpArena with a composite score of 2055 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 1,000. Against every language, mq-bridge-py ranks 52 of 85 in its league.

What is the fastest Python HTTP engine?

fastpysgi-wsgi leads the Python HTTP engines in HttpArena with a composite score of 3085 on HTTP/1.1, measured over Alpha Round. Against every language, fastpysgi-wsgi ranks 26 of 46 in its league.

What is the fastest experimental Python framework?

mipyre leads the experimental Python frameworks in HttpArena with a composite score of 4322 on HTTP/1.1, measured over Alpha Round. Against every language, mipyre ranks 20 of 30 in its league.

Why are Python entries ranked in separate leagues?

HttpArena ranks web frameworks, HTTP engines, and experimental frameworks apart. Each league is normalized against its own leader, and the leagues do not all count the same profiles - engines are not scored on JSON Compressed, for one. A composite from one league is therefore not on the same scale as a composite from another, and the higher number across two leagues is not the faster server. To set two entries from different leagues against each other, use the Python head-to-head comparison, which lines up every test both of them ran.

What is the fastest Python HTTP/2 server?

Among web frameworks, mq-bridge-py (composite 550, 22 of 31 in that league); among experimental frameworks, mipyre (composite 1221, 11 of 16 in that league). The leagues are scored separately, so those composites are not on one scale.

What is the fastest Python HTTP/3 server?

veil-python, with a composite of 266 on HTTP/3 and 8 of 10 against all languages in its league.

What is the fastest Python gRPC server?

mipyre, with a composite of 290 on gRPC and 6 of 7 against all languages in its league.

What is the fastest Python WebSocket server?

Among web frameworks, blackbull (composite 182, 29 of 30 in that league); among experimental frameworks, veil-python (composite 52, 23 of 23 in that league). The leagues are scored separately, so those composites are not on one scale.

How many Python web frameworks are benchmarked?

17 Python entries are measured, covering HTTP/1.1, HTTP/2, HTTP/3, gRPC, 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 leading Python web framework, mq-bridge-py, places 52 of 85 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

Other languages

C · C# · C++ · Clojure · D · Dart · Elixir · Erlang · F# · Go · Goose · Haskell · Java · JS · Julia · Koru · Kotlin · Lua · Luau · Mojo · OCaml · Perl · PHP · Ruby · Rust · Scala · Sober · Swift · TS · V · Valk · Zig

Results updated · Alpha Round · Compare two Python entries · All languages · Open the leaderboard