├── .gitignore ├── Dockerfile ├── README.md ├── ab2json.py ├── bitmath.py ├── docker-compose.yml ├── gen_report.py ├── gen_test_data.py ├── monitor-app.sh ├── nginx-docker.conf ├── pgbouncer-userlist.txt ├── requirements.txt ├── run-docker.sh ├── schema.sql ├── src ├── app_aio.py ├── app_aioflask.py ├── app_bottle.py ├── app_falcon.py ├── app_fastapi.py ├── app_flask.py ├── app_quart.py ├── app_sanic.py ├── app_starlette.py ├── app_tornado.py ├── async_db.py ├── meinheld_psycopg2.py ├── serve-aiohttp.sh ├── serve-daphne-starlette.sh ├── serve-gunicorn-bottle.sh ├── serve-gunicorn-falcon.sh ├── serve-gunicorn-flask.sh ├── serve-gunicorn-gevent-bottle.sh ├── serve-gunicorn-gevent-falcon.sh ├── serve-gunicorn-gevent-flask.sh ├── serve-gunicorn-meinheld-bottle.sh ├── serve-gunicorn-meinheld-falcon.sh ├── serve-gunicorn-meinheld-flask.sh ├── serve-hypercorn-quart.sh ├── serve-sanic-own.sh ├── serve-tornado.sh ├── serve-uvicorn-aioflask.sh ├── serve-uvicorn-fastapi.sh ├── serve-uvicorn-quart.sh ├── serve-uvicorn-sanic.sh ├── serve-uvicorn-starlette.sh ├── serve-uwsgi-bottle-own-proto.sh ├── serve-uwsgi-bottle.sh ├── serve-uwsgi-falcon.sh ├── serve-uwsgi-flask.sh └── sync_db.py └── tests.txt /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/miguelgrinberg/python-web-perf/HEAD/.gitignore -------------------------------------------------------------------------------- /Dockerfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/miguelgrinberg/python-web-perf/HEAD/Dockerfile -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/miguelgrinberg/python-web-perf/HEAD/README.md -------------------------------------------------------------------------------- /ab2json.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/miguelgrinberg/python-web-perf/HEAD/ab2json.py -------------------------------------------------------------------------------- /bitmath.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/miguelgrinberg/python-web-perf/HEAD/bitmath.py -------------------------------------------------------------------------------- /docker-compose.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/miguelgrinberg/python-web-perf/HEAD/docker-compose.yml -------------------------------------------------------------------------------- /gen_report.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/miguelgrinberg/python-web-perf/HEAD/gen_report.py -------------------------------------------------------------------------------- /gen_test_data.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/miguelgrinberg/python-web-perf/HEAD/gen_test_data.py -------------------------------------------------------------------------------- /monitor-app.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/miguelgrinberg/python-web-perf/HEAD/monitor-app.sh -------------------------------------------------------------------------------- /nginx-docker.conf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/miguelgrinberg/python-web-perf/HEAD/nginx-docker.conf -------------------------------------------------------------------------------- /pgbouncer-userlist.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/miguelgrinberg/python-web-perf/HEAD/pgbouncer-userlist.txt -------------------------------------------------------------------------------- /requirements.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/miguelgrinberg/python-web-perf/HEAD/requirements.txt -------------------------------------------------------------------------------- /run-docker.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/miguelgrinberg/python-web-perf/HEAD/run-docker.sh -------------------------------------------------------------------------------- /schema.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/miguelgrinberg/python-web-perf/HEAD/schema.sql -------------------------------------------------------------------------------- /src/app_aio.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/miguelgrinberg/python-web-perf/HEAD/src/app_aio.py -------------------------------------------------------------------------------- /src/app_aioflask.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/miguelgrinberg/python-web-perf/HEAD/src/app_aioflask.py -------------------------------------------------------------------------------- /src/app_bottle.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/miguelgrinberg/python-web-perf/HEAD/src/app_bottle.py -------------------------------------------------------------------------------- /src/app_falcon.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/miguelgrinberg/python-web-perf/HEAD/src/app_falcon.py -------------------------------------------------------------------------------- /src/app_fastapi.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/miguelgrinberg/python-web-perf/HEAD/src/app_fastapi.py -------------------------------------------------------------------------------- /src/app_flask.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/miguelgrinberg/python-web-perf/HEAD/src/app_flask.py -------------------------------------------------------------------------------- /src/app_quart.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/miguelgrinberg/python-web-perf/HEAD/src/app_quart.py -------------------------------------------------------------------------------- /src/app_sanic.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/miguelgrinberg/python-web-perf/HEAD/src/app_sanic.py -------------------------------------------------------------------------------- /src/app_starlette.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/miguelgrinberg/python-web-perf/HEAD/src/app_starlette.py -------------------------------------------------------------------------------- /src/app_tornado.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/miguelgrinberg/python-web-perf/HEAD/src/app_tornado.py -------------------------------------------------------------------------------- /src/async_db.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/miguelgrinberg/python-web-perf/HEAD/src/async_db.py -------------------------------------------------------------------------------- /src/meinheld_psycopg2.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/miguelgrinberg/python-web-perf/HEAD/src/meinheld_psycopg2.py -------------------------------------------------------------------------------- /src/serve-aiohttp.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/miguelgrinberg/python-web-perf/HEAD/src/serve-aiohttp.sh -------------------------------------------------------------------------------- /src/serve-daphne-starlette.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/miguelgrinberg/python-web-perf/HEAD/src/serve-daphne-starlette.sh -------------------------------------------------------------------------------- /src/serve-gunicorn-bottle.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/miguelgrinberg/python-web-perf/HEAD/src/serve-gunicorn-bottle.sh -------------------------------------------------------------------------------- /src/serve-gunicorn-falcon.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/miguelgrinberg/python-web-perf/HEAD/src/serve-gunicorn-falcon.sh -------------------------------------------------------------------------------- /src/serve-gunicorn-flask.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/miguelgrinberg/python-web-perf/HEAD/src/serve-gunicorn-flask.sh -------------------------------------------------------------------------------- /src/serve-gunicorn-gevent-bottle.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/miguelgrinberg/python-web-perf/HEAD/src/serve-gunicorn-gevent-bottle.sh -------------------------------------------------------------------------------- /src/serve-gunicorn-gevent-falcon.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/miguelgrinberg/python-web-perf/HEAD/src/serve-gunicorn-gevent-falcon.sh -------------------------------------------------------------------------------- /src/serve-gunicorn-gevent-flask.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/miguelgrinberg/python-web-perf/HEAD/src/serve-gunicorn-gevent-flask.sh -------------------------------------------------------------------------------- /src/serve-gunicorn-meinheld-bottle.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/miguelgrinberg/python-web-perf/HEAD/src/serve-gunicorn-meinheld-bottle.sh -------------------------------------------------------------------------------- /src/serve-gunicorn-meinheld-falcon.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/miguelgrinberg/python-web-perf/HEAD/src/serve-gunicorn-meinheld-falcon.sh -------------------------------------------------------------------------------- /src/serve-gunicorn-meinheld-flask.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/miguelgrinberg/python-web-perf/HEAD/src/serve-gunicorn-meinheld-flask.sh -------------------------------------------------------------------------------- /src/serve-hypercorn-quart.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | hypercorn -b :8001 -w $PWPWORKERS app_quart:app 4 | -------------------------------------------------------------------------------- /src/serve-sanic-own.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | python3 app_sanic.py 4 | -------------------------------------------------------------------------------- /src/serve-tornado.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | python3 app_tornado.py 4 | -------------------------------------------------------------------------------- /src/serve-uvicorn-aioflask.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/miguelgrinberg/python-web-perf/HEAD/src/serve-uvicorn-aioflask.sh -------------------------------------------------------------------------------- /src/serve-uvicorn-fastapi.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/miguelgrinberg/python-web-perf/HEAD/src/serve-uvicorn-fastapi.sh -------------------------------------------------------------------------------- /src/serve-uvicorn-quart.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/miguelgrinberg/python-web-perf/HEAD/src/serve-uvicorn-quart.sh -------------------------------------------------------------------------------- /src/serve-uvicorn-sanic.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/miguelgrinberg/python-web-perf/HEAD/src/serve-uvicorn-sanic.sh -------------------------------------------------------------------------------- /src/serve-uvicorn-starlette.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/miguelgrinberg/python-web-perf/HEAD/src/serve-uvicorn-starlette.sh -------------------------------------------------------------------------------- /src/serve-uwsgi-bottle-own-proto.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/miguelgrinberg/python-web-perf/HEAD/src/serve-uwsgi-bottle-own-proto.sh -------------------------------------------------------------------------------- /src/serve-uwsgi-bottle.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/miguelgrinberg/python-web-perf/HEAD/src/serve-uwsgi-bottle.sh -------------------------------------------------------------------------------- /src/serve-uwsgi-falcon.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/miguelgrinberg/python-web-perf/HEAD/src/serve-uwsgi-falcon.sh -------------------------------------------------------------------------------- /src/serve-uwsgi-flask.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/miguelgrinberg/python-web-perf/HEAD/src/serve-uwsgi-flask.sh -------------------------------------------------------------------------------- /src/sync_db.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/miguelgrinberg/python-web-perf/HEAD/src/sync_db.py -------------------------------------------------------------------------------- /tests.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/miguelgrinberg/python-web-perf/HEAD/tests.txt --------------------------------------------------------------------------------