HttpArena
Frameworks

Python web framework benchmarks: performance comparison

The fastest Python HTTP server in HttpArena is fastpysgi-wsgi (an HTTP engine), with a composite of 3118 on HTTP/1.1 — 20 of 39 against every language in its league. Measured over Alpha Round, every entry on the same machine. The quickest Python framework is mq-bridge-py, at 2179.

Compare any two Python entries profile by profile →

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, and scales the sum by the entry's completeness factor. 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

FrameworkTypeCompositeRank overallRank among Python
fastpysgi-wsgiEngine311820 of 391 of 3
mq-bridge-pyEmerging217944 of 761 of 9
pyronovaExperimental tuned21278 of 10—
aiohttpFlagship202147 of 762 of 9
blackbullEmerging161959 of 763 of 9
starletteFlagship158260 of 764 of 9
sanicFlagship tuned156775 of 975 of 12
uvicornEngine150828 of 392 of 3
litestarFlagship146461 of 765 of 9
fastpysgi-asgiEngine135830 of 393 of 3
fastapiFlagship125665 of 766 of 9
robynEmerging87269 of 767 of 9
slimewebEmerging tuned84587 of 979 of 12
flaskFlagship33074 of 768 of 9
bottleFlagship tuned28495 of 9711 of 12
djangoFlagship22275 of 769 of 9

HTTP/2

FrameworkTypeCompositeRank overallRank among Python
mq-bridge-pyEmerging61914 of 231 of 2
pyronovaExperimental tuned4107 of 7—
blackbullEmerging14521 of 232 of 2

gRPC

FrameworkTypeCompositeRank overallRank among Python
pyronovaExperimental tuned16924 of 5—

WebSocket

FrameworkTypeCompositeRank overallRank among Python
blackbullEmerging18222 of 23—

Questions

What is the fastest Python HTTP server?

fastpysgi-wsgi, an HTTP engine, leads the Python entries in HttpArena with a composite score of 3118 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, fastpysgi-wsgi ranks 20 of 39 in its own league.

What is the fastest Python web framework?

mq-bridge-py, with a composite of 2179 on HTTP/1.1. fastpysgi-wsgi scores higher but is an HTTP engine, not a framework, and is ranked in its own league.

What is the fastest Python HTTP/2 server?

mq-bridge-py, with a composite of 619 on HTTP/2 and 14 of 23 against all languages in its league.

What is the fastest Python gRPC server?

pyronova, with a composite of 1692 on gRPC and 4 of 5 against all languages in its league.

What is the fastest Python WebSocket server?

blackbull, with a composite of 182 on WebSocket and 22 of 23 against all languages in its league.

How many Python web frameworks are benchmarked?

16 Python entries are measured, covering HTTP/1.1, HTTP/2, 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 quickest Python entry, fastpysgi-wsgi, places 20 of 39 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 16 entries.

Every Python entry

Other languages

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

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