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
|
#!/bin/bash
#
# Tabulate any new benchmark results
#
. ~/.config/cbuild/toolsrc
tmp=`mktemp -td tabulate.XXXXXXXXXX`
trap "rm -rf $tmp" EXIT
base=${1:-$benchmarks}
scripts=${2:-$HOME/lib/linaro-toolchain-benchmarks/scripts}
tabulate() {
filter=$1
suffix=$2
name=benchmarks$suffix.txt
for i in $base/gcc*/logs/*/$filter.txt; do
dir=$(dirname $i)
# Skip if the tabulated version is newer
[ ! $i -nt $dir/$name ] && continue
echo $dir...
python $scripts/tabulate.py $dir/$filter.txt > $tmp/$name \
&& touch -r $i $tmp/$name \
&& mv $tmp/$name $dir
done
}
tabulate "*run" ""
tabulate "spec2000-*run" "-spec2000"
tabulate "eembc-*run" "-eembc"
tabulate "eembc_office-*run" "-eembc_office"
|