delphimvcframework/samples/concurrency_speed_test/locusttest/locustfile.py
2023-06-06 13:00:21 +02:00

16 lines
396 B
Python

from locust import HttpUser, task, between
class APITest(HttpUser):
#wait_time = between(0.5, 3.0)
def on_start(self):
""" on_start is called when a Locust start before any task is scheduled """
pass
def on_stop(self):
""" on_stop is called when the TaskSet is stopping """
pass
@task(1)
def index(self):
self.client.get("/api")