Skip to content

Instantly share code, notes, and snippets.

@u1i
Created July 7, 2023 08:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save u1i/a4a8ca0d7722455f525bda8d33757abb to your computer and use it in GitHub Desktop.
Save u1i/a4a8ca0d7722455f525bda8d33757abb to your computer and use it in GitHub Desktop.
Locust
import time
from locust import HttpUser, task, between
class QuickstartUser(HttpUser):
wait_time = between(1, 2)
@task
def index_page(self):
self.client.get("/")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment