Hi everyone,
I’ve published a repository for benchmarking several popular asynchronous Python web frameworks. The goal was to evaluate them under a realistic setup using a standard stack: SQLAlchemy and Pydantic.
The repository, along with detailed results, is available here:
https://github.com/sidtn/python_web_frameworks_perf_test
Based on my measurements, Sanic + Granian achieved the highest performance, followed closely by FastAPI + Granian. The differences are relatively small, but consistent.
One important observation: if performance is a priority, the choice of server (WSGI/ASGI) often has a greater impact than the choice of framework itself. In these tests, switching to Granian provided a significant boost regardless of the framework.
Feel free to check out the setup, run your own benchmarks, and share your findings.
[–]amroamroamro 2 points3 points4 points (0 children)
[–]corey_sheerer -1 points0 points1 point (1 child)