dependabot[bot] d0675df1b4 Bump aiohttp from 3.7.3 to 3.7.4 in /frameworks/Python/aiohttp (#6407) 4 жил өмнө
..
app 3830f1ffcb [aiohttp] Eliminate some overhead in jinja environment (#6289) 4 жил өмнө
README.md fe99c809fc [aiohttp] Use SQLAlchemy directly (rather than aiopg) (#6248) 4 жил өмнө
aiohttp-pg-raw.dockerfile 0096f84ee9 Config for the new toolset (#6259) 4 жил өмнө
aiohttp.dockerfile 0096f84ee9 Config for the new toolset (#6259) 4 жил өмнө
benchmark_config.json 14fed64a25 Docker python (#3406) 7 жил өмнө
config.toml 9d18b6e21b make sure all have versus key (#6265) 4 жил өмнө
gunicorn_conf.py 95a16408f3 Python aiohttp (#2529) 8 жил өмнө
requirements.txt d0675df1b4 Bump aiohttp from 3.7.3 to 3.7.4 in /frameworks/Python/aiohttp (#6407) 4 жил өмнө

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

gunicorn+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