Load Testing · Junior · Question 54 of 75
What does group() do in k6?
- 1Groups requests under a name so the summary shows them together
- 2Sends several HTTP requests in parallel in one call
- 3Runs several virtual users in one shared JavaScript runtime
Show the answer
Correct answer: Groups requests under a name so the summary shows them together
Explanation
Groups organize a script into steps like "login" or "checkout". k6 reports a group_duration metric per group.