mirror of
https://github.com/grillazz/fastapi-sqlalchemy-asyncpg.git
synced 2025-08-26 16:40:40 +03:00
14 lines
268 B
Python
14 lines
268 B
Python
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")
|