Locust: Difference between revisions
Jump to navigation
Jump to search
Line 77: | Line 77: | ||
* [https://docs.locust.io/en/stable/installation.html Locust » Installation] | * [https://docs.locust.io/en/stable/installation.html Locust » Installation] | ||
* [https://docs.locust.io/en/stable/quickstart.html Locust » Quickstart] | * [https://docs.locust.io/en/stable/quickstart.html Locust » Quickstart] | ||
* [https://github.com/locustio/locust/tree/master/examples Locust » Examples] | |||
* [https://docs.locust.io/en/stable/running-in-docker.html Locust] | * [https://docs.locust.io/en/stable/running-in-docker.html Locust] | ||
Revision as of 19:23, 20 January 2024
python3 -m venv ~/.venv/locust --prompt="Locust"
source ~/.venv/locust/bin/activate
pip install locust
locust -V
Playground
mkdir -p ~/Documents/locust-playground
cd ~/Documents/locust-playground
source ~/.venv/locust/bin/activate
locust -V
locust
open http://localhost:8089 &>/dev/null &
|
cat <<'EOF' > ~/Documents/locust-playground/locustfile.py
from locust import HttpUser, task
class HealthCheck(HttpUser):
@task
def hello_world(self):
self.client.get("/services/audit/health")
self.client.get("/services/quote/health")
EOF
|
| |
knowledge
gnome-open http://localhost:8080 &>/dev/null & xdg-open http://localhost:8080 &>/dev/null & |
sensible-browser http://localhost:8080 &>/dev/null & x-www-browser http://localhost:8080 &>/dev/null & |
|
| ||
References
| ||
| ||