tzhash/benchmark

13 lines
246 B
Text
Raw Normal View History

2018-12-29 13:04:17 +00:00
#!/bin/bash
tmpfile=$(mktemp /tmp/random-file.XXXXXX)
dd if=/dev/urandom of=$tmpfile bs=$1 count=1
2018-12-29 13:04:17 +00:00
go build ./cmd/tzsum || exit 1
for impl in avx avx2 generic; do
echo $impl implementation:
time ./tzsum -name $tmpfile -impl $impl
echo
2018-12-29 13:04:17 +00:00
done