adjust locust file

This commit is contained in:
BryantHe 2023-10-26 12:17:30 +08:00
parent 3543973f00
commit 5d7f2fa1a5
1 changed files with 7 additions and 4 deletions

View File

@ -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 @task
def hello(self): def get_record_count(self):
self.client.get("/pzx/v1/api/hello") self.client.get("/pzx/v1/api/profiling", params={
'token': 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE2OTk0MjgyNjYsImZsYWciOjAsImlhdCI6MTY5ODEzMjI2NiwiaXNzIjoiYnJ5YW50IiwidXNlcl9pZCI6IjY0ZDVmZTFjMzJjOWE2OTVhMWIyZDVmZiJ9.qKvErQovNDIWZbiaVXIzYXFmZ8Z7Bh0c77xmG5kVqsc'})