Fahad Anwar Muneer Contributor, 5centsCDN | Video Live Streaming | CDN | Restream

How to Benchmark a CDN for Video: A Practical Test Guide

Most CDN comparisons are measured on a tiny file, from probes sitting in data centers, with the cache already warm, and reported as an average. That recipe is quick to run and easy to chart, and it says very little about how a video viewer will fare. If you are choosing or re-evaluating a video CDN, you need to know how to benchmark a CDN in a way that matches how video is actually delivered.

Video is not a web page. A viewer pulls a long series of multi-megabyte segments, at a rate that has to keep ahead of playback, from a network path that changes as ISPs hand traffic around at the evening peak. This guide sets out a test design for that reality: what to measure, which tests answer which questions, how to run a fair comparison on live traffic, and how to read published benchmarks without being misled.

Why Most CDN Benchmarks Mislead Video Teams

Five habits account for most of the distortion, and each one favors some CDNs and hurts others for reasons unrelated to video.

Common habitWhy it misleadsWhat video needs instead
Testing a small objectA few kilobytes measures latency, not throughputReal segment sizes, measuring download time
Probing from data centersProbes sit in networks that carry little or no viewer traffic, so routing is not representativeMeasurements from the ISPs your audience uses
Measuring a warm cache onlyHides the cost of a miss, which live and long-tail video hit oftenCold and warm runs, reported separately
Reporting averagesThe average hides the slow tail, which is where viewers leavePercentiles (p50, p95, p99) with sample counts
Not saying how it was measuredTwo “faster” claims can describe different testsA stated method you can reproduce
Comparison of synthetic tests, real-user measurement and live traffic splits for benchmarking a CDN
Three ways to measure a CDN and what each one can and cannot see

What to Measure for Video

Start from the viewer’s experience and work backwards to the network. The metrics below are the ones that carry signal for video, and each has a different source.

MetricWhy it matters for videoWhere it comes from
Segment time to first byteDelay before each segment starts arriving; split by cache hit and missResource timing or player stats
Segment download time and throughputWhether segments arrive faster than they playResource timing or player stats
Error rate and timeoutsFailed segment requests cause stalls and quality dropsPlayer logs, CDN logs
Cache hit ratio and miss penaltyShows how much of the delivery depends on your originCDN logs
Startup timeTime from pressing play to the first framePlayer analytics
Rebuffer ratioShare of watch time spent stalledPlayer analytics
Delivered bitrate and its stabilityWhether viewers get the quality you encodedPlayer analytics

Report each of these as percentiles, not averages. A percentile such as p95 tells you the value that 95% of measurements stay under, so it describes the slow tail directly. For video, the tail matters more than the middle, because the viewers in it are the ones who abandon. Our guide to video analytics metrics covers the viewer-side measures, and why quality of experience monitoring matters explains why they belong beside delivery numbers. For what drives startup time specifically, see our guide to video startup time.

The throughput headroom test

The most useful video-specific number is simple. A segment has to download faster than it plays, or the buffer drains. A 6-second segment of a 6 Mbps rendition holds 36 megabits, which is 4.5 MB. To keep up, it must arrive in under 6 seconds, which means a delivery throughput above 6 Mbps. Divide measured throughput by the rendition’s bitrate to get headroom:

throughput = segment size (bits) / download time (s)

headroom   = throughput / rendition bitrate

Example: 4.5 MB segment (36 Mbit) downloaded in 2.4 s

  throughput = 36 / 2.4 = 15 Mbps

  headroom   = 15 / 6   = 2.5x

Same segment downloaded in 5.5 s

  throughput = 36 / 5.5 = about 6.5 Mbps

  headroom   = about 1.1x (almost no margin)

Headroom below 1 means the player cannot sustain that rendition at all. Headroom just above 1 means any wobble causes a stall or a step down. How much margin you need is a judgment, but comparing the lower tail of headroom between CDNs, on the same renditions, is one of the cleanest ways to rank them for video.

Timeline showing a 6-second video segment downloaded in 2.4 seconds and in 5.5 seconds, with throughput headroom for each
Throughput headroom a segment must download faster than it plays

In a browser, the Resource Timing specification exposes what you need for each segment request: the response start and end times, and the body size. Download time is the response end minus the response start. One caveat is that cross-origin requests only expose full timing detail when the server allows it, so confirm your CDN sends the right header before you rely on browser data. Many players also report per-segment download stats directly.

Synthetic Tests: Controlled and Repeatable

Synthetic tests send scripted requests from chosen locations on a schedule. Their strength is control. You can hold everything constant, repeat the test as often as you like, and compare two CDNs on identical terms. Their weakness is that they only see what the probe sees, and probes rarely look like your viewers. For a short refresher on the trade-offs, see MDN’s guide to RUM and synthetic monitoring.

To make synthetic tests useful for video:

  • Use your real origin and your real ladder. Test your actual manifests and segments, not a generic file, so that cache keys, byte ranges and segment sizes match production.
  • Choose probes to match your audience. Weight vantage points by where your viewers actually are, and prefer networks that carry consumer traffic over cloud regions.
  • Run cold and warm separately. A cold fetch measures the miss path through to your origin, a warm fetch measures the edge. Report both. An origin shield changes the cold numbers a great deal, so test with the configuration you will really use.
  • Test at your audience’s peak hours, in each region, not at 04:00 when every network is quiet.
  • Inject a failure. Block one edge location or break one origin path, and time how long recovery takes. A benchmark that never tests failure only measures good days.

One routing detail deserves care. When a CDN picks an edge location through DNS, the choice is often based on where the resolver is, not where the viewer is. A probe or a viewer using a distant public resolver can be sent to an edge that is far from them, and the test then measures the resolver’s location. Where you can, measure from the client’s own network and record which edge actually served each request.

Synthetic tests answer “which CDN is faster under controlled conditions?” and “did something regress?” They cannot answer “what will my viewers experience?”, which needs real users.

Real-User Tests: What Viewers Actually Get

Real-user measurement collects the same timings from your actual viewers’ devices. It captures the ISPs, the Wi-Fi, the mid-range phones and the congested evening peak that no probe reproduces. Our guide to real user monitoring covers the basics for websites. For video, you collect the video-specific metrics above, from the player or a video analytics SDK.

Real-user data is honest and noisy, so three disciplines make it usable for comparing CDNs:

  • Compare like with like. Segment by ISP (ASN), device class, connection type and region before you compare. A CDN that happened to serve more desktop viewers on fiber will look better for reasons that have nothing to do with the CDN.
  • Watch the tail on constrained networks. Filter to the slowest connections and compare CDNs on that slice. Medians converge. Tails do not.
  • Respect sample size. A p95 is decided by the slowest few percent of measurements. With 100 samples, that is only the slowest 5 values, so a single outlier moves it. With 1,000 samples it rests on the slowest 50. Publish the sample count next to every percentile.

The comparison only works if every measurement is labeled. Log these fields with each segment timing or session summary:

  • Which CDN served it, taken from the hostname or a response header, because a split test is meaningless without it.
  • The viewer’s network and place: ASN, country or region, and connection type.
  • The device class and player version, since device mix is the biggest confounder.
  • The rendition requested, so that throughput headroom can be calculated against the right bitrate.
  • Whether the response was a cache hit or a miss, where the CDN exposes it.

Real-user data alone cannot say which CDN caused a difference, because a single CDN serves each session. To isolate the CDN, you need to run both at once.

Set Up a Fair Test: The Parity Checklist

Before any comparison, make the two setups genuinely equivalent. Differences in configuration get measured as differences between CDNs, and they are the most common reason a benchmark picks the wrong winner.

Match thisWhat can differEffect on the result
Transport protocolsTLS version, HTTP/2 versus HTTP/3, connection reuseHandshake cost and loss recovery change startup and tail latency
Cache key and query stringsWhich parameters are ignored or includedFragmented cache keys lower hit ratio and raise origin load
Cache lifetimesTTLs for manifests and segmentsA short TTL on segments means more misses
CompressionManifest compression on or offChanges manifest size and start-up time
Token authenticationExpiry window, token validation pointExtra validation steps add delay or failures
Origin pathSame origin, same shield, same regionA different origin path changes every miss
Routing methodDNS-based or anycast, TTL on recordsChanges which edge each viewer reaches

Write the matched settings down. If you cannot make a setting identical because the platforms differ, record the difference and keep it in mind when you read the results.

The Gold Standard: Split Live Traffic Between CDNs

The cleanest comparison is a live A/B test. Send a share of your real viewers to the challenger CDN while the incumbent serves the rest, and compare the real-user metrics for each group over the same period. Because both groups are watching the same content on the same player at the same time, most confounders cancel out.

Diagram of a live traffic split test sending viewers randomly by session to two CDNs and comparing real-user metrics
A live traffic split random assignment by session one set of real user metrics

Design the test deliberately:

  • Randomize by session, not by region or time of day. If one CDN gets all of one country, you are comparing countries.
  • Start small. A slice such as 5 to 10% limits risk, and you can raise it once the numbers look safe.
  • Keep everything else identical: the same ladder, player, manifest, protocol versions and cache settings. Differences in TLS, HTTP/3 or compression between the two setups will be measured as CDN differences.
  • Expect a cold-cache penalty. A newly added CDN starts with an empty cache and looks slower at first. Let it warm, and exclude or flag the first stretch.
  • Run long enough to cover peaks and weekends, typically at least a week or two, so each region’s busy period is in the sample.
  • Fix your decision rule in advance. Choose the metrics, the segments and the size of difference that would change your mind before you look at the data.
  • Keep a fallback. Steering rules that move viewers off a misbehaving CDN let you run the test safely. See multi-CDN setup, our explainer on what multi-CDN is and our guide to content steering.

Reading the Results: Weight by Audience, Look at the Tail

Once the data is in, resist the single winner-takes-all number. Weight each region by its share of your audience, and look at the tail by region as well as the blend. Here is an illustrative example of two CDNs, with p95 startup time in seconds across three regions that carry 50%, 30% and 20% of sessions.

p95 startup time (s)Region 1 (50%)Region 2 (30%)Region 3 (20%)Weighted
CDN A1.82.63.42.36
CDN B1.72.93.02.32

CDN B wins by a hair overall, 2.32 against 2.36 seconds, a gap of under 2%. That is close to a tie. But CDN B is 0.3 seconds slower in Region 2, about 12% worse, and that region has nearly a third of your viewers. The blended number hides the fact that the two CDNs are good in different places. In that case, the answer may be to use both, steering each region to the one that serves it best.

Bar chart comparing p95 startup time of two CDNs across three regions, with a nearly tied weighted average
A blended average hides regional differences between two CDNs

Regional gaps often come from routing and peering rather than raw capacity, which is the subject of our guide to regional CDN performance. And measured results are also your best leverage in a renewal: our guide to a CDN contract audit shows how to turn data like this into negotiating strength.

Beyond Speed: What Else a Benchmark Should Cover

A CDN that wins on startup time can still be the wrong choice. Add the dimensions that speed tests leave out:

  • Behavior under failure. Use your failure drill to see how quickly traffic recovers and what viewers see in the meantime.
  • Price at your real traffic shape. Work out the monthly cost using your own volumes and peaks, including any overage terms, not the headline rate.
  • Support during an incident. Open a realistic test ticket and note how long a useful answer takes and whether it comes from someone who can see your traffic.
  • Visibility. Check whether you get logs and analytics detailed enough to run this very benchmark again next year.

These do not fit in a latency chart, but they often decide the outcome once two CDNs are close on performance.

Reading Someone Else’s Benchmark

You will meet published benchmarks, including from vendors, long before you run your own. Treat each one as a claim to be interrogated. These questions tell you whether it can be compared with your situation at all:

AskWhy it matters
What object was fetched, and how large was it?Small objects measure latency; segments measure throughput
Where did the probes run?Data-center probes can flatter or punish a CDN for routing reasons
Was the cache warm or cold?The two can differ by a wide margin
Were connections reused, and which protocol versions?Handshake costs and HTTP version change the result
Which statistic was reported?A median hides the tail, so look for p95 and p99
How many samples, over how long?A short run or small sample can be dominated by noise
Who ran it, and could you reproduce it?A test you cannot repeat is a marketing statement

How to Benchmark a CDN: A Two-Week Plan

Putting it together, here is a practical sequence you can follow:

  1. Define the audience and the pass criteria. List your regions and ISPs by share of sessions, and write down the metrics and thresholds that would make a CDN acceptable.
  2. Baseline what you have. Measure your current setup with free tools such as the Network Tools (latency, DNS, SSL, HTTP, traceroute and per-network checks), so that later numbers have something to compare with.
  3. Run parity checks. Confirm that both CDNs are configured the same way for protocol, caching, compression and token handling, and check your manifests with the Stream Tester.
  4. Run synthetic tests, cold and warm, at peak hours, including a failure drill.
  5. Start a live split of 5 to 10% by session, with a fallback in place.
  6. Let it run through a full week or two, then compare by region, ASN and the slowest connections, weighting by audience share.
  7. Decide against your pre-set rule, then widen the split or move traffic in stages.

Common Mistakes

MistakeWhat to do instead
Declaring a winner from one runRepeat across days, peaks and regions
Comparing CDNs with different settingsMatch protocol, cache, compression and token settings first
Using averagesUse p50, p95 and p99, with sample counts
Judging the new CDN while its cache is coldAllow a warm-up period, and report cold results separately
Assigning traffic by region or timeRandomize by session
Ignoring errorsReport error and timeout rates beside speed
Testing only when networks are quietInclude each region’s peak hours
Choosing on speed aloneWeigh cost, support and failure behavior as well

Where 5centsCDN Fits

You can baseline your audience’s networks with the free Network Tools, and 5centsCDN’s Compare CDN Performance page runs a live real-user test from your own location, with figures you can check by region. When you are ready to test on live traffic, our team can help you design the split with multi-CDN delivery. To plan a benchmark with us, talk to our team.

Frequently Asked Questions

How do you benchmark a CDN for video streaming?

Measure segment-level delivery (time to first byte, download time, throughput headroom and errors) and viewer-level quality (startup time, rebuffer ratio and delivered bitrate), as percentiles, from your audience’s real networks. Use synthetic tests for controlled comparisons and a live traffic split for the real answer.

Which metrics matter most when comparing video CDNs?

Throughput headroom on your real renditions, rebuffer ratio, startup time and error rate, reported at p95 and p99. These describe the slow tail, which is where viewers abandon. Averages and ping times say far less.

Should I use real-user monitoring or synthetic tests?

Both, for different questions. Synthetic tests give controlled, repeatable comparisons and catch regressions. Real-user measurement shows what viewers experience. A live traffic split combines the strengths of both.

How long should a CDN test run?

Long enough to include each region’s peak hours and a weekend, usually at least a week or two. A short run on a quiet day can favor whichever CDN copes best with low load.

How many samples do I need for a reliable p95?

More than you might expect. A p95 is set by the slowest 5% of measurements, so with 100 samples it rests on only 5 values. Collect hundreds or thousands per region and CDN, and publish the count alongside each percentile.

Why do vendor benchmarks differ from my own results?

Because the tests differ: object size, probe locations, cache state, protocol, statistic and time window can each change the result. Ask for the method, and trust a benchmark only when you can reproduce it on your own audience.