Skip to content

Instantly share code, notes, and snippets.

Avatar

Hugo Duncan hugoduncan

View GitHub Profile
@nathanmarz
nathanmarz / results-clojure-1.7.0.clj
Last active Sep 4, 2020
Specter 0.13.0 benchmark
View results-clojure-1.7.0.clj
Benchmark code at: https://github.com/nathanmarz/specter/blob/master/scripts/benchmarks.clj
Run against Clojure 1.7.0 and Java 1.7.0 on Mac OSX 10.11.6
Benchmark: get value in nested map (2500000 iterations)
Avg(ms) vs best Code
53.528 1.00 (-> data (get :a) (get :b) (get :c))
54.708 1.02 (-> data :a :b :c)
View docker-jenkins.sh
UBUNTU_NAME='precise'
UBUNTU_VERSION='12.04'
CHEF_VERSION='10.26.0'
ARCH='amd64'
sudo debootstrap --arch=${ARCH} --variant=minbase ${UBUNTU_NAME} ${UBUNTU_NAME}-${BUILD_NUMBER}
snapshot0=$(sudo tar -C ${UBUNTU_NAME}-${BUILD_NUMBER} -c .|docker import -)
sudo rm -rf ${UBUNTU_NAME}-${BUILD_NUMBER}
cat > Dockerfile <<EOF
FROM ${snapshot0}
You can’t perform that action at this time.