#!/bin/bash for bm in KMeans.bin Labyrinth.bin SSCA2.bin Genome.bin Vacation.bin yada.bin Intruder.bin Bayes.bin do if [ $bm = "KMeans.bin" ] then name="kmeans" fi if [ $bm = "Labyrinth.bin" ] then name="labyrinth" fi if [ $bm = "SSCA2.bin" ] then name="ssca2" fi if [ $bm = "Genome.bin" ] then name="genome" fi if [ $bm = "Vacation.bin" ] then name="vacation" fi if [ $bm = "yada.bin" ] then name="yada" fi if [ $bm = "Intruder.bin" ] then name="intruder" fi if [ $bm = "Bayes.bin" ] then name="bayes" fi echo $bm CSEQ TL2 SWISSTM BASE OBJDEC FISAR DEB ARRDEC HYBARRAYDEC OPTSTM > ${bm}_spreadsheet.dat cat logfinalpaper/log/${bm}_1_LOCK_* | grep TIME= > tmpfile base=`java add tmpfile` cat ~/stamp/stamp-0.9.10/log/${name}_seq_1_* | grep -i time > tmpfile cseq=`java add -sec -norm $base tmpfile` for num in 1 2 4 8 do cat ~/stamp/stamp-0.9.10/log/${name}_stm_${num}_* | grep -i time > tmpfile tl2=`java add -sec -norm $base tmpfile` cat ~/swiss/stamp-0.9.9/log/${name}_stm_${num}_* | grep -i time > tmpfile swiss=`java add -sec -norm $base tmpfile` if [ $num = "1" ] then line="${cseq} ${tl2} ${swiss}" else line="None ${tl2} ${swiss}" fi stddevline="" for type in BASE FIS FISAR DEB DV HYDV OPTSTM do cat logfinalpaper/log/${bm}_${num}_${type}_* | grep TIME= > tmpfile ave=`java add -norm $base tmpfile` stddev=`java add -err tmpfile` line="$line $ave" stddevline="$stddevline $stddev" done echo ${num} ${line} >> ${bm}_spreadsheet.dat done echo set bar 1.000000 > plot_${bm}.txt echo set terminal postscript enhanced \"Times-Roman\" 16 >> plot_${bm}.txt echo set boxwidth 0.9 absolute >> plot_${bm}.txt echo set style fill pattern 0.00 border -1 >> plot_${bm}.txt echo set style rectangle back fc lt -3 fillstyle solid 1.00 border -1 >> plot_${bm}.txt echo set key inside left top vertical Left reverse enhanced autotitles columnhead nobox >> plot_${bm}.txt echo set style histogram clustered gap 2 title offset character 0, 0, 0 >> plot_${bm}.txt echo set datafile missing \'-\' >> plot_${bm}.txt echo set style data histograms >> plot_${bm}.txt echo set xtics border in scale 1,0.5 nomirror rotate by -45 offset character 0, 0, 0 >> plot_${bm}.txt echo set xtics norangelimit >> plot_${bm}.txt echo set xrange [-.7:3.7] >> plot_${bm}.txt echo set ylabel \"Speedup\" offset character 0, 0, 0 font \"\" textcolor lt -1 rotate by 90 >> plot_${bm}.txt echo set xlabel \"Number of Threads\" offset character 0, 0, 0 font \"\" textcolor lt -1 rotate by 90 >> plot_${bm}.txt echo set y2label offset character 0, 0, 0 font \"\" textcolor lt -1 rotate by 90 >> plot_${bm}.txt echo set grid ytics >> plot_${bm}.txt echo set yrange [ 0 : \* ] noreverse nowriteback >> plot_${bm}.txt echo set cblabel offset character 0, 0, 0 font \"\" textcolor lt -1 rotate by 90 >> plot_${bm}.txt echo set locale \"C\" >> plot_${bm}.txt echo plot \'${bm}_spreadsheet.dat\' using 5:xticlabels\(1\) ti col, \'\' u 6 ti col, \'\' u 9 ti col, \'\' u 10 ti col >> plot_${bm}.txt #echo pause -1 >> plot_${bm}.txt done