k6
Modern load testing tool using JavaScript. Write performance tests as code and catch regressions before production.
53 commands
Browse by Topic
Install k6 (macOS)
Install k6 load testing tool using Homebrew on macOS
Install k6 (Linux)
Install k6 load testing tool on Debian/Ubuntu Linux
Check k6 version
Verify k6 installation and display version info
Run test script
Run a k6 test script.
Run with VUs and duration
Run with 10 virtual users for 30 seconds.
Run with iterations
Run a fixed number of iterations.
Run with environment
Run with environment variable.
Run with tags
Run with custom tags.
Run with config file
Run with external config file.
HTTP debug mode
Log all HTTP requests and responses.
Skip setup/teardown
Skip setup and teardown functions.
Run paused
Start test paused, resume via API.
Custom log output
Write k6 logs to a file.
Multiple env variables
Pass multiple environment variables.
Inspect test script
Show test options without running.
Basic HTTP test
Basic HTTP GET test with check.
POST request
POST JSON data.
Multiple checks
Multiple response checks.
Group requests
Group related requests.
Sleep between requests
Add think time between requests.
Setup and teardown
Use setup/teardown for test lifecycle.
Custom metrics
Define custom metric types.
File upload
Upload a file in test.
JSON output
Output results to JSON file.
CSV output
Output results to CSV file.
InfluxDB output
Stream results to InfluxDB.
Summary export
Export summary to JSON.
Prometheus output
Send metrics to Prometheus.
StatsD output
Stream metrics to StatsD.
Multiple outputs
Send to multiple output backends.
Datadog output
Send metrics to Datadog via StatsD.
Login to cloud
Authenticate with k6 Cloud.
Run in cloud
Run test in k6 Cloud.
Stream to cloud
Run locally, stream to cloud.
Cloud with env token
Authenticate via environment variable.
List cloud tests
List recent cloud test runs.
Cloud with project ID
Run cloud test in specific project.
Discussion
Loading comments...