Skip to content

Instantly share code, notes, and snippets.

View toddkaufmann's full-sized avatar

Todd Kaufmann toddkaufmann

View GitHub Profile
@toddkaufmann
toddkaufmann / install_python27.sh
Created February 28, 2017 17:36 — forked from cheeseprocedure/install_python27.sh
Installation of Python 2.7 on an Ubuntu 10.04 Server amd64 instance (using deadsnakes PPA).
#!/bin/bash
PYTHON27="/usr/bin/python2.7"
VENV_ROOT="/data/venv"
apt-get update
apt-get -y install python-software-properties
add-apt-repository ppa:fkrull/deadsnakes
apt-get update
@toddkaufmann
toddkaufmann / latency.txt
Last active August 29, 2015 14:27 — 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
Send 1K bytes over 1 Gbps network 10,000 ns 0.01 ms
Read 4K randomly from SSD* 150,000 ns 0.15 ms