Skip to content

Instantly share code, notes, and snippets.

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
Send 1K bytes over 1 Gbps network 10,000 ns 0.01 ms
Read 4K randomly from SSD* 150,000 ns 0.15 ms
@michaelbiven
michaelbiven / main.yml
Created September 14, 2013 18:30 — forked from masahide/main.yml
- name: install python (CentOS 6)
yum: name={{item}} enablerepo=epel state=installed
with_items:
- PyYAML
- python-paramiko
- python-jinja2
when: ansible_os_family == 'RedHat' and ansible_distribution_version.split('.')[0]|int == 6
tags: python
- name: install python26 (CentOS 5)
Nick-Stielaus-MacBook-Pro:chef-repo nstielau$ knife node log nstielau_vagrantup.com
Time Recipe Action Resource Type Resource
Tue May 10 10:25:20 -0700 2011 nginx::source create template proxy.conf
Tue May 10 10:25:20 -0700 2011 nginx::source enable service nginx
Tue May 10 09:50:42 -0700 2011 nginx::source create template /etc/init.d/nginx
@michaelbiven
michaelbiven / foo.rb
Created September 11, 2013 16:01 — forked from fujin/foo.rb
template "/tmp/foo.rb"
source "foo.rb.erb"
cookbook "banana"
end