Install Locust
, refer to Locust Installation
virtualenv
is recommended.
pip install locustio
# verify
locust --help
- Get your api running somewhere
- Run
locust -f locustfile.py --host=api-host-server
e.g.locust -f locustfile.py --host=https://localhost:8080
- Go to
http://localhost:8089/
, start load testing