Skip to content

Instantly share code, notes, and snippets.

@noahgift
Created March 15, 2023 17:50
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 noahgift/9b143d0a772ea50a2b7e09c83b162918 to your computer and use it in GitHub Desktop.
Save noahgift/9b143d0a772ea50a2b7e09c83b162918 to your computer and use it in GitHub Desktop.
import time
from locust import HttpUser, task, between
class QuickstartUser(HttpUser):
wait_time = between(1, 5)
@task
def hello_world(self):
self.client.get("/")
self.client.get("/fruit")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment