LinuxCommandLibrary

k6

modern load testing tool

TLDR

Run load test

$ k6 run [script.js]
copy
Run with virtual users
$ k6 run --vus [10] --duration [30s] [script.js]
copy
Run with iterations
$ k6 run --iterations [100] [script.js]
copy
Cloud execution
$ k6 cloud [script.js]
copy
Output to JSON
$ k6 run --out json=[results.json] [script.js]
copy
Pause threshold
$ k6 run --throw-on-abort [script.js]
copy

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.

SEE ALSO

jmeter(1), ab(1), wrk(1), hey(1)

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community