From 40691d073f00603fa292bad5f8b3a7284c88ba31 Mon Sep 17 00:00:00 2001 From: Jean Privat Date: Mon, 14 Sep 2015 14:51:59 -0400 Subject: [PATCH] bench_engines: always generate an html file There is no reason to not generate it since a lot of thing is already generated. Signed-off-by: Jean Privat --- benchmarks/bench_engines.sh | 10 +++++----- benchmarks/bench_plot.sh | 3 ++- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/benchmarks/bench_engines.sh b/benchmarks/bench_engines.sh index b2534e7..5a7da3d 100755 --- a/benchmarks/bench_engines.sh +++ b/benchmarks/bench_engines.sh @@ -93,7 +93,6 @@ function usage() 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" echo " -h: this help" } @@ -105,11 +104,14 @@ while [ "$stop" = false ]; do -n) count="$2"; shift; shift;; --dry) dry_run=true; shift;; --fast) fast=true$fast; shift;; - --html) html="index.html"; echo >"$html" ""; shift;; + --html) shift;; # Deprecated *) stop=true esac done +html="index.html" +echo >"$html" "" + xml="bench_engines.xml" echo "" > "$xml" @@ -272,9 +274,7 @@ function bench_compilation_time } bench_compilation_time -if test -n "$html"; then - echo >>"$html" "" -fi +echo >>"$html" "" echo >>"$xml" "" diff --git a/benchmarks/bench_plot.sh b/benchmarks/bench_plot.sh index e874308..08a13e6 100755 --- a/benchmarks/bench_plot.sh +++ b/benchmarks/bench_plot.sh @@ -103,7 +103,8 @@ if test -n "$html"; then echo gnuplot -e "set term png; set output \"$bn.png\"" "$1" echo >>"$html" "" -else +fi +if test -n "$DISPLAY"; then echo "# gnuplot -p $1" gnuplot -p "$1" fi -- 1.7.9.5