tzhash/benchmark
Evgeniy Kulikov 5cf44c62ac
Initial
2018-12-29 16:04:17 +03:00

13 lines
280 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 c in tzC tz tzbits; do
./tzsum -cpuprofile cpu.prof -name $tmpfile -hash $c
echo top | go tool pprof cpu.prof
echo
done