CDN Performance Metrics: What to Measure

· Priya Sharma · 4 min read

The Metrics That Matter

CDN performance isn't a single number. It's a collection of metrics, each revealing a different aspect of your content delivery quality. Tracking the right metrics lets you identify bottlenecks, validate configuration changes, and justify CDN investment.

Performance Comparison: Edge vs Origin Processing
Metric Edge Processing Origin Processing Improvement
Latency (p50)8–15 ms120–300 ms15–20x faster
Cache Hit Ratio85–95%N/AReduces origin load
TLS Handshake1–5 ms (nearby PoP)50–150 ms10–30x faster
Bandwidth Cost$0.01–0.04/GB$0.05–0.12/GB3–5x cheaper
Availability99.99% (multi-PoP)99.9% (single DC)10x fewer outages

Primary Metrics

Time to First Byte (TTFB)

Time from the client sending the request to receiving the first byte of the response. This is the most visible CDN performance metric.

Good: < 200ms (cache hit from nearby edge)
Acceptable: 200-600ms (cache miss or distant edge)
Poor: > 600ms (origin latency or network issues)

TTFB varies significantly between cache hits and misses. Track them separately: CDN hit TTFB should be 5-50ms; CDN miss TTFB depends on origin response time.

Cache Hit Ratio (CHR)

Percentage of requests served from cache. The most important metric for CDN effectiveness. See cache hit ratio optimization for improvement techniques.

CHR = cache_hits / total_requests × 100%

Target: > 90% for static content, > 50% for dynamic

Origin Response Time

How long the origin takes to respond to CDN requests. This affects cache miss TTFB and determines how fast the CDN can populate its cache.

Error Rate

Percentage of 4xx and 5xx responses. Track separately: client errors (4xx) vs server errors (5xx). A rising 5xx rate may indicate origin overload or CDN misconfiguration.

Secondary Metrics

MetricWhat It ShowsWhen to Watch
BandwidthTotal data served (CDN + origin)Cost management, capacity planning
Requests per SecondLoad volumeTraffic spikes, attack detection
Edge LatencyProcessing time at the edgeWAF overhead, edge compute impact
TLS Handshake TimeConnection setup overheadProtocol version optimization
Cache Eviction RateHow often cache entries are evictedCache sizing, TTL tuning

User-Facing Metrics

CDN metrics align closely with Core Web Vitals:

Request Timing — Latency breakdown across the CDN stackRequest Timing — Latency breakdown across the CDN stack CDN Request Flow — From Browser to Edge CDN Request Lifecycle Step 1 DNS Lookup Step 2 TCP Connect Step 3 TLS Handshake Step 4 Edge Server Step 5 Cache Check Step 6 Response Cache HIT → 5ms response Cache MISS → Fetch origin 0ms ~50ms (cache hit) ~200ms (cache miss)
Figure 2: Request Timing — Latency breakdown across the CDN stack

Monitoring Tools

Server Timing Header

Some CDNs add a Server-Timing header with performance breakdown:

Server-Timing: cdn-cache;desc=HIT, edge;dur=2.5, origin;dur=0

This reveals cache status and processing time without external monitoring tools. See CDN observability.

External References

References & Standards: RFC 7234 · Cloudflare documentation