Skip to content

Instantly share code, notes, and snippets.

View hoelzro's full-sized avatar

Rob Hoelz hoelzro

View GitHub Profile
@hoelzro
hoelzro / latency.txt
Created June 15, 2016 15:45 — forked from jboner/latency.txt
Latency Numbers Every Programmer Should Know
Latency Comparison Numbers
--------------------------
L1 cache reference 0.5 ns
Branch mispredict 5 ns
L2 cache reference 7 ns 14x L1 cache
Mutex lock/unlock 25 ns
Main memory reference 100 ns 20x L2 cache, 200x L1 cache
Compress 1K bytes with Zippy 3,000 ns 3 us
Send 1K bytes over 1 Gbps network 10,000 ns 10 us
Read 4K randomly from SSD* 150,000 ns 150 us ~1GB/sec SSD
@hoelzro
hoelzro / readyness.md
Last active December 15, 2015 09:29 — forked from moritz/readyness.md

indicators for production readiness:

  • language feature completeness
  • robust IO
  • module ecosystem
  • concurrency (I think this can wait a bit, honestly...)
  • performance
  • deployment in major free OSes
  • spec snapshots (boolean)
  • standard library (ok, not all of these belong in stdlib, but they're nice to have)
@hoelzro
hoelzro / gist:2852695
Created June 1, 2012 14:55
mutex ack2 opts
my @mutex_options = (
# No context possible in file-finding or file-listing mode
[qw( l f g )] => [qw( A B C )],
);