Benchmark peformance python api frameworks with postgres
Install hey
benchmark tool
brew install hey
Start database by docker-compose
docker-compose up -d db pgadmin
Migrate database using alembic
poetry run alembic upgrade head
Start app
poetry run uvicorn fastapi_sqlalchemy.main:app
Benchmark now
hey -n 100 -c 10 http://127.0.0.1:8000/users/