k6
modern load testing tool
TLDR
Run load test
$ k6 run [script.js]
Run with virtual users$ k6 run --vus [10] --duration [30s] [script.js]
Run with iterations$ k6 run --iterations [100] [script.js]
Cloud execution$ k6 cloud [script.js]
Output to JSON$ k6 run --out json=[results.json] [script.js]
Pause threshold$ k6 run --throw-on-abort [script.js]
SYNOPSIS
k6 command [options] script
DESCRIPTION
k6 is a modern load testing tool. It uses JavaScript for test scripts with a powerful API.
The tool produces detailed performance metrics. It supports cloud execution and CI/CD integration.
PARAMETERS
run SCRIPT
Run load test script.cloud SCRIPT
Run on k6 Cloud.--vus N
Virtual users.--duration TIME
Test duration.--iterations N
Total iterations.--out OUTPUT
Output destination.--help
Display help information.
CAVEATS
JavaScript ES6 subset. Not Node.js runtime. Cloud features need account.
HISTORY
k6 was created by Load Impact (now Grafana Labs) as a developer-centric load testing tool.
