tzhash/benchmark

14 lines
310 B
Text
Raw Normal View History

2018-12-29 13:04:17 +00:00
#!/bin/bash
#tmpfile=$(mktemp /tmp/random-file.XXXXXX)
#size=$1
#dd if=/dev/urandom of=$tmpfile bs=$size count=1
tmpfile=$1
go build ./cmd/tzsum && \
2019-07-19 15:59:41 +00:00
for impl in avx avx2 avx2inline purego; do
echo $impl implementation:
/usr/bin/env time -f "time: %e seconds" ./tzsum -name $tmpfile -impl $impl
echo
2018-12-29 13:04:17 +00:00
done