annotate load_test/main.py @ 155:3bb45eb67906

[Postdog] Updated variables names and padding sizes. Needs more work.
author June Park <parkjune1995@gmail.com>
date Mon, 12 Jan 2026 09:12:31 -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("/")