Compiled Latency Numbers
Ashwani K.
???????? ?????????????? & ???????? ???????????????? | ?????????????????????????? | ?????????? ?????????????????? | ?????? | ???????????? ???????? | ?????? | ???????????????????? | ?????????????? | ??????????????????
Hey folks,
Let's talk about a topic that's often mentioned but rarely explored deeply: the use of cache versus direct database (DB) calls. We often throw around the idea that main memory is faster than accessing the DB , but how many of us have actually delved into the hard numbers? ??
Recently, I came across a compiled research of Jeff Dean regarding different type latency in computer systems.
Latency Comparison Numbers (~2012)
Here's a comparative overview of latency figures for different operations commonly encountered in computer systems:
If you see, for 1 MB data read -
Main Memory takes ≈ 250,000 nano sec ≈ 0.00025 seconds
Disk takes ≈ 20,000,000 nano sec ≈ 0.02 second
Substituting these values into the formula:
%?Difference = [ ( 20M - 0.25M ) / 0.25M ) ] × 100%
% Difference = 79% ??
So, the disk read is approximately ~80% slower than accessing main memory. ??
Key Insights:
Conclusion:
Understanding latency figures is crucial for designing and optimizing computer systems, applications, and networks. By being aware of the relative latencies involved in different operations, developers, and system architects can make informed decisions to enhance performance and efficiency.
Resources:??
??Note: I have made some adjustments to improve content quality and fix minor grammatical issues. ????