Skip to content

congdh/benchmark-api-frameworks-postgres

Repository files navigation

benchmark-api-frameworks-postgres

Benchmark peformance python api frameworks with postgres

Install hey benchmark tool

brew install hey

Start database

Start database by docker-compose

docker-compose up -d db pgadmin

Migrate database using alembic

poetry run alembic upgrade head

Benchmark FastAPI Sqlalchemy app

Start app

poetry run uvicorn fastapi_sqlalchemy.main:app

Benchmark now

hey -n 100 -c 10 http://127.0.0.1:8000/users/

About

Benchmark peformance python api frameworks with postgres

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published