aboutsummaryrefslogtreecommitdiff
path: root/locustfile.py
diff options
context:
space:
mode:
authorArthur Centeno2021-06-15 15:33:59 +0000
committerArthur Centeno2021-06-15 15:33:59 +0000
commitc1a6ca69f7c48d99b6c5d62e56a445583fd4c08b (patch)
treef98fccc44829e3f52e585d6b41a1942aa52bd8b7 /locustfile.py
parent7e49c006af9c4f7453c3578a7d4f1fc4d7bdf3ed (diff)
parent9e9e0e4d440383f617542e810a1115833eafd7bf (diff)
downloadgenenetwork2-c1a6ca69f7c48d99b6c5d62e56a445583fd4c08b.tar.gz
Merge branch 'testing' of github.com:genenetwork/genenetwork2 into acenteno
Diffstat (limited to 'locustfile.py')
-rw-r--r--locustfile.py13
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")