diff options
Diffstat (limited to 'benchmarks/py-locust/files/extra-EXAMPLES-basic.py')
-rw-r--r-- | benchmarks/py-locust/files/extra-EXAMPLES-basic.py | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/benchmarks/py-locust/files/extra-EXAMPLES-basic.py b/benchmarks/py-locust/files/extra-EXAMPLES-basic.py deleted file mode 100644 index c34610e8df8e..000000000000 --- a/benchmarks/py-locust/files/extra-EXAMPLES-basic.py +++ /dev/null @@ -1,26 +0,0 @@ -from locust import HttpLocust, TaskSet, task - - -def index(l): - l.client.get("/") - -def stats(l): - l.client.get("/stats/requests") - -class UserTasks(TaskSet): - # one can specify tasks like this - tasks = [index, stats] - - # but it might be convenient to use the @task decorator - @task - def page404(self): - self.client.get("/does_not_exist") - -class WebsiteUser(HttpLocust): - """ - Locust user class that does requests to the locust web server running on localhost - """ - host = "http://127.0.0.1:8089" - min_wait = 2000 - max_wait = 5000 - task_set = UserTasks |