annotate load_test/main.py @ 185:dfdd66825396

Merged in keep alive changes and mrjunejune changes.
author MrJuneJune <me@mrjunejune.com>
date Fri, 23 Jan 2026 22:22:30 -0800
parents 1aeee370837b
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
90
1aeee370837b simple locust file to use.
June Park <parkjune1995@gmail.com>
parents:
diff changeset
1 from locust import HttpUser, task, between
1aeee370837b simple locust file to use.
June Park <parkjune1995@gmail.com>
parents:
diff changeset
2
1aeee370837b simple locust file to use.
June Park <parkjune1995@gmail.com>
parents:
diff changeset
3 class WebsiteUser(HttpUser):
1aeee370837b simple locust file to use.
June Park <parkjune1995@gmail.com>
parents:
diff changeset
4 wait_time = between(1, 5)
1aeee370837b simple locust file to use.
June Park <parkjune1995@gmail.com>
parents:
diff changeset
5
1aeee370837b simple locust file to use.
June Park <parkjune1995@gmail.com>
parents:
diff changeset
6 @task(3)
1aeee370837b simple locust file to use.
June Park <parkjune1995@gmail.com>
parents:
diff changeset
7 def index_page(self):
1aeee370837b simple locust file to use.
June Park <parkjune1995@gmail.com>
parents:
diff changeset
8 self.client.get("/")