dependabot[bot] 53fbed6dc7 Build(deps): bump aiohttp in /frameworks/Python/aiohttp 3 месяцев назад
..
app d6fc514fc1 [aiohttp] - use batch updates (#9932) 4 месяцев назад
README.md 7d7f2238ca aiohttp base nginx setup (#9796) 6 месяцев назад
aiohttp-gunicorn.dockerfile 52351a68fd Aiohttp: Add pypy3 and minor optimisation (#9903) 5 месяцев назад
aiohttp-nginx.dockerfile 52351a68fd Aiohttp: Add pypy3 and minor optimisation (#9903) 5 месяцев назад
aiohttp-orm.dockerfile 52351a68fd Aiohttp: Add pypy3 and minor optimisation (#9903) 5 месяцев назад
aiohttp-pypy.dockerfile 52351a68fd Aiohttp: Add pypy3 and minor optimisation (#9903) 5 месяцев назад
aiohttp.dockerfile 52351a68fd Aiohttp: Add pypy3 and minor optimisation (#9903) 5 месяцев назад
benchmark_config.json 52351a68fd Aiohttp: Add pypy3 and minor optimisation (#9903) 5 месяцев назад
config.toml 52351a68fd Aiohttp: Add pypy3 and minor optimisation (#9903) 5 месяцев назад
gunicorn_conf.py 95a16408f3 Python aiohttp (#2529) 8 лет назад
nginx-entrypoint.sh 7d7f2238ca aiohttp base nginx setup (#9796) 6 месяцев назад
requirements-cpython.txt 52351a68fd Aiohttp: Add pypy3 and minor optimisation (#9903) 5 месяцев назад
requirements.txt 53fbed6dc7 Build(deps): bump aiohttp in /frameworks/Python/aiohttp 3 месяцев назад

README.md

aiohttp Benchmark Test

The information below is specific to aiohttp. For further guidance, review the documentation. Also note that there is additional information that's provided in the Python README.

This is the Python aiohttp portion of a benchmarking tests suite comparing a variety of frameworks.

All test implementations are located within (./app).

Description

aiohttp with sqlalchemy and separately asyncpg for database access.

uvloop is used for a more performant event loop.

Database

PostgreSQL.

Two variants:

To enabled "RAW" mode set the following environment variable:

export CONNECTION=RAW

This will switch which database engine the app uses to execute queries with tests 2, 3, 4 & 5.

Server

nginx+uvloop on CPython

Test URLs

Test 1: JSON Encoding

http://localhost:8080/json

Test 2: Single Row Query

http://localhost:8080/db

Test 3: Multi Row Query

http://localhost:8080/queries/20

Test 4: Fortunes (Template rendering)

http://localhost:8080/fortunes

Test 5: Update Query

http://localhost:8080/updates/20

Test 6: Plaintext

http://localhost:8080/plaintext