Interactive Latency Numbers
The classic latency table rescaled to human time, with ratio queries and tier filters.
Scale & selection
20 reference valuesPick an anchor, a tier and two rows to compare. All values are order-of-magnitude references, not measurements on your hardware.
Current scale
1 ns raw = 1 s human
Main memory reference is 200× slower than L1 cache reference.
CPU cache hit (Dean, 2001 talk)
Source lineage: Jeff Dean (2001) and Peter Norvig's updates; per-row provenance is in the table below.
Human-scale table
20 rows · fastest first| Operation | Raw | Human scale | Tier |
|---|---|---|---|
| L1 cache reference | 0.5 ns | 500 ms | CPU |
| Branch mispredict | 5 ns | 5 s | CPU |
| L2 cache reference | 7 ns | 7 s | CPU |
| Mutex lock/unlock | 25 ns | 25 s | CPU |
| L3 cache reference | 40 ns | 40 s | CPU |
| Main memory reference | 100 ns | 1.7 minutes | Memory |
| Cache miss to DRAM | 120 ns | 2 minutes | Memory |
| Lightweight syscall | 1 µs | 17 minutes | Other |
| Compress 1 KB (Snappy) | 3 µs | 50 minutes | Other |
| SSD random read | 150 µs | 1.7 days | Storage |
| Read 1 MB sequentially from memory | 250 µs | 2.9 days | Memory |
| Round trip within same datacenter | 500 µs | 5.8 days | Network |
| Read 1 MB sequentially from SSD | 1 ms | 12 days | Storage |
| Disk seek | 10 ms | 3.8 months | Storage |
| Read 1 MB sequentially from disk | 20 ms | 7.6 months | Storage |
| Round trip cross-datacenter | 30 ms | 11 months | Network |
| TLS handshake | 50 ms | 1.6 years | Network |
| Packet US → Europe → US | 150 ms | 4.8 years | Network |
| Cross-continent round trip (satellite) | 600 ms | 19 years | Network |
| Read 1 GB sequentially from disk | 20 s | 634 years | Storage |
Main memory reference is 200× slower than L1 cache reference.
Examples
Classic anchor
1 ns = 1 s, main memory 100 ns100 s (displayed as 1.7 minutes)The raw and human columns use different unit thresholds, so the human column promotes 100 seconds to minutes.
Cross-continent RTT
150 ms at the classic anchorAbout 4.8 years1.5e8 seconds divided by 365.25 days per year yields the familiar five-year talking point.
Ratio
Main memory 100 ns vs L1 0.5 ns200× slowerSelection order is normalized: the faster operation is always the denominator.
About this tool
Interactive Latency Numbers is a teaching version of the famous 'latency numbers every programmer should know' table. Twenty reference values span L1 cache hits at around half a nanosecond to cross-continent network round trips measured in hundreds of milliseconds. Each row keeps its raw duration in view while a second column rescales it to human time, turning abstract orders of magnitude into seconds, days and years.
The classic anchor maps one nanosecond to one second. Under that mapping a main-memory reference reads as 100 seconds and a cross-continent round trip becomes roughly five years. You can also choose a microsecond or workday anchor, or enter your own raw-duration-to-human-seconds mapping; the entire table renormalizes immediately.
Ratio mode compares any two rows. The larger latency is divided by the smaller, so the answer is always expressed as 'X is N× slower than Y' regardless of which row you picked first. Tier filters isolate CPU, memory, storage, network and miscellaneous operations, and a sort toggle flips between fastest-first and slowest-first.
The table can be copied or downloaded as Markdown, including the active anchor note and the current ratio line, ready for a slide deck, design document or architecture review. Everything is computed in the browser from a bundled dataset; nothing is measured on your machine and nothing is uploaded.
What this tool does not do
- The dataset is a fixed reference table, not a benchmark and not a hardware recommendation.
- Modern hardware can be substantially faster than these historical figures; per-row notes identify the lineage.
- Human-time formatting rounds to one decimal below ten and to whole units above, so exact values belong in the raw column.
- Bars use a log scale with a 6% minimum width and are decorative; the table carries the accessible data.
- Tier names are editorial groupings, not official hardware classifications.
How to use this tool
Choose an anchor
Start with the classic 1 ns = 1 s preset, or pick a microsecond/workday preset. Select Custom to enter any raw duration in nanoseconds and the human seconds it should map to.
Narrow the table
Use the Tier chips to show only CPU, memory, storage, network or other operations. Toggle Sort to see the largest latencies first.
Compare two rows
Pick any two entries in the Compare selects. The ratio panel reports the normalized multiplier and narrates which operation is slower.
Try an example
Example chips load the classic scale, a memory-vs-network comparison, a storage-only view, or an invalid anchor that demonstrates the error state.
Copy for slides
Copy .md or Download .md in the output panel to paste the complete scaled table and ratio line into a document or presentation.
Use cases
Architecture reviews
Quantify why a remote call dominates a local cache lookup when discussing a design trade-off.
Teaching and mentoring
Turn a static table into an interactive explanation of orders of magnitude for new engineers.
Conference talks
Copy the scaled table as Markdown and paste it into slide notes or a handout.
Reference checks
Quickly confirm the rough ratio between two hardware tiers without doing exponent arithmetic by hand.
Scale anchors and units
| Control | Effect |
|---|---|
| 1 ns = 1 s | Classic Dean/Norvig scale: 100 ns of DRAM becomes 100 human seconds |
| 1 µs = 1 s | Compresses the table by 1,000×; useful for storage and network rows |
| 1 ms = 1 workday | Compresses by 86,400,000×; makes very large latencies readable |
| Custom | Any positive nanosecond duration mapped to any positive number of human seconds |
| Raw column | Always shows the original value in ns, µs, ms or s |
An anchor of zero or a negative value pauses renormalization and shows an inline error; your other settings are kept.
Common mistakes
Mistake:Treating the numbers as measurements of your own hardware.
Fix:They are order-of-magnitude references from Jeff Dean's 2001 talk and Peter Norvig's later updates; modern NVMe and networks differ.
Mistake:Expecting '100 s' in the human column at the classic anchor.
Fix:The formatter promotes 60+ seconds to minutes, hours, days or years; the raw column still reads 100 ns.
Mistake:Reading the ratio as selection-order dependent.
Fix:The tool normalizes the pair: the slower operation is always divided by the faster one.
Mistake:Entering a zero anchor to 'turn scaling off'.
Fix:Both anchor values must be positive; the tool shows an error and keeps your other settings.
Mistake:Using a log bar width as a linear comparison.
Fix:Bars use a logarithmic scale with a minimum width so small entries remain visible; read the raw column for exact values.
Frequently asked questions
Where do these numbers come from?
They follow the lineage of Jeff Dean's 2001 'Numbers Every Programmer Should Know' talk and Peter Norvig's later updates. Each bundled row carries a short provenance note. They are order-of-magnitude reference values, not benchmark results from your machine.
Why is a network call so slow compared with memory?
A DRAM reference is around 100 ns while a same-datacenter round trip is roughly 0.5 ms — about 5,000× slower — and a cross-continent trip can be 1.5 million times slower. Most of that gap is physical: signals travel at a finite speed, packets are serialized and routers queue traffic. Use the Compare selectors to see the exact ratio for any pair.
What does the human-scale column mean?
It maps the raw duration through your chosen anchor. With the classic 1 ns = 1 s anchor, 100 ns of memory latency becomes 100 human seconds, which the formatter displays as 1.7 minutes. Larger values roll up into hours, days, months and years; smaller values use milliseconds and microseconds.
Can I use my own anchor?
Yes. Choose Custom, then enter a positive raw duration in nanoseconds and the number of human seconds it should represent. For example, 1,000 ns mapped to 86,400 seconds makes one microsecond equivalent to a workday. Invalid or zero values are rejected with an inline error while your other settings stay intact.
How do I use this in an architecture review?
Pick the two operations you are debating, read the normalized ratio, then copy the table as Markdown into the review document. The exported Markdown includes the active anchor note and the ratio sentence, so readers can reproduce the framing without opening the tool.
Is SSD latency still around 100 microseconds?
That figure comes from earlier SATA SSD data in the Norvig update; modern NVMe drives can be substantially faster and queue depth matters a lot. The tool labels these entries with their context so you can distinguish historical reference points from current hardware.
References & standards
Related tools
.env Secret Safety Linter
Validate .env syntax and spot likely leaked credentials or placeholder secrets.
.gitattributes Generator
Build .gitattributes rules for line endings, Git LFS, GitHub linguist marks and merge drivers — with a one-line explanation for every rule.
.htaccess Generator
Build an Apache .htaccess — HTTPS redirects, rewrites, error pages, security headers, and basic auth
2D Fluid Dynamics & Particle Physics Sandbox
A physics playground with two engines sharing one canvas. The fluid mode runs a real Eulerian Navier-Stokes solver — semi-Lagrangian advection, explicit diffusion, Jacobi pressure projection and vorticity confinement — that you paint with dye and velocity using mouse or touch. The particle mode is a damped Verlet N-body engine with gravity wells, Coulomb attractors and repulsors, spring links, wall restitution and elastic circle collisions. Particle counts adapt to the device (100k target on WebGL2 desktop, 2k-5k on CPU fallback), and every configuration exports as runnable code: a Matter.js world, a PixiJS ticker setup, or a standalone vanilla Canvas engine.
A/B Test Sample Size Calculator
Compute required sample size per variant and test duration from baseline conversion rate, minimum detectable effect, alpha and power.
ABA Routing Number Validator
Validate 9-digit US ABA routing numbers with 3-7-1 Mod-10 breakdown.