- add performance tests with locust

This commit is contained in:
Jakub Miazek
2024-05-12 19:36:57 +02:00
parent e7b24d5d7e
commit 5d5ea60ca6
4 changed files with 675 additions and 9 deletions

13
performance/locustfile.py Normal file
View 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")