This is a simple benchmark for python async frameworks. Almost all of the frameworks are ASGI-compatible (aiohttp and tornado are exceptions on the moment).

The objective of the benchmark is not testing deployment (like uvicorn vs hypercorn and etc) or database (ORM, drivers) but instead test the frameworks itself. The benchmark checks request parsing (body, headers, formdata, queries), routing, responses.

benchmarks tests

Combined results

Sorted by sum of completed requests

Framework Requests completed Avg Latency 50% (ms) Avg Latency 75% (ms) Avg Latency (ms)
blacksheep 1.0.8 467295 6.46 10.45 7.88
muffin 0.80.0 423960 7.25 12.35 9.17
falcon 3.0.1 393750 8.6 13.96 10.57
starlette 0.14.2 324615 12.23 19.3 14.6
emmett 2.2.3 292305 20.74 26.08 22.61
sanic 21.3.4 280365 9.25 15.31 11.55
fastapi 0.65.2 242865 17.75 22.79 17.38
aiohttp 3.7.4.post0 196455 18.61 18.95 18.63
tornado 6.1 105060 27.9 28.61 28.19
quart 0.15.1 90660 33.44 35.48 33.98
django 3.2.4 59565 51.51 57.03 51.56

More details: Results (2021-06-22)

Archive

subscribe via RSS