Load Testing · Senior · Question 20 of 76

Why look at http_req_duration{expected_response:true} and not just http_req_duration?

Show the answer

Correct answer: Fast failures would otherwise make latency look better than it is

Explanation

k6 tags each request with expected_response. Latency of successful requests is what an SLO means. Errors are tracked by error rate.

Further reading

Problem with a question

Load Testing · Senior · question 20

Test yourself

Take the Load Testing · Senior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz