forked from TrueCloudLab/tzhash
Stanislav Bogatyrev
3a7bdcc020
No need to build everything every time and no need to do it in docker. Signed-off-by: Stanislav Bogatyrev <s.bogatyrev@yadro.com>
12 lines
274 B
Bash
Executable file
12 lines
274 B
Bash
Executable file
#!/bin/bash
|
|
|
|
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
|
|
|
|
for impl in avx avx2 generic; do
|
|
echo $impl implementation:
|
|
time ./bin/tzsum -name "$OUT" -impl $impl
|
|
echo
|
|
done
|