Skip to content

Commit

Permalink
feat: benchmark
Browse files Browse the repository at this point in the history
Signed-off-by: Dup4 <lyuzhi.pan@gmail.com>
  • Loading branch information
Dup4 committed Apr 10, 2023
1 parent b2caae4 commit 6cf7e71
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@ data/
data.*/

generate-accounts
__pycache__
9 changes: 9 additions & 0 deletions benchmark/main.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
from locust import HttpUser, task, between


class MyUser(HttpUser):
wait_time = between(0.1, 1)

@task
def scoreboard_task(self):
self.client.get("/domjudge/public")

0 comments on commit 6cf7e71

Please sign in to comment.