annotate load_test/main.py @ 172:0face9898d04

[PostDog] Small changes.
author MrJuneJune <me@mrjunejune.com>
date Mon, 19 Jan 2026 18:56:54 -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("/")