diff options
author | BonfaceKilz | 2021-05-21 15:14:23 +0300 |
---|---|---|
committer | BonfaceKilz | 2021-05-21 15:16:13 +0300 |
commit | 0a52d87dc4f5dab40f8ec59a048324b73ce2a8cd (patch) | |
tree | 1a6ca087f9c67579b42d89bb06decd60d30dfe7a /locustfile.py | |
parent | 0149b5da461945350be2fe9b95d3c42cf4211f5b (diff) | |
download | genenetwork2-0a52d87dc4f5dab40f8ec59a048324b73ce2a8cd.tar.gz |
locustfile: Add new load test for a simple test-case
Load test fetching a single trait using Locust.
Diffstat (limited to 'locustfile.py')
-rw-r--r-- | locustfile.py | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/locustfile.py b/locustfile.py new file mode 100644 index 00000000..4abf3f1c --- /dev/null +++ b/locustfile.py @@ -0,0 +1,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") |