Skip to content

Instantly share code, notes, and snippets.

@agusrichard
Created July 18, 2021 05:36
Show Gist options
  • Save agusrichard/7e9132fbc04ad8aedb0881475d4fa7fb to your computer and use it in GitHub Desktop.
Save agusrichard/7e9132fbc04ad8aedb0881475d4fa7fb to your computer and use it in GitHub Desktop.
from locust import HttpUser, task, between
class HelloWorldUser(HttpUser):
wait_time = between(0.5, 2.5)
@task
def hello_world(self):
self.client.get('/hello')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment