AI Hints
Home›System Design Tutorial›Measuring Speed
System Design · Lesson 5 of 120

Numbers Every Engineer Should Know

How slow is slow.

⏱ 2 min read▶ Video at 4:43🎓 Free
Watch this lesson in the System Design courseWatch on YouTube ↗Full System Design course

Is reading from disk slow? Compared to what? Good designers carry a rough feel for how long common operations take. The exact numbers change with hardware, but the order of magnitude stays the same.

Numbers Every Engineer Should Know
From the video: Numbers Every Engineer Should Know
  • Slow compared to what?
  • A rough feel for time
  • Orders of magnitude

Rough timings

Here are rough numbers to remember. Reading from memory takes about a tenth of a microsecond. Reading from an SSD takes about a hundred microseconds. A round trip inside one data centre is about half a millisecond. And a round trip across the world takes about a hundred and fifty milliseconds.

OperationRough time
Read from memory0.1 µs
Read from SSD100 µs
Round trip in a data centre0.5 ms
Read from spinning disk10 ms
Round trip across the world150 ms

The lesson in the numbers

Put them side by side, and the lesson is clear. Memory is about a thousand times faster than an SSD. The network across the world is the slowest of all. That's why caches keep data in memory, and why companies put servers close to their users.

Memory
0.1 µs
SSD
100 µs
Data centre trip
0.5 ms
Disk seek
10 ms
Across the world
150 ms

Summary

Memory is fastest, disks are slower, and long network trips are slowest. These numbers explain why caches and nearby servers matter. Next, quick estimates with these numbers.

Key takeaways
  • Memory is fastest
  • Disk is slower
  • Distance costs the most
Next up: Back-of-the-Envelope Math — quick estimates