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 545790 5.13 8.77 6.53
muffin 0.84.1 486870 6.16 10.59 7.82
falcon 3.0.1 455655 7.1 11.91 9.01
starlette 0.16.0 373365 9.56 16.48 12.29
emmett 2.2.3 344445 15.55 21.07 17.73
sanic 21.6.0 323880 7.56 13.0 9.83
fastapi 0.67.0 279675 11.61 19.84 14.8
aiohttp 3.7.4.post0 227055 15.83 15.95 15.85
tornado 6.1 128880 23.01 23.12 23.02
quart 0.15.1 113910 27.2 27.84 27.14
django 3.2.5 70200 44.21 48.76 43.99

More details: Results (2021-08-02)

Archive

subscribe via RSS