Skip to content

Instantly share code, notes, and snippets.


Senthil Arivudainambi sent-hil

View GitHub Profile
jboner / latency.txt
Last active Aug 9, 2020
Latency Numbers Every Programmer Should Know
View latency.txt
Latency Comparison Numbers (~2012)
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
JoshuaEstes /
Last active Jul 3, 2020
Developer Cheat Sheets for bash, git, gpg, irssi, mutt, tmux, and vim. See my dotfiles repository for extra info.
shilov / redis_json_marshal_eval_benchmarks.rb
Created Jan 27, 2012
Ruby Redis benchmarks for JSON vs Marshal vs String
View redis_json_marshal_eval_benchmarks.rb
require 'benchmark'
require 'json'
require 'redis'
# -----------------
puts "Initialize variables.."
mikeyk / gist:1329319
Created Oct 31, 2011
Testing storage of millions of keys in Redis
View gist:1329319
#! /usr/bin/env python
import redis
import random
import pylibmc
import sys
r = redis.Redis(host = 'localhost', port = 6389)
mc = pylibmc.Client(['localhost:11222'])
bergie /
Created May 18, 2011
Falsy Values tutorials
karmi / .gitignore
Created Apr 3, 2011
Visualizing timelines with Protovis and date histogram facet in ElasticSearch
View .gitignore
You can’t perform that action at this time.