2018-12-29 16:04:17 +03:00
|
|
|
#!/bin/bash
|
|
|
|
|
2022-03-09 17:19:40 +03:00
|
|
|
BLOCK_SIZE=${1:-1G} # gigabyte by default
|
|
|
|
OUT="${OUT:-$(mktemp /tmp/random-file.XXXXXX)}"
|
|
|
|
|
|
|
|
dd if=/dev/urandom of="$OUT" bs="$BLOCK_SIZE" count=1
|
2018-12-29 16:04:17 +03:00
|
|
|
|
2022-03-09 16:58:21 +03:00
|
|
|
for impl in avx avx2 generic; do
|
2019-07-19 17:52:46 +03:00
|
|
|
echo $impl implementation:
|
2023-02-10 15:57:35 +03:00
|
|
|
time ./bin/tzsum -name "$OUT" -impl $impl
|
2019-07-19 17:52:46 +03:00
|
|
|
echo
|
2018-12-29 16:04:17 +03:00
|
|
|
done
|