├── .flake8 ├── .github ├── CODEOWNERS ├── dependabot.yaml └── workflows │ └── ci.yml ├── .gitignore ├── .pre-commit-config.yaml ├── .sourcery.yaml ├── DockerfileBench ├── Makefile ├── README.md ├── asgi_bench ├── __init__.py ├── __main__.py ├── build.py ├── cli.py ├── results.py ├── runner.py ├── spec.py ├── types.py └── util.py ├── frameworks ├── __init__.py ├── blacksheep_app.py ├── fastapi_app.py ├── litestar_app.py ├── quart_app.py ├── requirements-blacksheep.txt ├── requirements-fastapi.txt ├── requirements-sanic.txt ├── requirements-starlette.txt ├── sanic_app.py ├── starlette_app.py └── starlite_app.py ├── poetry.lock ├── pyproject.toml ├── run_app.sh ├── templates ├── DockerfileFrameworks.jinja2 ├── results.html.jinja2 └── results.md.jinja2 ├── test_data ├── 100B ├── 100B.txt ├── 100K ├── 100K.json ├── 100K.txt ├── 10K ├── 10K.json ├── 10K.txt ├── 1K ├── 1K.json ├── 1K.txt ├── 1M ├── 1M.json ├── 1M.txt ├── 500K ├── 500K.json ├── 500K.txt ├── 5M ├── 5M.json ├── 5M.txt ├── FILE_UPLOAD_1K ├── FILE_UPLOAD_1K_HEADERS.json ├── FORM_URLENCODED_1K ├── FORM_URLENCODED_1K_HEADERS.json ├── MULTIPART_1K ├── MULTIPART_1K_HEADERS.json ├── __init__.py ├── objects.py ├── persons_100.json ├── persons_50.json └── persons_500.json └── tests ├── __init__.py ├── test_frameworks.py └── test_types.py /.flake8: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/litestar-org/api-performance-tests/HEAD/.flake8 -------------------------------------------------------------------------------- /.github/CODEOWNERS: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/litestar-org/api-performance-tests/HEAD/.github/CODEOWNERS -------------------------------------------------------------------------------- /.github/dependabot.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/litestar-org/api-performance-tests/HEAD/.github/dependabot.yaml -------------------------------------------------------------------------------- /.github/workflows/ci.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/litestar-org/api-performance-tests/HEAD/.github/workflows/ci.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/litestar-org/api-performance-tests/HEAD/.gitignore -------------------------------------------------------------------------------- /.pre-commit-config.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/litestar-org/api-performance-tests/HEAD/.pre-commit-config.yaml -------------------------------------------------------------------------------- /.sourcery.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/litestar-org/api-performance-tests/HEAD/.sourcery.yaml -------------------------------------------------------------------------------- /DockerfileBench: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/litestar-org/api-performance-tests/HEAD/DockerfileBench -------------------------------------------------------------------------------- /Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/litestar-org/api-performance-tests/HEAD/Makefile -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/litestar-org/api-performance-tests/HEAD/README.md -------------------------------------------------------------------------------- /asgi_bench/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /asgi_bench/__main__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/litestar-org/api-performance-tests/HEAD/asgi_bench/__main__.py -------------------------------------------------------------------------------- /asgi_bench/build.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/litestar-org/api-performance-tests/HEAD/asgi_bench/build.py -------------------------------------------------------------------------------- /asgi_bench/cli.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/litestar-org/api-performance-tests/HEAD/asgi_bench/cli.py -------------------------------------------------------------------------------- /asgi_bench/results.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/litestar-org/api-performance-tests/HEAD/asgi_bench/results.py -------------------------------------------------------------------------------- /asgi_bench/runner.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/litestar-org/api-performance-tests/HEAD/asgi_bench/runner.py -------------------------------------------------------------------------------- /asgi_bench/spec.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/litestar-org/api-performance-tests/HEAD/asgi_bench/spec.py -------------------------------------------------------------------------------- /asgi_bench/types.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/litestar-org/api-performance-tests/HEAD/asgi_bench/types.py -------------------------------------------------------------------------------- /asgi_bench/util.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/litestar-org/api-performance-tests/HEAD/asgi_bench/util.py -------------------------------------------------------------------------------- /frameworks/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/litestar-org/api-performance-tests/HEAD/frameworks/__init__.py -------------------------------------------------------------------------------- /frameworks/blacksheep_app.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/litestar-org/api-performance-tests/HEAD/frameworks/blacksheep_app.py -------------------------------------------------------------------------------- /frameworks/fastapi_app.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/litestar-org/api-performance-tests/HEAD/frameworks/fastapi_app.py -------------------------------------------------------------------------------- /frameworks/litestar_app.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/litestar-org/api-performance-tests/HEAD/frameworks/litestar_app.py -------------------------------------------------------------------------------- /frameworks/quart_app.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/litestar-org/api-performance-tests/HEAD/frameworks/quart_app.py -------------------------------------------------------------------------------- /frameworks/requirements-blacksheep.txt: -------------------------------------------------------------------------------- 1 | anyio 2 | -------------------------------------------------------------------------------- /frameworks/requirements-fastapi.txt: -------------------------------------------------------------------------------- 1 | python-multipart 2 | -------------------------------------------------------------------------------- /frameworks/requirements-sanic.txt: -------------------------------------------------------------------------------- 1 | anyio 2 | sanic[ext] 3 | -------------------------------------------------------------------------------- /frameworks/requirements-starlette.txt: -------------------------------------------------------------------------------- 1 | python-multipart 2 | -------------------------------------------------------------------------------- /frameworks/sanic_app.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/litestar-org/api-performance-tests/HEAD/frameworks/sanic_app.py -------------------------------------------------------------------------------- /frameworks/starlette_app.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/litestar-org/api-performance-tests/HEAD/frameworks/starlette_app.py -------------------------------------------------------------------------------- /frameworks/starlite_app.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/litestar-org/api-performance-tests/HEAD/frameworks/starlite_app.py -------------------------------------------------------------------------------- /poetry.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/litestar-org/api-performance-tests/HEAD/poetry.lock -------------------------------------------------------------------------------- /pyproject.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/litestar-org/api-performance-tests/HEAD/pyproject.toml -------------------------------------------------------------------------------- /run_app.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/litestar-org/api-performance-tests/HEAD/run_app.sh -------------------------------------------------------------------------------- /templates/DockerfileFrameworks.jinja2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/litestar-org/api-performance-tests/HEAD/templates/DockerfileFrameworks.jinja2 -------------------------------------------------------------------------------- /templates/results.html.jinja2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/litestar-org/api-performance-tests/HEAD/templates/results.html.jinja2 -------------------------------------------------------------------------------- /templates/results.md.jinja2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/litestar-org/api-performance-tests/HEAD/templates/results.md.jinja2 -------------------------------------------------------------------------------- /test_data/100B: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/litestar-org/api-performance-tests/HEAD/test_data/100B -------------------------------------------------------------------------------- /test_data/100B.txt: -------------------------------------------------------------------------------- 1 | qktiOWCgbeWokB8Rj0sQ4akqkqIfEUK6Byd6YVCj4B1jt83BEIjic/j0SWN3PWx8nh0PmqBETIaA 2 | il1PIw5PxGZsRPtz/zytn+n -------------------------------------------------------------------------------- /test_data/100K: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/litestar-org/api-performance-tests/HEAD/test_data/100K -------------------------------------------------------------------------------- /test_data/100K.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/litestar-org/api-performance-tests/HEAD/test_data/100K.json -------------------------------------------------------------------------------- /test_data/100K.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/litestar-org/api-performance-tests/HEAD/test_data/100K.txt -------------------------------------------------------------------------------- /test_data/10K: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/litestar-org/api-performance-tests/HEAD/test_data/10K -------------------------------------------------------------------------------- /test_data/10K.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/litestar-org/api-performance-tests/HEAD/test_data/10K.json -------------------------------------------------------------------------------- /test_data/10K.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/litestar-org/api-performance-tests/HEAD/test_data/10K.txt -------------------------------------------------------------------------------- /test_data/1K: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/litestar-org/api-performance-tests/HEAD/test_data/1K -------------------------------------------------------------------------------- /test_data/1K.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/litestar-org/api-performance-tests/HEAD/test_data/1K.json -------------------------------------------------------------------------------- /test_data/1K.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/litestar-org/api-performance-tests/HEAD/test_data/1K.txt -------------------------------------------------------------------------------- /test_data/1M: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/litestar-org/api-performance-tests/HEAD/test_data/1M -------------------------------------------------------------------------------- /test_data/1M.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/litestar-org/api-performance-tests/HEAD/test_data/1M.json -------------------------------------------------------------------------------- /test_data/1M.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/litestar-org/api-performance-tests/HEAD/test_data/1M.txt -------------------------------------------------------------------------------- /test_data/500K: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/litestar-org/api-performance-tests/HEAD/test_data/500K -------------------------------------------------------------------------------- /test_data/500K.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/litestar-org/api-performance-tests/HEAD/test_data/500K.json -------------------------------------------------------------------------------- /test_data/500K.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/litestar-org/api-performance-tests/HEAD/test_data/500K.txt -------------------------------------------------------------------------------- /test_data/5M: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/litestar-org/api-performance-tests/HEAD/test_data/5M -------------------------------------------------------------------------------- /test_data/5M.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/litestar-org/api-performance-tests/HEAD/test_data/5M.json -------------------------------------------------------------------------------- /test_data/5M.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/litestar-org/api-performance-tests/HEAD/test_data/5M.txt -------------------------------------------------------------------------------- /test_data/FILE_UPLOAD_1K: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/litestar-org/api-performance-tests/HEAD/test_data/FILE_UPLOAD_1K -------------------------------------------------------------------------------- /test_data/FILE_UPLOAD_1K_HEADERS.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/litestar-org/api-performance-tests/HEAD/test_data/FILE_UPLOAD_1K_HEADERS.json -------------------------------------------------------------------------------- /test_data/FORM_URLENCODED_1K: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/litestar-org/api-performance-tests/HEAD/test_data/FORM_URLENCODED_1K -------------------------------------------------------------------------------- /test_data/FORM_URLENCODED_1K_HEADERS.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/litestar-org/api-performance-tests/HEAD/test_data/FORM_URLENCODED_1K_HEADERS.json -------------------------------------------------------------------------------- /test_data/MULTIPART_1K: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/litestar-org/api-performance-tests/HEAD/test_data/MULTIPART_1K -------------------------------------------------------------------------------- /test_data/MULTIPART_1K_HEADERS.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/litestar-org/api-performance-tests/HEAD/test_data/MULTIPART_1K_HEADERS.json -------------------------------------------------------------------------------- /test_data/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/litestar-org/api-performance-tests/HEAD/test_data/__init__.py -------------------------------------------------------------------------------- /test_data/objects.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/litestar-org/api-performance-tests/HEAD/test_data/objects.py -------------------------------------------------------------------------------- /test_data/persons_100.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/litestar-org/api-performance-tests/HEAD/test_data/persons_100.json -------------------------------------------------------------------------------- /test_data/persons_50.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/litestar-org/api-performance-tests/HEAD/test_data/persons_50.json -------------------------------------------------------------------------------- /test_data/persons_500.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/litestar-org/api-performance-tests/HEAD/test_data/persons_500.json -------------------------------------------------------------------------------- /tests/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/test_frameworks.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/litestar-org/api-performance-tests/HEAD/tests/test_frameworks.py -------------------------------------------------------------------------------- /tests/test_types.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/litestar-org/api-performance-tests/HEAD/tests/test_types.py --------------------------------------------------------------------------------