Load Testing · Middle · Question 52 of 76

Why is TLS handshake cost often noticeable in load tests without connection reuse?

Show the answer

Correct answer: Each new TLS connection needs extra round trips and CPU

Explanation

With keep-alive the handshake happens once per connection. If every request opens a new connection, server CPU and latency grow. k6 shows it in http_req_tls_handshaking.

Further reading

Problem with a question

Load Testing · Middle · question 52

Test yourself

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

Take this quiz