annotate load_test/main.py @ 118:249881ceff7b

[PostDog] Updated some core logic. Will create a bookmark for postdog until the launch as this is annoying to deal with.
author June Park <parkjune1995@gmail.com>
date Wed, 07 Jan 2026 13:24:38 -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("/")