Skip to content

Instantly share code, notes, and snippets.

--
-- Created by: Sean Korzdorfer
-- Created on: 06/08/12 17:05:27
-- This script incudes code from an example posted by Rob Trew
-- String Library can be obtained at:
-- http://applescript.bratis-lover.net/library/string/
-- Any line which contains a path needs to be edited for the users environment
-- NB: this could easily be edited to append.
@mt3
mt3 / latency.txt
Created January 8, 2013 14:56 — forked from jboner/latency.txt
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
@mt3
mt3 / README
Created March 1, 2013 12:07 — forked from mattweber/README
Use extractDocs.py to parse and index the StackOverflow posts.xml file into an existing index.
Usage: extractDocs.py [options] file
Options:
-h, --help show this help message and exit
-s SERVER, --server=SERVER
ElasticSearch Server
-i INDEX, --index=INDEX
Index name to use