Skip to content

Instantly share code, notes, and snippets.

@adamskogman
Created January 8, 2013 15:29
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 adamskogman/0385d312d66d218822cb to your computer and use it in GitHub Desktop.
Save adamskogman/0385d312d66d218822cb to your computer and use it in GitHub Desktop.
# locustfile.py
from locust import Locust, TaskSet, task
class WebsiteTasks(TaskSet):
def on_start(self):
self.client.get("/")
@task
def index(self):
self.client.get("/")
class WebsiteUser(Locust):
task_set = WebsiteTasks
min_wait = 10000
max_wait = 10000
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment