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.2.2 472935 6.14 10.4 7.71
muffin 0.86.3 420570 7.42 12.19 9.16
falcon 3.0.1 395925 8.61 14.14 10.59
starlette 0.17.1 323595 15.17 19.22 14.62
baize 0.14.1 321450 13.69 15.75 14.11
emmett 2.3.2 299400 19.71 25.3 21.82
fastapi 0.70.1 245640 17.62 22.8 17.33
aiohttp 3.8.1 184965 19.51 19.75 19.76
tornado 6.1 110085 27.03 27.34 27.02
quart 0.16.2 98550 31.71 32.69 31.57
sanic 21.12.0 61860 36.23 66.5 46.98
django 4.0 34710 79.29 90.56 84.98

More details: Results (2021-12-27)

Archive

subscribe via RSS