k6 run --iterations 1000 --vus 10 script.js

Category: Web App Development

k6 run --iterations 1000 --vus 10 script.js

Run k6 for a fixed number of iterations

Runs 1000 total iterations shared across 10 virtual users, useful when you want a deterministic amount of work rather than a time window. Each iteration executes the default exported function once. Combine with --duration to bound the run.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.