DevTools Logo

Interactive Latency Numbers

Interactive Latency Numbers

The classic latency table rescaled to human time, with ratio queries and tier filters.

Runs in your browser
Scale:
Tier:
vs
Try an example

Scale & selection

20 reference values

Pick 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
Latency values scaled to human time
OperationRawHuman scaleTier
L1 cache reference0.5 ns500 msCPU
Branch mispredict5 ns5 sCPU
L2 cache reference7 ns7 sCPU
Mutex lock/unlock25 ns25 sCPU
L3 cache reference40 ns40 sCPU
Main memory reference100 ns1.7 minutesMemory
Cache miss to DRAM120 ns2 minutesMemory
Lightweight syscall1 µs17 minutesOther
Compress 1 KB (Snappy)3 µs50 minutesOther
SSD random read150 µs1.7 daysStorage
Read 1 MB sequentially from memory250 µs2.9 daysMemory
Round trip within same datacenter500 µs5.8 daysNetwork
Read 1 MB sequentially from SSD1 ms12 daysStorage
Disk seek10 ms3.8 monthsStorage
Read 1 MB sequentially from disk20 ms7.6 monthsStorage
Round trip cross-datacenter30 ms11 monthsNetwork
TLS handshake50 ms1.6 yearsNetwork
Packet US → Europe → US150 ms4.8 yearsNetwork
Cross-continent round trip (satellite)600 ms19 yearsNetwork
Read 1 GB sequentially from disk20 s634 yearsStorage

Main memory reference is 200× slower than L1 cache reference.

Examples

Classic anchor

Input
1 ns = 1 s, main memory 100 ns
Output
100 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

Input
150 ms at the classic anchor
Output
About 4.8 years

1.5e8 seconds divided by 365.25 days per year yields the familiar five-year talking point.

Ratio

Input
Main memory 100 ns vs L1 0.5 ns
Output
200× slower

Selection 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

  1. 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.

  2. 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.

  3. Compare two rows

    Pick any two entries in the Compare selects. The ratio panel reports the normalized multiplier and narrates which operation is slower.

  4. 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.

  5. 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

ControlEffect
1 ns = 1 sClassic Dean/Norvig scale: 100 ns of DRAM becomes 100 human seconds
1 µs = 1 sCompresses the table by 1,000×; useful for storage and network rows
1 ms = 1 workdayCompresses by 86,400,000×; makes very large latencies readable
CustomAny positive nanosecond duration mapped to any positive number of human seconds
Raw columnAlways 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