Skip to content

Instantly share code, notes, and snippets.

View falkenbt's full-sized avatar

Thomas Falkenberg falkenbt

View GitHub Profile
@jboner
jboner / latency.txt
Last active November 16, 2024 21:28
Latency Numbers Every Programmer Should Know
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
@jordansissel
jordansissel / data.md
Created June 22, 2012 03:28
Logstash 1.1.1 + ElasticSearch 0.19.5 compression tests

compression tests of logstash+elasticsearch

  • logstash 1.1.1-pre (unreleased)
  • elasticsearch 0.19.5-SNAPSHOT (unreleased)
wget https://dl.dropbox.com/u/2136051/elasticsearch-0.19.5-SNAPSHOT.zip
unzip elasticsearch-0.19.5-SNAPSHOT.zip
@falkenbt
falkenbt / generate_kibana_index_patterns.sh
Created August 31, 2017 13:09
Generate Kibana index patterns and set the default Index pattern incl. base auth
#/bin/bash
if [[ $# -eq 0 ]] ; then
echo "Usage: `basename "$0"` <Kibana-URL> [noauth]"
echo "Example: `basename "$0"` http://localhost:5601"
exit 1
fi
AUTH=""
if [[ "$2" != "noauth" ]]; then