Understanding latency numbers is crucial for making informed decisions in system design. These numbers help you estimate performance characteristics and identify potential bottlenecks.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/donnemartin/system-design-primer/llms.txt
Use this file to discover all available pages before exploring further.
Latency Comparison Numbers
Time Unit Conversions
Handy Metrics
Based on the numbers above, here are some useful throughput metrics:- Read sequentially from HDD at 30 MB/s
- Read sequentially from 1 Gbps Ethernet at 100 MB/s
- Read sequentially from SSD at 1 GB/s
- Read sequentially from main memory at 4 GB/s
- 6-7 world-wide round trips per second
- 2,000 round trips per second within a data center
Latency Numbers Visualized
Key Takeaways
- Memory is fast - Main memory is significantly faster than disk storage
- Network is slow - Even within the same datacenter, network calls add significant latency
- Sequential access is faster - Reading sequentially is much faster than random access
- SSD vs HDD - SSDs are approximately 30x faster than HDDs for sequential reads
- Geographic latency - Cross-continental network calls take 150ms+
