locust_app/locustfile.py

7 lines
134 B
Python
Raw Normal View History

2023-10-24 16:00:55 +08:00
from locust import HttpUser, task
2023-10-24 16:21:32 +08:00
class Hello(HttpUser):
2023-10-24 16:00:55 +08:00
@task
2023-10-24 16:21:32 +08:00
def hello(self):
self.client.get("/pzx/v1/api/hello")