locust performance testing tool code example
Example 1: locust load testing tutorial
1
$ pip install locust
Example 2: locust python use of between
class WebsiteTestUser(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