Options (4)
-H, --hostbooleanLoad-test "example.com" with web interface using locustfile.py
Example:
locust {{[-H|--host]}} {{http://example.com}}-f, --locustfilebooleanUse a different test file
Example:
locust {{[-H|--host]}} {{http://example.com}} {{[-f|--locustfile]}} {{test_file.py}}-u, --usersbooleanRun test without web interface, spawning 1 user a second until there are 100 users
Example:
locust {{[-H|--host]}} {{http://example.com}} --headless {{[-u|--users]}} 100 {{[-r|--spawn-rate]}} 1-r, --spawn-ratebooleanRun test without web interface, spawning 1 user a second until there are 100 users
Example:
locust {{[-H|--host]}} {{http://example.com}} --headless {{[-u|--users]}} 100 {{[-r|--spawn-rate]}} 1Examples (6)
Load-test "example.com" with web interface using locustfile.py
locust [-H|--host] http://example.comUse a different test file
locust [-H|--host] http://example.com [-f|--locustfile] test_file.pyRun test without web interface, spawning 1 user a second until there are 100 users
locust [-H|--host] http://example.com --headless [-u|--users] 100 [-r|--spawn-rate] 1Start Locust in master mode
locust [-H|--host] http://example.com --masterConnect Locust worker to master
locust [-H|--host] http://example.com --workerConnect Locust worker to master on a different machine
locust [-H|--host] http://example.com --worker --master-host master_hostnamemade by @shridhargupta | data from tldr-pages