blob: 4abf3f1cf79de06fe9c878f87395f1386a2a4040 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
  | 
"""Load test a single trait page"""
from locust import HttpUser, task, between
class LoadTest(HttpUser):
    wait_time = between(1, 2.5)
    @task
    def fetch_trait(self):
        """Fetch a single trait"""
        # /api/v_pre1/gen_dropdown
        self.client.get("/show_trait?trait_id="
                        "1457545_at&dataset=HC_M2_0606_P")
 
  |