2018-12-29 16:04:17 +03:00
|
|
|
#!/bin/bash
|
|
|
|
|
2020-01-16 10:54:22 +03:00
|
|
|
tmpfile=$(mktemp /tmp/random-file.XXXXXX)
|
|
|
|
dd if=/dev/urandom of=$tmpfile bs=$1 count=1
|
2018-12-29 16:04:17 +03:00
|
|
|
|
2022-03-09 16:58:21 +03:00
|
|
|
go build ./cmd/tzsum || exit 1
|
|
|
|
|
|
|
|
for impl in avx avx2 generic; do
|
2019-07-19 17:52:46 +03:00
|
|
|
echo $impl implementation:
|
2022-03-09 16:58:21 +03:00
|
|
|
time ./tzsum -name $tmpfile -impl $impl
|
2019-07-19 17:52:46 +03:00
|
|
|
echo
|
2018-12-29 16:04:17 +03:00
|
|
|
done
|