Benchmarking seems not to be a main focus of any specific academic field, although the problem has been addressed by many different groups in CS.
Some papers I found interesting:
function yellow { echo -e "\e[33m$@\e[0m"; } | |
# Wrapper around make, which covers building different project types, when an | |
# actual Makefile isn't present. | |
function make { | |
if [[ -e Makefile ]]; then | |
yellow "[make] found Makefile" | |
/usr/bin/make $@ | |
else | |
yellow "[make] No Makefile found" |
n <- 200 | |
m <- 40 | |
set.seed(1) | |
x <- runif(n, -1, 1) | |
library(rafalib) | |
bigpar(2,2,mar=c(3,3,3,1)) | |
library(RColorBrewer) | |
cols <- brewer.pal(11, "Spectral")[as.integer(cut(x, 11))] | |
plot(x, rep(0,n), ylim=c(-1,1), yaxt="n", xlab="", ylab="", | |
col=cols, pch=20, main="underlying data") |
import numpy as np | |
import matplotlib.pyplot as plt | |
from matplotlib.colors import LinearSegmentedColormap | |
from scipy.stats import norm | |
def plot_transparent_hexbin(ax, x, y, c, color): | |
cdict = {'red': ((0., color[0], color[0]), (1., color[0], color[0])), | |
'green': ((0., color[1], color[1]), (1., color[1], color[1])), | |
'blue': ((0., color[2], color[2]), (1., color[2], color[2])), | |
'alpha': ((0., 0., 0.), (1., 1., 1.))} |
""" | |
Inserts C code directly into Python files, which can then be dynamically linked | |
in and called via ctypes. | |
""" | |
import atexit | |
import ctypes | |
import os | |
import shlex | |
import sys | |
import tempfile |
Benchmarking seems not to be a main focus of any specific academic field, although the problem has been addressed by many different groups in CS.
Some papers I found interesting:
Find it here: https://github.com/bitemyapp/learnhaskell
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 |