API Response Time Calculator
Paste a list of API response times (in milliseconds) to instantly calculate p50, p75, p90, p95, and p99 percentile latencies, standard deviation, SLA compliance, and a distribution histogram. Accepts one value per line or comma-separated. Runs entirely in your browser.
Frequently Asked Questions
What is p95 latency and why does it matter more than average?▼
p95 (the 95th percentile) means 95% of your requests complete within that time. Unlike the average, percentile metrics are not skewed by a small number of very fast requests — they reflect the actual worst-case experience for most users. If your API has an average latency of 120ms but a p95 of 800ms, one in twenty users is waiting 6× longer than average. For SLA commitments, p95 and p99 are the standard metrics used by cloud providers, APM tools, and engineering teams because they capture the real tail of the distribution.
What is the difference between p95 and p99 latency?▼
p95 means 5% of requests are slower than that threshold; p99 means 1% are slower. p99 is the more conservative SLA target and is typically used for user-facing APIs where you want to ensure nearly every request is fast. p95 is commonly used for internal services or batch processing where occasional slow requests are more acceptable. A well-optimised API might target p95 < 200ms and p99 < 500ms. If your p99 is much higher than your p95, it indicates a heavy tail — usually caused by database lock contention, garbage collection pauses, or cold start effects.
What response time targets should I aim for?▼
Common industry benchmarks: user-perceived instant response is under 100ms; acceptable interactive response is 100–300ms; noticeable delay starts at 300ms; users lose focus at 1000ms (1s). For REST APIs: target p50 < 50ms, p95 < 200ms, p99 < 500ms for read endpoints. Write endpoints can be 2–3× slower. For background jobs, p99 < 5s is often acceptable. Google's Core Web Vitals target server response time (TTFB) under 800ms. The right target depends on your application type, user expectations, and infrastructure.
What does standard deviation tell me about my API latency?▼
Standard deviation measures the spread or consistency of your response times. A low standard deviation (relative to your mean) means your API responds consistently — predictable and easy to reason about. A high standard deviation means high variability: sometimes fast, sometimes slow. High variability is often worse than uniformly slow responses because it is hard to cache or retry effectively. Causes of high latency variance include: cold starts, connection pool exhaustion, GC pauses, hot database rows, network jitter, and bursty upstream dependencies. Aim for a standard deviation less than 50% of your mean.
How do I improve p99 latency specifically?▼
p99 is driven by your worst-case requests, so fixing it requires finding what makes slow requests slow. Common causes and fixes: (1) Database slow queries — add indexes, use EXPLAIN ANALYZE, cache hot reads. (2) N+1 queries — use eager loading or DataLoader. (3) Synchronous calls in hot paths — parallelise with Promise.all or async batching. (4) GC pressure in JVM/Node — tune heap size, reduce allocations. (5) Cold starts in serverless — use provisioned concurrency or keep-alive pings. (6) Connection pool exhaustion — increase pool size or use PgBouncer. Profile your slowest 1% of requests specifically — they often have a very different code path than fast requests.
What is an SLA and how do I define one for my API?▼
An SLA (Service Level Agreement) is a commitment about your service's reliability and performance. For APIs, a common format is: 'p99 latency < 500ms, measured over a rolling 5-minute window, for 99.9% of calendar months'. To define yours: (1) Collect real production latency data for at least 7 days. (2) Look at your p99 — set your SLA target slightly above your current p99 to give headroom. (3) Define the measurement window (per-minute, per-hour, rolling 24h). (4) Define consequences for breaches (customer credits, alerting). Common SLA tiers: Bronze = p95 < 1s, Silver = p95 < 500ms + p99 < 1s, Gold = p99 < 200ms. This calculator helps you validate whether your current data meets a proposed SLA target.
Related Products
on GumroadDeveloper Productivity Bundle
Stop rebuilding the same setup every project. 51 VSCode snippets, 40 Git aliases, 5 Docker Compose stacks, 5 GitHub Actions workflows, 5 README templates, and a dotfiles kit. Set up a professional dev environment in under an hour.
Buy on Gumroad →AI Prompt Engineering Toolkit
58 structured prompt templates for Claude, ChatGPT, and Gemini — organized by use case. Code Review, Debugging, Documentation, Architecture, and 10 model-specific tips. Stop writing prompts from scratch.
Buy on Gumroad →Developer Cheat Sheet Bundle
10 print-ready cheat sheets for the tools developers use every day: Git, Docker, Linux CLI, SQL, Regex, HTTP Status codes, VS Code shortcuts, Bash scripting, jq/JSON, and Markdown.
Buy on Gumroad →You Might Also Need
OpenAPI Validator
Paste your OpenAPI 3.x spec (YAML or JSON) to validate structure, find missing required fields, detect duplicate paths, check for missing operationIds, and get errors and warnings with path references.
Open free tool →
API Response Mock Generator
Generate realistic mock API responses with custom status codes, headers, and JSON body. Quick templates for 200, 401, 404, 429, 500 and more. Runs in your browser.
Open free tool →
API Response Time Tester
Test API endpoint response times directly from your browser. Run multiple requests, see average/min/max times, status codes, and response sizes. GET, POST, PUT, DELETE support. Free.
Open free tool →
More Free Tools
Related Articles
Serverless Cold Starts: How to Reduce Lambda Latency by 80%
Learn what causes AWS Lambda cold starts and how to reduce latency by 80%. Covers runtime comparison, Provisioned Concurrency, SnapStart, package optimization, and best practices.
API Rate Limiting: Algorithms and Implementation Guide 2026
Complete guide to API rate limiting in 2026. Token Bucket, Leaky Bucket, Sliding Window algorithms with Node.js and Redis implementations, distributed rate limiting, 429 handling, and best practices.
Axum vs Actix-web vs Poem: Best Rust Web Frameworks in 2026
A comprehensive comparison of Axum, Actix-web, and Poem — the top three Rust web frameworks in 2026. Covers performance benchmarks, ergonomics, middleware, ecosystem, and code examples to help you choose the right framework.
Hono vs Express: The New Node.js Server Framework Battle in 2026
A comprehensive comparison of Hono and Express in 2026 — performance benchmarks, middleware, TypeScript support, edge deployment, ecosystem maturity, and which framework to choose for your next API.
API Rate Limiting: Strategies, Algorithms, and Free Tools
A complete guide to API rate limiting in 2025: Fixed Window, Sliding Window, Token Bucket, and Leaky Bucket algorithms explained, with implementation in Node.js, Python, and Go, Redis-based distributed limiting, and client-side backoff strategies.
Enjoying this tool? Get more like it.
Weekly developer tool guides, productivity playbooks & AI tricks. Free. No spam.
Unlock AI-Powered Dev Tools
- ⚡ AI Code Review, Doc Generator & SQL Builder
- ⚡ All premium templates & early access
- ⚡ Member discounts on Gumroad products
$9/mo after trial · Cancel anytime
Want the full toolkit?
Get DevPlaybook Pro
Every template, guide, boilerplate, and automation script in one bundle. 13 premium products — grab them all at once and save big.
MIT licensed · Instant download · No subscription
See what's included → Browse all deals →