python-web-perf
python-web-perf copied to clipboard
Code for testing performance of popular python webservers
The proxy_pass config uses HTTP/1.0 without keep-alive, which wastes a lot of time spawning new TCP connections to the backend server. Consult e.g. https://sanic.readthedocs.io/en/latest/sanic/nginx.html for how to make it fast....
from https://github.com/mopemope/meinheld The description is: Meinheld is a high performance asynchronous WSGI Web Server (based on picoev) http://meinheld.org
Many thanks.
Have you tried to increase number of connections in db connection pool for async apps? One async worker can yield much more queries to DB than one sync worker, so...
My attempt of narrowing down on cases where async is a clear better choice than Flask. Please see `notes.md`