Latency Numbers Every Engineer Should Know: The 2026 Edition and How to Budget a Request
A product page renders in 40 ms in staging. In production it takes 450 ms. The code is identical. The difference: in staging, the page’s 180 calls to a feature-flag cache hit an in-process map. In production, a well-meaning refactor moved the flags to a shared cache in the same availability zone. Each lookup is now a network round trip of about half a millisecond instead of about a hundred nanoseconds. 180 sequential lookups at 0.5 ms each is 90 ms, plus queueing, plus the long tail.
Another team moves a reporting service to a cheaper region on the other side of the Atlantic. Its database stays where it was. Every query now crosses the ocean, 80 ms each way and back, and a page that issues 12 sequential queries gains a full second.
Neither team wrote slow code. They put a fast operation behind a slow distance and multiplied it. The fix in both cases starts with knowing, roughly, what every operation costs.
What these numbers are
“Latency numbers every programmer should know” is a list popularised by Jeff Dean and Peter Norvig, and widely shared in a version with 2012 figures. It gives order of magnitude costs for operations from an L1 cache hit to a transatlantic round trip. The exact values are not the point. The ratios are: memory is about 100 times slower than L1 cache, a data centre round trip is thousands of times slower than memory, and a cross-continent round trip is hundreds of times slower than that.
This article gives a 2026 version, explains what each tier implies for design, and shows how to use the numbers to budget a request.
How the latency ladder works
Try the widget first. Tap a row to compare everything against it, and switch on human scale, where 1 ns lasts one second. On that scale a main memory read takes under two minutes, an NVMe read takes several hours, and a round trip from the US to Australia takes over six years.
The numbers group into tiers, each roughly 100 to 1,000 times slower than the one before:
| Operation | Typical 2026 latency | Order of magnitude |
|---|---|---|
| L1 cache reference | about 1 ns | nanoseconds |
| L2 cache reference | about 4 ns | nanoseconds |
| Uncontended mutex lock and unlock | about 15 to 20 ns | nanoseconds |
| Main memory reference | about 100 ns | 100 nanoseconds |
| Compress 1 KB with a fast codec (Zstd, Snappy, LZ4) | about 1 to 2 µs | microseconds |
| Read 1 MB sequentially from memory | about 10 to 50 µs | tens of microseconds |
| NVMe SSD random 4 KB read | about 20 to 100 µs | tens of microseconds |
| Read 1 MB sequentially from local NVMe | about 100 to 200 µs | 100 microseconds |
| Round trip within one availability zone | about 0.1 to 0.5 ms | sub-millisecond |
| Round trip between availability zones in a region | about 0.5 to 2 ms | about a millisecond |
| Network block storage read (cloud volume) | about 0.5 to a few ms | milliseconds |
| HDD seek | about 5 to 10 ms | milliseconds |
| Object storage first byte (standard tier) | about 100 to 200 ms for small objects | 100 milliseconds |
| Round trip US East to US West | about 60 to 70 ms | tens of milliseconds |
| Round trip US East to Western Europe | about 75 to 90 ms | tens of milliseconds |
| Round trip US to India, Australia or Southeast Asia | about 180 to 250 ms | hundreds of milliseconds |
Ranges are deliberate. NVMe drives vary several fold by model and queue depth, same-zone round trips depend on instance type and network stack, and wide-area round trips depend on the actual fiber path, not the map distance. For the object storage row, AWS documents roughly 100 to 200 ms first-byte latency for S3 Standard and single-digit milliseconds for S3 Express One Zone, which places data in a single zone next to compute.
The tiers in one picture
flowchart LR A["CPU caches<br/>1 to 20 ns"] -->|"about 100x"| B["Main memory<br/>100 ns"] B -->|"about 200x to 1,000x"| C["Local NVMe<br/>20 to 100 µs"] C -->|"about 5x to 10x"| D["Same-AZ network<br/>0.1 to 0.5 ms"] D -->|"about 3x"| E["Cross-AZ<br/>0.5 to 2 ms"] E -->|"about 50x"| F["Cross-region<br/>60 to 90 ms"] F -->|"about 3x"| G["Cross-continent<br/>about 200 ms"] style A fill:#E1F5EE,stroke:#0F6E56,color:#085041 style B fill:#E1F5EE,stroke:#0F6E56,color:#085041 style C fill:#EEEDFE,stroke:#534AB7,color:#3C3489 style D fill:#EEEDFE,stroke:#534AB7,color:#3C3489 style E fill:#FAEEDA,stroke:#854F0B,color:#633806 style F fill:#FCEBEB,stroke:#A32D2D,color:#791F1F style G fill:#FCEBEB,stroke:#A32D2D,color:#791F1F
Why the wide-area numbers are what they are
Light in optical fiber travels at about 200,000 km per second, two thirds of its speed in vacuum. That is 5 µs per kilometre one way, or 1 ms of round trip per 100 km of fiber. New York to London is about 5,600 km in a straight line, so the physical floor is about 56 ms round trip. Real paths are longer than great circles and pass through routers, so measured round trips are typically 70 to 80 ms. No amount of engineering removes this floor. The only fix is to move the data or the computation closer to the user, which is what CDNs and multi-region architecture do.
What each tier implies for design
CPU cache and memory (nanoseconds). Work done in memory is effectively free compared with anything that crosses a network. A lookup in an in-process hash map costs about 100 ns; the same lookup in a remote cache costs about 500 µs, 5,000 times more. In-process caches are the fastest cache you will ever have; their cost is staleness and memory per instance, covered in cache patterns.
Local NVMe (tens of microseconds). Fast enough that a database on local NVMe can serve point reads from disk in well under a millisecond. This is why modern storage engines are designed around SSD characteristics; see storage engines. The trade-off is that local disks disappear with the instance, so durability needs replication.
Same-zone network (sub-millisecond). A call to another service or a cache in the same zone costs a few hundred microseconds. Cheap once, expensive in a loop. Ten sequential calls are several milliseconds before any work. Batch (one multi-get instead of 50 gets) and parallelise independent calls.
Cross-zone (about a millisecond). Synchronous replication across zones adds roughly a cross-zone round trip to every commit. That is affordable, which is why multi-zone databases with synchronous replicas are the standard high availability setup. Chatty service-to-service traffic across zones adds up and also costs money for data transfer on most clouds.
Cross-region (tens of milliseconds). Any design that needs a synchronous round trip to another region on every write pays 60 to 90 ms or more per write. Strongly consistent multi-region databases do exactly that, by design, which is the latency side of the trade-off in CAP and PACELC. Default to keeping a request’s critical path inside one region.
Cross-continent (about 200 ms). A single round trip is a noticeable fraction of a second. Users far from your origin pay this for every uncached request and for every connection setup handshake. Terminate connections and cache content near them.
How the numbers changed since 2012
The famous list carries 2012 figures. Fourteen years later some numbers barely moved and others improved by an order of magnitude.
| Operation | 2012 list | 2026 typical | What changed |
|---|---|---|---|
| L1 cache reference | 0.5 ns | about 1 ns | Roughly the same; a few cycles at 3 to 5 GHz |
| Main memory reference | 100 ns | about 100 ns | Flat. DRAM latency has barely improved; bandwidth has |
| Compress 1 KB | 3 µs | 1 to 2 µs | Faster codecs (Zstd, LZ4) and CPUs |
| SSD random 4 KB read | 150 µs | 20 to 100 µs | SATA SSD to NVMe |
| Read 1 MB sequentially from SSD | 1 ms | 100 to 200 µs | NVMe drives read 5 to 14 GB/s |
| Read 1 MB sequentially from memory | 250 µs | 10 to 50 µs | Much higher memory bandwidth |
| Round trip in the same data centre | 500 µs | 100 to 500 µs | Somewhat faster; cloud virtualisation adds overhead back |
| Send 1 KB over the network | 10 µs at 1 Gbps | under 1 µs at 25 to 100 Gbps | Server NICs went from 1 Gbps to tens of Gbps |
| Disk seek | 10 ms | 5 to 10 ms | HDDs are the same mechanical devices |
| Round trip California to Netherlands | 150 ms | about 140 to 150 ms | Physics did not change |
Three lessons fall out:
- Storage and bandwidth got an order of magnitude faster; latency of light and DRAM did not. In 2012, a random disk read dominated many request budgets. In 2026, with NVMe, the network hop to the database usually costs more than the disk read inside it.
- The network hop is now the unit of cost. Count round trips, not instructions. A design with three sequential service calls is slower than one with 30 in-memory operations.
- Core counts grew more than single-core speed. Throughput per server is far higher than in 2012, but single-request latency improves only by parallelising work, not by waiting for faster cores.
Worked example: budgeting a request
A latency budget splits a target (say a p99 of 200 ms for an API response) across everything the request does, so each team knows what it can spend.
sequenceDiagram participant U as User in Europe participant E as Edge PoP participant A as API in eu-west participant C as Cache same AZ participant D as DB cross-AZ U->>E: request over warm connection, about 20 ms RTT E->>A: forward over warm connection, about 10 ms RTT A->>C: multi-get session and flags, 0.5 ms par parallel fan-out A->>D: query 1, 2 ms and A->>D: query 2, 2 ms end A->>D: dependent query 3, 2 ms A-->>E: response E-->>U: response
Where it breaks: misconceptions
“The numbers are exact.” They are order of magnitude. Use ranges, and measure your own environment. Cloud providers publish general characteristics, such as AWS describing inter-AZ latency as single-digit milliseconds, but the number for your instance pair is what matters.
“Averages tell the story.” These are typical latencies. Under load, every tier develops a tail: NVMe latency rises under deep queues, network round trips spike with retransmits and congestion, and memory access slows when caches thrash. A budget built from medians must leave room for tails; latency vs throughput explains why the tail grows with utilisation.
“Bandwidth and latency are the same thing.” A 100 Gbps link moves bytes fast but does not make the first byte arrive sooner. A 1 MB transfer at 100 Gbps takes 80 µs of transmission, but a cross-region round trip to request it still takes 80 ms.
“Faster hardware fixes it.” Faster hardware does nothing for a design with 12 sequential cross-region calls. Only fewer round trips, closer data or parallel calls fix that.
“Connection setup is free.” Every new TCP connection costs one round trip and TLS 1.3 adds another. Over a 200 ms path, a cold connection costs 400 ms before the first request byte. Connection reuse is covered in how the internet works and HTTP semantics and versions.
Real-world systems and the numbers they live by
- Synchronous replication in Postgres (
synchronous_commitwith a synchronous standby) makes each commit wait for the standby to confirm. Put the standby in another zone and every commit pays about a cross-zone round trip; put it in another region and every commit pays tens of milliseconds. - Google Spanner in multi-region configurations replicates writes with Paxos across regions, so write latency includes cross-region round trips. That is the price of its external consistency.
- Object storage: S3 Standard is designed for throughput and durability, with first-byte latency around 100 to 200 ms for small objects; S3 Express One Zone trades multi-zone durability placement for single-digit millisecond access.
- Redis and Valkey process commands in memory in microseconds, so a cache call in the same zone is dominated by the network round trip, not by the server. Pipelining and multi-key commands exist to amortise round trips.
How to apply it
A checklist for any design:
- Write the latency target as a p99, then subtract the user-to-edge network time to get the server budget.
- Count sequential network round trips on the critical path. Each same-zone hop is about 0.5 ms, cross-zone about 1 ms, cross-region 60 ms or more.
- Batch lookups to the same store and run independent calls in parallel.
- Keep the critical path inside one region. Cross-region work goes asynchronous where possible.
- Reuse connections everywhere: client to edge, edge to origin, service to service, service to database.
- Cache hot, read-mostly data in process when staleness is acceptable.
- Reserve 30% to 50% of the budget for tail effects.
Interview angle
Interview questions
Q1: A service makes 20 sequential calls to a cache in the same availability zone for each request. Is that a problem?
Probably. At about 0.5 ms per round trip, 20 sequential calls cost about 10 ms before queueing and tails, and the tail multiplies because the request is only as fast as the sum of all 20. The fix is to batch them into one multi-get (one round trip) or to pipeline them, and to ask whether some values can be cached in process. If the calls depend on each other, restructure so the dependency chain is shorter.
Q2: Why does synchronous replication across regions hurt write latency so much, and what are the alternatives?
Each write must reach the remote region and be acknowledged before the client is told it committed, so every write pays at least one cross-region round trip, 60 to 90 ms within a continent and 150 ms or more across oceans. Alternatives: replicate asynchronously and accept a recovery point objective greater than zero; keep each user’s data homed in one region and write there synchronously; or use a multi-region consensus database and accept the latency only for the writes that truly need global strong consistency. The disaster recovery trade-offs are in backups and disaster recovery.
Q3: Which numbers in the classic 2012 latency list are most out of date, and why does it matter?
Storage and bandwidth numbers. SSD random reads improved from about 150 µs to tens of microseconds with NVMe, sequential SSD reads from 1 ms per MB to 100 to 200 µs, and server NICs from 1 Gbps to tens of Gbps. Memory latency and wide-area round trips did not change, because DRAM latency has been flat and the speed of light is fixed. It matters because in 2026 the network round trip, not the disk, usually dominates request latency, so designs should minimise round trips and distance rather than disk reads.
✅ Key takeaways
- Learn the tiers, not the digits: about 1 ns cache, 100 ns memory, tens of µs NVMe, sub-ms same zone, about 1 ms cross zone, 60 to 90 ms cross region, about 200 ms across the planet.
- Light in fiber costs about 1 ms of round trip per 100 km. Only moving data closer fixes wide-area latency.
- Since 2012, storage and bandwidth improved by an order of magnitude; memory latency and the speed of light did not. Round trips are now the unit of cost.
- Budget a request by subtracting user network time from the target, then counting sequential round trips on the critical path.
- Batch, parallelise, reuse connections and keep the critical path in one region.
🧠 Check your understanding
0 / 4-
1Roughly how much slower is a same-zone network round trip than a main memory reference?
About 0.5 ms versus about 100 ns is a factor of about 5,000. People often guess much lower because both feel fast, which is how loops of remote calls sneak into hot paths.
-
2Which classic 2012 latency number has improved the most by 2026?
NVMe took sequential SSD reads from about 1 ms per MB to about 100 to 200 µs. Main memory latency is flat, the transatlantic round trip is set by physics, and HDD seeks are still mechanical.
-
3An API in one region issues three sequential queries to a database in another region 80 ms away. What is the minimum database time per request?
Each sequential query costs at least one cross-region round trip, so 3 x 80 ms = 240 ms. Parallelising independent queries would cut it toward 80 ms, but only moving the database or the API fixes it.
-
4A 1 MB response is sent over a 100 Gbps link across a region pair with an 80 ms round trip. What dominates the time to receive it?
Transmitting 1 MB at 100 Gbps takes about 80 µs, a thousand times less than the 80 ms round trip. High bandwidth does not make the first byte arrive sooner.
Where to go next
- How the internet works: where the round trips in DNS, TCP and TLS come from, and how to avoid paying them repeatedly.
- Latency vs throughput: why latency grows with load and why the tail matters more than the median.
- CDN and edge caching: the main tool for beating the speed of light for far-away users.
- Multi-region architecture: when the cross-region numbers are worth paying and how to keep them off the critical path.
Finished this lesson?
Mark it complete to track your progress across the roadmap.