Load Testing · Middle · Question 52 of 76
Why is TLS handshake cost often noticeable in load tests without connection reuse?
- 1Each new TLS connection needs extra round trips and CPU
- 2TLS forces requests to be sent one at a time
- 3Encryption makes response bodies twice as large
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.