k6 run script.js

Category: Web App Development

k6 run script.js

Run a k6 load test script

Executes the JavaScript load test in script.js, which defines virtual users, scenarios and thresholds. k6 compiles the script with its own JS runtime and reports rich metrics. Set thresholds in the script to make the run pass or fail like a unit test.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.