Skip to content

Instantly share code, notes, and snippets.

@mikea
Forked from jboner/latency.txt
Created May 31, 2012 15:23
Show Gist options
  • Save mikea/2844130 to your computer and use it in GitHub Desktop.
Save mikea/2844130 to your computer and use it in GitHub Desktop.

Revisions

  1. mikea revised this gist May 31, 2012. 1 changed file with 8 additions and 6 deletions.
    14 changes: 8 additions & 6 deletions latency.txt
    Original file line number Diff line number Diff line change
    @@ -1,14 +1,16 @@


    L1 cache reference 0.5 ns
    Branch mispredict 5 ns
    L2 cache reference 7 ns
    Mutex lock/unlock 25 ns
    Main memory reference 100 ns
    L2 cache reference 7 ns 14x L1 cache
    Mutex lock/unlock 25 ns
    Main memory reference 100 ns 4x mutex op, 20x L2 cache, 200x L1 cache
    Compress 1K bytes with Zippy 3,000 ns
    Send 2K bytes over 1 Gbps network 20,000 ns
    Read 1 MB sequentially from memory 250,000 ns
    Round trip within same datacenter 500,000 ns
    Disk seek 10,000,000 ns
    Read 1 MB sequentially from disk 20,000,000 ns
    Disk seek 10,000,000 ns 20x datacenter roundtrip
    Read 1 MB sequentially from disk 20,000,000 ns 80x reading in seq from memory
    Send packet CA->Netherlands->CA 150,000,000 ns

    By Jeff Dean (http://research.google.com/people/jeff/):
    By Jeff Dean (http://research.google.com/people/jeff/):
  2. @jboner jboner revised this gist May 31, 2012. 1 changed file with 3 additions and 3 deletions.
    6 changes: 3 additions & 3 deletions latency.txt
    Original file line number Diff line number Diff line change
    @@ -1,5 +1,3 @@
    By Jeff Dean (http://research.google.com/people/jeff/):

    L1 cache reference 0.5 ns
    Branch mispredict 5 ns
    L2 cache reference 7 ns
    @@ -11,4 +9,6 @@ Read 1 MB sequentially from memory 250,000 ns
    Round trip within same datacenter 500,000 ns
    Disk seek 10,000,000 ns
    Read 1 MB sequentially from disk 20,000,000 ns
    Send packet CA->Netherlands->CA 150,000,000 ns
    Send packet CA->Netherlands->CA 150,000,000 ns

    By Jeff Dean (http://research.google.com/people/jeff/):
  3. @jboner jboner revised this gist May 31, 2012. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion latency.txt
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,4 @@
    By Jeff Dean:
    By Jeff Dean (http://research.google.com/people/jeff/):

    L1 cache reference 0.5 ns
    Branch mispredict 5 ns
  4. @jboner jboner revised this gist May 31, 2012. 1 changed file with 2 additions and 0 deletions.
    2 changes: 2 additions & 0 deletions latency.txt
    Original file line number Diff line number Diff line change
    @@ -1,3 +1,5 @@
    By Jeff Dean:

    L1 cache reference 0.5 ns
    Branch mispredict 5 ns
    L2 cache reference 7 ns
  5. @jboner jboner revised this gist May 31, 2012. No changes.
  6. @jboner jboner created this gist May 31, 2012.
    12 changes: 12 additions & 0 deletions latency.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,12 @@
    L1 cache reference 0.5 ns
    Branch mispredict 5 ns
    L2 cache reference 7 ns
    Mutex lock/unlock 25 ns
    Main memory reference 100 ns
    Compress 1K bytes with Zippy 3,000 ns
    Send 2K bytes over 1 Gbps network 20,000 ns
    Read 1 MB sequentially from memory 250,000 ns
    Round trip within same datacenter 500,000 ns
    Disk seek 10,000,000 ns
    Read 1 MB sequentially from disk 20,000,000 ns
    Send packet CA->Netherlands->CA 150,000,000 ns