Skip to main content
web

Time to First Byte (TTFB)

Time to First Byte (TTFB) is the duration from when a client sends an HTTP request to when it receives the first byte of the response. TTFB includes DNS lookup, TCP connection, TLS handshake, server processing, and network transit. Google's Core Web Vitals threshold is TTFB under 800ms for a 'good' score.

Definition

TTFB measures the full end-to-end latency to start receiving a response. It breaks down as: DNS resolution time + TCP connection time + TLS handshake time + server processing time + time for first byte to travel back. CDNs reduce TTFB by bringing the server physically closer to the user. Database query optimization reduces server processing time. TLS 1.3 and HTTP/3 reduce handshake time. TTFB is a leading indicator of page performance – every millisecond of TTFB directly delays all subsequent page loading.

Examples

  • Good TTFB: < 800ms (Google)
  • Needs improvement: 800ms–1800ms
  • Poor TTFB: > 1800ms

Related Protocols

Related Terms