4 LOGDIR=/home/adash/research/Robust/src/Benchmarks/Prefetch/runlog
6 function javasinglerun {
8 while [ $i -lt $1 ]; do
9 /usr/bin/time -f "%e" ./${BENCHMARK}.bin $ARGS1 2>> ${LOGDIR}/${BENCHMARK}_javasingle_${EXTENSION}.txt
18 echo "---------- Running javasingle version $BMDIR on 1 machine ---------- "
23 ########## Java single benchmarks #############
24 benchmarks='40962dconv 20482dconv mmver600 moldynverA 1152fft2d'
26 echo "---------- Clean old files ---------- "
28 for b in `echo $benchmarks`
30 bm=`grep $b bmlatest.txt`
31 BENCHMARK=`echo $bm | cut -f1 -d":"`
32 BMDIR=`echo $bm | cut -f2 -d":"`
33 ARGS1=`echo $bm | cut -f3 -d":"`
34 EXTENSION=`echo $bm | cut -f4 -d":"`
38 #----------Calulates the averages -----------
39 for file in `ls runlog/*.txt`
41 echo -n $file >> average.txt
42 cat $file | grep -v "^Command" | awk '{sum += $1} END {print " "sum/NR}' >> average.txt
44 echo "===========" >> average.txt
45 echo "" >> average.txt