tzhash/benchmark
Evgenii c3cfe63e64 Add possibility to use different implementations in cli
Also make API smaller and more consistent and fix typos in documentation.
2019-07-19 18:24:30 +03:00

13 lines
303 B
Bash
Executable file

#!/bin/bash
#tmpfile=$(mktemp /tmp/random-file.XXXXXX)
#size=$1
#dd if=/dev/urandom of=$tmpfile bs=$size count=1
tmpfile=$1
go build ./cmd/tzsum && \
for impl in avx avx2 avx2inline; do
echo $impl implementation:
/usr/bin/env time -f "time: %e seconds" ./tzsum -name $tmpfile -impl $impl
echo
done