tzhash/benchmark

11 lines
263 B
Bash
Executable file

#!/bin/bash
tmpfile=$(mktemp /tmp/random-file.XXXXXX)
dd if=/dev/urandom of=$tmpfile bs=$1 count=1
go build ./cmd/tzsum && \
for impl in avx avx2 avx2inline purego; do
echo $impl implementation:
/usr/bin/env time ./tzsum -name $tmpfile -impl $impl
echo
done