reduce number of users in locust stress test

by reducing wait time, we can generate same load with fewer users
This commit is contained in:
hrj
2021-04-12 16:56:59 +05:30
parent e8416ff70e
commit 79428bc5e7
2 changed files with 3 additions and 3 deletions

View File

@@ -19,7 +19,7 @@ def _(environment, **kw):
environment.process_exit_code = 0
class QuickStartUser(SequentialTaskSet):
wait_time = between(0.1,1)
wait_time = between(0.1,0.2)
@task
def captcha(self):
@@ -52,6 +52,6 @@ class QuickStartUser(SequentialTaskSet):
class User(FastHttpUser):
wait_time = between(0.1,1)
wait_time = between(0.1,0.2)
tasks = [QuickStartUser]
host = "http://localhost:8888"