k6

k6

TLDR

Run load test locally

>_ k6 run [script.js]
copy

Run load test locally with a given number of virtual users and duration

>_ k6 run --vus [10] --duration [30s] [script.js]
copy

Run load test locally with a given environment variable

>_ k6 run -e [HOSTNAME=example.com] [script.js]
copy

Run load test locally using InfluxDB to store results

>_ k6 run --out influxdb=[http://localhost:8086/k6db] [script.js]
copy

Login to cloud service using secret token

>_ k6 login cloud --token [secret]
copy

Run load test on cloud infrastructure

>_ k6 cloud [script.js]
copy

Copied to clipboard
free 100$ digital ocean credit