mirror of
https://github.com/grillazz/fastapi-sqlalchemy-asyncpg.git
synced 2025-11-30 13:20:40 +03:00
- add performance tests with locust
This commit is contained in:
13
performance/locustfile.py
Normal file
13
performance/locustfile.py
Normal file
@@ -0,0 +1,13 @@
|
||||
from locust import HttpUser, task, between
|
||||
|
||||
|
||||
class Stuff(HttpUser):
|
||||
wait_time = between(1, 3)
|
||||
|
||||
@task
|
||||
def test_find(self):
|
||||
self.client.get("/v1/stuff/string")
|
||||
|
||||
@task
|
||||
def test_find_pool(self):
|
||||
self.client.get("/v1/stuff/pool/string")
|
||||
Reference in New Issue
Block a user