Skip to content

Commit 8bbf7d7

Browse files
committed
Small mocker fix
1 parent fe4b915 commit 8bbf7d7

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

psqlpy-stress/README.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,11 @@ Here you can load test a `psqlpy`, `asycnpg` and `psycopg` drivers in order to c
77
1. Run Postgresql database somewhere. We recommend run an external database outside of your local machine.
88
2. Store `database_dsn` in `settings.py`
99
3. Install dependencies: `poetry install`
10-
4. Fill database with mock data: `python psqlpy_stress/mocker.py`
11-
5. Run the application: `gunicorn psqlpy_stress.app:app -b 127.0.0.1:8080 -w 4 -k aiohttp.GunicornWebWorkeron`
12-
6. Install [bombardier](https://github.com/codesenberg/bombardier)
13-
7. Start bombarding application: `bombardier -c 10 -d 60s -l http://127.0.0.1:8080/psqlpy-simple-transaction-select`
10+
4. Run migrations: `alembic upgrade head`
11+
5. Fill database with mock data: `python psqlpy_stress/mocker.py`
12+
6. Run the application: `gunicorn psqlpy_stress.app:app -b 127.0.0.1:8080 -w 4 -k aiohttp.GunicornWebWorkeron`
13+
7. Install [bombardier](https://github.com/codesenberg/bombardier)
14+
8. Start bombarding application: `bombardier -c 10 -d 60s -l http://127.0.0.1:8080/psqlpy-simple-transaction-select`
1415

1516
You can change driver inside your url in order to test specific driver like:
1617

psqlpy-stress/psqlpy_stress/mocker.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ async def fill_big_table() -> None:
4949

5050
async def main() -> None:
5151
await fill_users()
52+
await fill_big_table()
5253

5354

5455
if __name__ == "__main__":

0 commit comments

Comments
 (0)