Load stages

Load stages describe a workload as a list of duration and target pairs, allowing traffic to increase or decrease gradually. A gradual ramp helps reveal the load level at which latency or errors begin to degrade.

Minimal example

javascript
stages: [{ duration: '30s', target: 10 }, { duration: '1m', target: 30 }]

Learn this concept

Lesson 6.7 · k6 workload models

Used in exercises

Exercise 6.11 · Browse and order k6 scripts
Prerequisite conceptsLoad testVirtual user