Skip to content

Instantly share code, notes, and snippets.

@lzap
Created May 15, 2023 18:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lzap/a87a4a7fb71df4a9ddd017d4bd4c788c to your computer and use it in GitHub Desktop.
Save lzap/a87a4a7fb71df4a9ddd017d4bd4c788c to your computer and use it in GitHub Desktop.
Computer latency at human scale
System event Actual latency Scaled latency
------------ -------------- --------------
One CPU cycle 0.4 ns 1 frame (1/60 s)
Level 1 cache access 0.9 ns 2 frames
Level 2 cache access 2.8 ns 7 frames
Level 3 cache access 28 ns 1 s
Main memory access (DDR) ~100 ns 4 s
Intel Optane memory access <10 μs 7 min
NVMe SSD I/O ~25 μs 17 min
SSD I/O 50–150 μs 0.5—2 hrs
Rotational disk I/O 1–10 ms 0.5—5 days
Internet call: SF to NYC 65 ms 1 month
Internet call: SF to Hong Kong 141 ms^3 2 months
@lzap
Copy link
Author

lzap commented May 15, 2023

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment