diff --git a/locustfile.py b/locustfile.py index a6aad41..45ac8b4 100644 --- a/locustfile.py +++ b/locustfile.py @@ -1,7 +1,10 @@ -from locust import HttpUser, task +from locust import HttpUser, task, between -class Hello(HttpUser): +class BodyRecord(HttpUser): + wait_time = between(0.5, 4) + @task - def hello(self): - self.client.get("/pzx/v1/api/hello") \ No newline at end of file + def get_record_count(self): + self.client.get("/pzx/v1/api/profiling", params={ + 'token': 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE2OTk0MjgyNjYsImZsYWciOjAsImlhdCI6MTY5ODEzMjI2NiwiaXNzIjoiYnJ5YW50IiwidXNlcl9pZCI6IjY0ZDVmZTFjMzJjOWE2OTVhMWIyZDVmZiJ9.qKvErQovNDIWZbiaVXIzYXFmZ8Z7Bh0c77xmG5kVqsc'}) \ No newline at end of file