-
-
Save adamskogman/0385d312d66d218822cb to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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