]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
benchmark: baseline plot
authorheister <heister@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 13 Feb 2013 21:16:08 +0000 (21:16 +0000)
committerheister <heister@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 13 Feb 2013 21:16:08 +0000 (21:16 +0000)
git-svn-id: https://svn.dealii.org/trunk@28394 0785d39b-7218-0410-832d-ea1e28bc413d

tests/benchmarks/baselineplot.sh [new file with mode: 0755]

diff --git a/tests/benchmarks/baselineplot.sh b/tests/benchmarks/baselineplot.sh
new file mode 100755 (executable)
index 0000000..8d53393
--- /dev/null
@@ -0,0 +1,36 @@
+#!/bin/bash
+
+
+source testlist.sh
+
+
+cat <<EOF
+set terminal postscript eps color enh
+set key left top
+set output "baseline.eps"
+#set log y
+set xlabel 'revision'
+set ylabel 'percentage speedup to baseline'
+set title 'benchmark baselines'
+EOF
+#echo "set terminal x11 persist"
+echo "set xrange [28000:*]"
+echo "set xrange [*,300]"
+echo "plot \\"
+
+for test in $TESTS ; do
+    
+    col=1
+    while read line;
+    do
+       col=`expr $col "+" 1`
+       baseline=`head -n 1 datatable.$test | cut -f $col -d ' '`
+       echo "'datatable.$test' using 1:((\$$col-$baseline)/$baseline*100.0) title '$test - $line' w lp,\\";
+    done < names.$test
+
+done
+
+echo "0.0 w l title 'baseline'"
+
+#echo "pause -1"
+

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.