tzhash/benchmark
Evgenii Stratonikov 0e0d28e82f tz: use build tags for different implemenations
Signed-off-by: Evgenii Stratonikov <evgeniy@nspcc.ru>
2022-03-21 12:30:08 +03:00

12 lines
246 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 || exit 1
for impl in avx avx2 generic; do
echo $impl implementation:
time ./tzsum -name $tmpfile -impl $impl
echo
done