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 508515 5.86 9.52 7.14
muffin 0.86.0 455565 6.89 11.32 8.46
falcon 3.0.1 418335 8.09 13.15 9.89
starlette 0.16.0 346860 10.73 18.3 13.43
baize 0.12 333450 13.02 15.05 13.59
emmett 2.3.1 311055 18.57 22.92 20.65
sanic 21.9.1 294465 8.79 14.48 10.97
fastapi 0.70.0 262440 12.93 21.01 15.77
aiohttp 3.7.4.post0 204930 17.71 17.9 17.83
tornado 6.1 118785 24.97 25.21 25.12
quart 0.15.1 103950 29.05 31.69 29.87
django 3.2.8 61500 48.31 55.11 50.1

More details: Results (2021-10-21)

Archive

subscribe via RSS