#! /bin/bash rnd=$(head -c4 "${filename}" -benchmem echo "OK" git checkout ${backup} sleep 5 fi } to=$1 current=`git rev-parse --abbrev-ref HEAD` bench ${to} $2 bench ${current} $2 benchcmp $3 "$rnd-${to}.bench" "$rnd-${current}.bench"