onerow: add table headers

selection
Alinson S. Xavier 9 years ago
parent ea7c015c1d
commit 33351ff0d4

@ -9,22 +9,22 @@ done
echo " TABLE 1 "
echo "--------------------------------------------------------------------------------"
printf "%s,%s,%s,%s,%s,%s,%s,%s,%s\n" instance cutsmir cutsw origgap mirperf wperf mircontrib wcontrib wimprov
printf "%s,%s,%s,%s,%s,%s,%s,%s,%s,%s\n" instance cutsmir cutsw origgap mirperf wperf mircontrib wcontrib wimprov wtime | tee 'tables/gap.csv'
for i in out/*.yaml; do
IN=${i/.yaml/}
IN=${IN/out\//}
printf "%s," $IN
scripts/gap.rb $i
done | sort -t',' -nrsk 8 | sed -e 's/,$//g' | tee 'tables/gap.csv'
done | sort -t',' -nrsk 8 | sed -e 's/,$//g' | tee -a 'tables/gap.csv'
echo
echo
echo " TABLE 2 "
echo "--------------------------------------------------------------------------------"
printf "%s,%s,%s,%s,%s,%s\n" instance cutsmir cutsw mirt wedget avgm
printf "%s,%s,%s,%s,%s,%s\n" instance cutsmir cutsw mirt wedget avgm | tee 'tables/speed.csv'
for i in out/*.yaml; do
IN=${i/.yaml/}
IN=${IN/out\//}
printf "%s," $IN
scripts/speed.rb $i
done | sort | sed -e 's/,$//g' | tee 'tables/speed.csv'
done | sort | sed -e 's/,$//g' | tee -a 'tables/speed.csv'

@ -1,3 +1,4 @@
instance,cutsmir,cutsw,origgap,mirperf,wperf,mircontrib,wcontrib,wimprov,wtime
gmu-35-40.pre,27,508,0.01,0.07,9.94,0.74,99.26,9.88,77
eil33-2.pre,30,284,13.14,4.28,15.21,28.11,71.89,11.42,7439
mik-250-1-100-1.pre,100,961,19.65,53.52,73.44,72.87,27.13,42.86,7

1 gmu-35-40.pre instance 27 cutsmir 508 cutsw 0.01 origgap 0.07 mirperf 9.94 wperf 0.74 mircontrib 99.26 wcontrib 9.88 wimprov 77 wtime
1 instance cutsmir cutsw origgap mirperf wperf mircontrib wcontrib wimprov wtime
2 gmu-35-40.pre gmu-35-40.pre 27 27 508 508 0.01 0.01 0.07 0.07 9.94 9.94 0.74 0.74 99.26 99.26 9.88 9.88 77 77
3 eil33-2.pre eil33-2.pre 30 30 284 284 13.14 13.14 4.28 4.28 15.21 15.21 28.11 28.11 71.89 71.89 11.42 11.42 7439 7439
4 mik-250-1-100-1.pre mik-250-1-100-1.pre 100 100 961 961 19.65 19.65 53.52 53.52 73.44 73.44 72.87 72.87 27.13 27.13 42.86 42.86 7 7

@ -1,3 +1,4 @@
instance,cutsmir,cutsw,mirt,wedget,avgm
30n20b8.pre,---,---,---,---,---
aflow40b.pre,---,---,---,---,---
app1-2.pre,---,---,---,---,---

1 30n20b8.pre instance --- cutsmir --- cutsw --- mirt --- wedget --- avgm
1 instance cutsmir cutsw mirt wedget avgm
2 30n20b8.pre 30n20b8.pre --- --- --- --- ---
3 aflow40b.pre aflow40b.pre --- --- --- --- ---
4 app1-2.pre app1-2.pre --- --- --- --- ---