/learning-k6

Primary LanguageJavaScript

Learning k6

Description

Welcome! This repository is a collection of k6-related things to help me understand what it is and how it works.

Installation docs on k6 found here.

How to run local tests with k6

Run k6 with the following command on the CLI:

k6 run script.js

Alt text

How to run load tests with more than one virtual user and a longer duration

Just as the title mentioned, here is the following command to run a 30 second, 10-VU load test:

k6 run --vus 10 --duration 30s script.js

Alt text

Getting Started and Tutorials

  • [] k6 installed
  • [] A clean directory to experiment in.
  • [] Something to do during the minute or two when k6 runs the longest example tests
  • [] Optional: jq to filter some results
  • See tutorials here

Sources used for learning: