2018-12-29 13:04:17 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
2020-01-16 07:54:22 +00:00
|
|
|
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 && \
|
2019-07-19 15:59:41 +00:00
|
|
|
for impl in avx avx2 avx2inline purego; do
|
2019-07-19 14:52:46 +00:00
|
|
|
echo $impl implementation:
|
2020-01-16 07:54:22 +00:00
|
|
|
/usr/bin/env time ./tzsum -name $tmpfile -impl $impl
|
2019-07-19 14:52:46 +00:00
|
|
|
echo
|
2018-12-29 13:04:17 +00:00
|
|
|
done
|