-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update locust and add some documentation
- Loading branch information
Showing
3 changed files
with
38 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# Performance test for grobid-quantities | ||
|
||
> conda create --name locust python=3.9 pip | ||
> pip install locust | ||
> cd resources/locust | ||
Start the master | ||
> locust --config master.conf | ||
Start the worker (in this example we need at least one worker) | ||
> locust --worker | ||
Connect to the locust interface on http://localhost:8089 | ||
|
||
You can run the locust without interface by | ||
1. set headless = True in the master.conf | ||
2. specify an output html file ``--output output.html`` when you start the master | ||
> locust --config master.conf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# master.conf in current directory | ||
locustfile = locustfile.py | ||
headless = false | ||
master = true | ||
expect-workers = 1 | ||
host = http://localhost:8060 | ||
users = 100 | ||
spawn-rate = 10 | ||
run-time = 10m |