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.9 526905 5.78 8.89 6.8
muffin 0.84.5 469605 7.58 10.63 8.11
falcon 3.0.1 447090 9.32 11.75 9.13
starlette 0.16.0 361845 13.62 16.75 12.96
emmett 2.3.1 333060 17.36 22.08 18.97
sanic 21.6.2 306615 8.99 13.63 10.42
fastapi 0.68.1 272805 15.66 19.56 15.19
aiohttp 3.7.4.post0 213840 17.05 17.47 17.08
tornado 6.1 124755 23.59 24.26 23.7
quart 0.15.1 108585 28.2 29.43 28.37
django 3.2.6 66060 46.99 51.67 46.76

More details: Results (2021-09-01)

Archive

subscribe via RSS