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 34 against every language in its league. Measured over Alpha Round, every entry on the same machine. The quickest Python framework is pyronova, at 2381.

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 341 of 3
pyronovaExperimental tuned23817 of 8—
mq-bridge-pyEmerging219042 of 721 of 9
aiohttpFlagship204443 of 722 of 9
blackbullEmerging163655 of 723 of 9
starletteFlagship160456 of 724 of 9
sanicFlagship tuned160270 of 915 of 12
uvicornEngine151823 of 342 of 3
litestarFlagship148757 of 725 of 9
fastpysgi-asgiEngine136225 of 343 of 3
fastapiFlagship127061 of 726 of 9
robynEmerging86965 of 727 of 9
slimewebEmerging tuned84482 of 919 of 12
flaskFlagship33770 of 728 of 9
bottleFlagship tuned28189 of 9111 of 12
djangoFlagship22271 of 729 of 9

HTTP/2

FrameworkTypeCompositeRank overallRank among Python
mq-bridge-pyEmerging61912 of 201 of 2
pyronovaExperimental tuned5643 of 5—
blackbullEmerging14518 of 202 of 2

gRPC

FrameworkTypeCompositeRank overallRank among Python
pyronovaExperimental tuned16922 of 2—

WebSocket

FrameworkTypeCompositeRank overallRank among Python
blackbullEmerging18219 of 20—

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 34 in its own league.

What is the fastest Python web framework?

pyronova, with a composite of 2381 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 12 of 20 against all languages in its league.

What is the fastest Python gRPC server?

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

What is the fastest Python WebSocket server?

blackbull, with a composite of 182 on WebSocket and 19 of 20 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 34 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