Server Response Time and Edge TTFB Percentiles Explained
Measure response latency from an edge worker and understand what the median, p90, p95, and p99 can tell you. Learn where a small synthetic sample differs from browser timing and production tail latency.
Measure server response time
Collect one to five synthetic response-header timings. These measurements do not load a page in a browser or establish a production p99.
Free to use — no signup required. Public demo limit: up to 2 requests per five minutes per IP, shared with the playground.
Measure server response time from the edge
For a quick latency check, open Response Time in the playground, enter a domain or full URL, and choose one to five samples. The public playground requires no account and has its own rate limits. The authenticated REST endpoint is available on Free and uses your plan’s quota.
This check sends sequential HEAD requests from the Cloudflare worker handling the request. If the server returns 405 or 501 for HEAD, the probe retries with GET. The result includes per-sample timings, an average, median, p90, p95, p99, and the number of failed samples. See the response-time API reference for all fields and parameters.
curl --get 'https://api.edgedns.dev/v1/domain/response-time' \
--data-urlencode 'domain=https://example.com/' \
--data-urlencode 'samples=5' \
-H 'Authorization: Bearer YOUR_API_KEY'What “edge TTFB percentiles” means in this check
TTFB (Time to First Byte) describes the wait before a response begins arriving. In a browser, it can include redirects, connection setup, and the wait for a server response. This endpoint observes elapsed time until fetch returns response headers from the probing worker. Its individual.ttfbMs and individual.totalMs use that same observable duration; they are not independently instrumented timing phases. A HEAD-to-GET retry includes the initial attempt in that elapsed duration.
These are synthetic worker-to-target measurements, not a distribution of real visitors or all Cloudflare locations. The worker cannot separate DNS, TCP, and TLS timing from this fetch. It also does not execute JavaScript, load page resources, or measure rendering. A CDN in front of the target may answer the probe, so this is not necessarily isolated origin-server processing time.
The web.dev TTFB guide explains browser timing and why it should be interpreted alongside the loading experience. For available real-user loading data, use the Core Web Vitals guide. TTFB itself is not a Core Web Vital.
Repeated identical URL-and-samples requests can return a cached measurement for up to five minutes. Inspect X-Cache, X-Cache-Age, and X-Cache-TTL response headers before treating another API request as a new measurement.
A worked percentile example, with illustrative values
Illustrative output, not a live measurement of example.com. Suppose five successful probes take 80, 100, 120, 140, and 900 ms. The average is 268 ms and the median is 120 ms. The larger gap between median and maximum is a reason to collect more observations, not proof of the cause.
EdgeDNS uses the nearest-rank method over successful samples: sort the values and choose position ceil(percentile × count / 100), counting from one. With only five observations, p90, p95, and p99 all select the fifth value, 900 ms. They are not three independently established tail estimates. This abbreviated response shows that calculation:
At the supported one-to-five sample sizes, p90, p95, and p99 always select the maximum successful observation. Do not use one call to claim a stable production p99 or an SLA percentile.
{
"data": {
"domain": "example.com",
"url": "https://example.com/",
"samples": 5,
"successfulSamples": 5,
"failedSamples": 0,
"timing": {
"min": 80,
"max": 900,
"avg": 268,
"median": 120,
"p90": 900,
"p95": 900,
"p99": 900,
"jitter": 820
},
"individual": [
{
"totalMs": 80,
"ttfbMs": 80,
"success": true
},
{
"totalMs": 100,
"ttfbMs": 100,
"success": true
},
{
"totalMs": 120,
"ttfbMs": 120,
"success": true
},
{
"totalMs": 140,
"ttfbMs": 140,
"success": true
},
{
"totalMs": 900,
"ttfbMs": 900,
"success": true
}
],
"serverTiming": [],
"status": "fast"
}
}Read timings and failures together
Percentiles exclude failed samples. If one probe times out, a quick median from the remaining probes does not erase that failure. If all probes fail, status is unreachable; the zero-valued aggregate fields are placeholders, not a zero-millisecond response.
A successful sample means fetch obtained a response. This endpoint does not use the target’s HTTP success status to decide that field, so a fast error page can look fast here. Use the HTTP status and response checker to examine the status, redirects, and errors.
| Field | How to use it |
|---|---|
timing.median | Middle successful duration. A quick typical value within this small sample. |
timing.avg | Arithmetic mean, rounded to milliseconds. Slow observations can raise it above the median. |
timing.p90 / p95 / p99 | Nearest-rank values from the successful observations. With no more than five samples, each equals the maximum. |
timing.jitter | Maximum minus minimum successful duration in this endpoint; not packet-level network jitter. |
successfulSamples / failedSamples | Read both counts before accepting a timing summary. Failed durations are excluded from aggregate statistics. |
serverTiming | Named durations supplied by the target’s Server-Timing header, averaged over samples reporting each name. These are optional, server-reported values. |
Use the performance band as a rough diagnostic
The endpoint labels the median fast below 800 ms, acceptable from 800 ms up to but below 1,800 ms, and slow at 1,800 ms or above. These are the current EdgeDNS implementation boundaries. The illustrative example is fast because its median is 120 ms, even though its slowest sample is 900 ms.
Those labels are not a Google ranking score or a guarantee about visitor experience. Browser-based TTFB guidance has a different measurement context, and a fast response can still load a slow page. Combine this check with page weight, compression, and real-user data when available.
Investigate a slow or inconsistent result
Start by confirming that you tested the intended URL and method, and that the result was fresh. Then use the HTTP checker to look for error pages or redirect chains. Keep path, protocol, and check settings consistent when comparing runs. Neither endpoint measures a full interactive browser session.
If the target publishes Server-Timing, review its named durations for clues such as database or rendering work. They are reported by the target, may overlap, and are not guaranteed to sum to the complete measured duration. Without those headers, this endpoint cannot attribute the delay to a database, DNS, TCP, or TLS phase.
For a production tail-latency view, collect enough fresh observations across time and relevant locations, keep failures in your availability reporting, and segment results by workload and cache behavior. Do not average p95 values from separate runs; retain the underlying observations and calculate the desired percentile across the comparable sample set. For geographic network diagnostics, see global network performance testing.
Related Free Tools
Related Guides
HTTP Checker: Check Server Status, Redirects, and Response Time
Check whether a URL responds as expected, see where it redirects, and understand its elapsed time and HTTPS result. Start with a browser check, then use the same endpoint in a deployment workflow.
Core Web Vitals: Understand and Use the Results
Synthetic headers timing and static optimization signals
Cache Headers: Understand and Use the Results
Analyze caching configuration
Need Programmatic Access?
Automate domain intelligence with 100+ API endpoints and a free MCP server for AI integration.