Load Testing · Junior · Question 18 of 75
What does this stages setting describe?
export const options = {
stages: [
{ duration: '2m', target: 100 },
{ duration: '5m', target: 100 },
{ duration: '1m', target: 0 },
],
};- 1Ramp up to 100 VUs, hold for 5 minutes, then ramp down
- 2100 VUs for 2 minutes, then a 5-minute pause, then a stop
- 3Three separate tests with 100, 100 and 0 requests in total
Show the answer
Correct answer: Ramp up to 100 VUs, hold for 5 minutes, then ramp down
Explanation
Each stage moves the VU count linearly to target over duration. This is the classic ramp-up, steady state and ramp-down shape.