Skip to content

Commit

Permalink
added locust file
Browse files Browse the repository at this point in the history
  • Loading branch information
ialbert committed Feb 25, 2021
1 parent ca5f207 commit f006578
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions biostar/test/locustfile.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
import time
from locust import HttpUser, task, between

class QuickstartUser(HttpUser):
wait_time = between(1, 2.5)

@task
def home(self):
self.client.get("/")

#@task
def visit_page(self):
self.client.get("/p/2/")

#@task
def visit_popular(self):
self.client.get("/p/7126/")

0 comments on commit f006578

Please sign in to comment.