network · network/ch14/ch14-2

curl은 DNS부터 첫 바이트까지 HTTP 요청 시간을 쪼개 보여준다

전체 시간이 느릴 때 어느 단계가 느린지 분리하면 DNS, TCP, TLS, 서버 처리 중 원인 후보가 좁혀집니다.

curl 누적 워터폴

0msDNSTCPTLSTTFBtotal
DNS time_namelookup

이름 해석 완료

TCP time_connect

3-way handshake 완료

TLS time_appconnect

HTTPS 핸드셰이크 완료

Server processing

요청 처리 대기

TTFB time_starttransfer

첫 바이트 도착

각 time_* 값은 해당 구간 길이가 아니라 요청 시작점부터 누적된 완료 시점이다.