k6 run --vus 100 --duration 30s script.js

Category: Web App Development

k6 run --vus 100 --duration 30s script.js

Run k6 with 100 virtual users for 30 seconds

Overrides the script's load profile with 100 virtual users running for 30 seconds. A virtual user is one simulated user executing the test scenario. CLI flags take precedence over options declared in the script.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.