Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
1 changed file
with
27 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# k6 | ||
|
||
> A modern load testing tool, using Go and JavaScript. | ||
- Run load test locally: | ||
|
||
`k6 run {{script.js}}` | ||
|
||
- Run load test locally with a given number of virtual users and duration: | ||
|
||
`k6 run --vus {{10}} --duration {{30s}} {{script.js}}` | ||
|
||
- Run load test locally with a given environment variable: | ||
|
||
`k6 run -e {{HOSTNAME=example.com}} {{script.js}}` | ||
|
||
- Run load test locally using InfluxDB to store results: | ||
|
||
`k6 run --out influxdb={{http://localhost:8086/k6db}} {{script.js}}` | ||
|
||
- Login to cloud service using secret token: | ||
|
||
`k6 login cloud --token {{secret}}` | ||
|
||
- Run load test on cloud infrastructure: | ||
|
||
`k6 cloud {{script.js}}` |