Home/Labs/Latency Numbers Visualizer
All 280 Labs
FREE LAB⏱️

Latency Numbers Every Programmer Should Know (Interactive)

Visualize the physical orders of magnitude between CPU registers, RAM, SSDs, and cross-continent network packets. Interactive benchmark scale visualizer comparing L1 cache references (0.5 ns), main memory RAM access (100 ns), NVMe SSD reads (10 µs), and cross-continental network round-trips (150 ms).

Latency Numbers Visualizer ⏱️

Scale nanosecond hardware delays into intuitive human time (1 CPU cycle = 1 second).

1 CPU Clock Cycle (3.3 GHz)
0.3 ns1 Second
L1 CPU Cache Reference
0.9 ns3 Seconds
Branch Misprediction Penalty
3.0 ns10 Seconds
L2 CPU Cache Reference
4.5 ns15 Seconds
Mutex Lock / Unlock
17.0 ns1 Minute
Main Memory Reference (DRAM)
100 ns5.5 Minutes
Read 1 MB Sequentially from RAM
3,000 ns (3 μs)2.8 Hours
NVMe SSD Random Read
16,000 ns (16 μs)15 Hours
Read 1 MB Sequentially from NVMe SSD
200,000 ns (200 μs)8 Days
Intra-Datacenter Network RTT
500,000 ns (0.5 ms)19 Days
Mechanical HDD Disk Seek
8,000,000 ns (8 ms)10 Months
Cross-Atlantic Network RTT (US to Europe)
150,000,000 ns (150 ms)16 YEARS
cpu Tier0.3 ns

1 CPU Clock Cycle (3.3 GHz)

The fundamental heartbeat of modern silicon processors executing a single instruction.

Human Time Analogy (1 CPU Cycle = 1 Sec)

1 Second

If fetching from CPU register takes 1 second, this operation feels like waiting 1 Second to the processor!

Architectural Insight:

Reading from RAM is like a 5-minute coffee break; reading from spinning disk is waiting 10 months; cross-ocean network calls are a 16-year career!

How It Works Under the Hood

Hardware physics dictates the boundary conditions of all distributed system architectures. An engineer who does not possess an instinctive feel for hardware latency orders of magnitude cannot accurately calculate back-of-the-envelope capacity numbers. An L1 CPU cache reference takes approximately 0.5 nanoseconds. Reading 1 MB sequentially from RAM takes ~3,000 nanoseconds (3 microseconds). Reading 1 MB sequentially from a fast NVMe SSD takes ~200,000 nanoseconds (200 microseconds). Sending a packet round-trip from California to the Netherlands takes 150,000,000 nanoseconds (150 milliseconds). If an L1 cache access were equivalent to 1 human second, a round-trip across the Atlantic Ocean would be equivalent to almost 10 years.

Core Architectural Principles

  • Orders of magnitude: Nanoseconds (10^-9s) for CPU/RAM, Microseconds (10^-6s) for SSDs/Local LAN, Milliseconds (10^-3s) for WAN/Internet.
  • Sequential vs Random I/O: Sequential disk/memory throughput is 10x to 100x faster than random seek operations.
  • Speed of light in fiber optic glass: ~200,000 km/s (roughly 5 microseconds per kilometer of cable distance).
Interview Round Script

Use these numbers during the first 5 minutes of your interview when calculating back-of-the-envelope capacity. Estimating memory cache requirements using 80/20 rules and recognizing that disk seeks are 100,000x slower than memory lookups demonstrates staff-level engineering instinct.

Key Trade-Offs

In-memory architectures provide microsecond response times but carry high RAM hardware costs vs disk-backed NVMe storage with higher latency.

Related Curriculum Chapter

Hardware Latency Numbers Every Systems Architect Must Know

Read Full Chapter Blueprint
Attributed to Jeff Dean (Google) and Peter Norvig. Interactive scaling concept inspired by Colin Scott’s open-source latency visualization.

Explore More Interactive Labs

View All 280 Labs