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 3148 on HTTP/1.1 — 16 of 26 against every language in its league. Measured over Alpha Round, every entry on the same machine. The quickest Python framework is pyronova, at 2404.

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-wsgiEngine314816 of 261 of 3
pyronovaExperimental tuned24043 of 3
mq-bridge-pyEmerging221937 of 711 of 9
aiohttpFlagship207239 of 712 of 9
blackbullEmerging165851 of 713 of 9
sanicFlagship tuned163068 of 934 of 12
starletteFlagship162452 of 714 of 9
uvicornEngine151821 of 262 of 3
litestarFlagship150453 of 715 of 9
fastpysgi-asgiEngine136222 of 263 of 3
fastapiFlagship128658 of 716 of 9
robynEmerging89264 of 717 of 9
slimewebEmerging tuned86584 of 939 of 12
flaskFlagship34369 of 718 of 9
bottleFlagship tuned28991 of 9311 of 12
djangoFlagship22770 of 719 of 9

HTTP/2

FrameworkTypeCompositeRank overallRank among Python
mq-bridge-pyEmerging61410 of 181 of 2
pyronovaExperimental tuned5703 of 3
blackbullEmerging14516 of 182 of 2

gRPC

FrameworkTypeCompositeRank overallRank among Python
pyronovaExperimental tuned16981 of 2

WebSocket

FrameworkTypeCompositeRank overallRank among Python
blackbullEmerging18214 of 15

Questions

What is the fastest Python HTTP server?

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

What is the fastest Python web framework?

pyronova, with a composite of 2404 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 614 on HTTP/2 and 10 of 18 against all languages in its league.

What is the fastest Python gRPC server?

pyronova, with a composite of 1698 on gRPC and 1 of 2 against all languages in its league.

What is the fastest Python WebSocket server?

blackbull, with a composite of 182 on WebSocket and 14 of 15 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 16 of 26 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 · Kotlin · Lua · Luau · Perl · PHP · Ruby · Rust · Scala · Swift · TS · Zig

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