forked from rurban/smhasher
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtestspeed.sh
executable file
·43 lines (42 loc) · 1001 Bytes
/
testspeed.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#!/bin/bash
hname="`hostname`"
if [ x$hname = xe495 ]; then
./testspeed-ryzen3.sh $@
exit
fi
#if [ x$hname = xlorikeet ]; then
# ./testspeed-ryzen5.sh $@
# exit
#fi
if [ x$hname = xreini ]; then
./testspeed-intel.sh $@
exit
fi
if [ x$hname = xairc ]; then
./testspeed-air.sh $@
exit
fi
if [ x`uname -m` = xaarch64 ]; then
./testspeed-phone.sh $@
exit
fi
make -C build
./start-bench.sh
if [ -z "$@" ]; then
test -f log.speed && mv log.speed log.speed.bak
(for g in `build/SMHasher --listnames`; do \
build/SMHasher --test=Speed,Hashmap $g 2>&1; done) | tee log.speed
./speed.pl && \
./fixupdocspeeds.pl
else
for g in `build/SMHasher --listnames`; do
for p in $@; do
if [[ $g =~ $p.* ]]; then
build/SMHasher --test=Speed,Hashmap $g 2>&1
fi
done
done | tee "log.speed-$1"
./speed.pl "log.speed-$1" && \
./fixupdocspeeds.pl "log.speed-$1"
fi
./stop-bench.sh