Skip to content

Instantly share code, notes, and snippets.

@ehzawad
Created September 28, 2020 14:58
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 ehzawad/170589169037fd91c95a44ab2ec57e01 to your computer and use it in GitHub Desktop.
Save ehzawad/170589169037fd91c95a44ab2ec57e01 to your computer and use it in GitHub Desktop.
from locust import User, HttpUser, TaskSet, task, between
class MyTasks(TaskSet):
@task
def load_user_profile(self):
self.client.get("/polls")
wait_time = between(5, 15)
class MyWebsiteUser(HttpUser):
tasks = [MyTasks]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment