There is no reason to not generate it since a lot of thing is already generated.
Signed-off-by: Jean Privat <jean@pryen.org>
echo " -n count: number of execution for each bar (default: $count)"
echo " --dry: Do not run the commands, just reuse the data and generate the graph"
echo " --fast: Run less and faster tests"
echo " -n count: number of execution for each bar (default: $count)"
echo " --dry: Do not run the commands, just reuse the data and generate the graph"
echo " --fast: Run less and faster tests"
- echo " --html: Generate and HTML output"
-n) count="$2"; shift; shift;;
--dry) dry_run=true; shift;;
--fast) fast=true$fast; shift;;
-n) count="$2"; shift; shift;;
--dry) dry_run=true; shift;;
--fast) fast=true$fast; shift;;
- --html) html="index.html"; echo >"$html" "<html><head></head><body>"; shift;;
+ --html) shift;; # Deprecated
+html="index.html"
+echo >"$html" "<html><head></head><body>"
+
xml="bench_engines.xml"
echo "<testsuites><testsuite>" > "$xml"
xml="bench_engines.xml"
echo "<testsuites><testsuite>" > "$xml"
-if test -n "$html"; then
- echo >>"$html" "</body></html>"
-fi
+echo >>"$html" "</body></html>"
echo >>"$xml" "</testsuite></testsuites>"
echo >>"$xml" "</testsuite></testsuites>"
echo gnuplot -e "set term png; set output \"$bn.png\"" "$1"
echo >>"$html" "<img src=\"$bn.png\"/>"
echo gnuplot -e "set term png; set output \"$bn.png\"" "$1"
echo >>"$html" "<img src=\"$bn.png\"/>"
+fi
+if test -n "$DISPLAY"; then
echo "# gnuplot -p $1"
gnuplot -p "$1"
fi
echo "# gnuplot -p $1"
gnuplot -p "$1"
fi