locust

locust

TLDR

Load-test "example.com" with web interface using locustfile.py

>_ locust --host=[http://example.com]
copy

Use a different test file

>_ locust --locustfile=[test_file.py] --host=[http://example.com]
copy

Run test without web interface, spawning 1 user a second until there are 100 users

>_ locust --no-web --clients=[100] --hatch-rate=[1] --host=[http://example.com]
copy

Start locust in master mode

>_ locust --master --host=[http://example.com]
copy

Connect locust slave to master

>_ locust --slave --host=[http://example.com]
copy

Connect locust slave to master on a different machine

>_ locust --slave --master-host=[master_hostname] --host=[http://example.com]
copy

Copied to clipboard
free 100$ digital ocean credit