From 35ca74af2a6c13a7aa326aff357ec1f19d687af9 Mon Sep 17 00:00:00 2001 From: Jean Privat Date: Mon, 23 Mar 2015 17:34:36 +0700 Subject: [PATCH] bench_engines: put all at the end Signed-off-by: Jean Privat --- benchmarks/bench_engines.sh | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/benchmarks/bench_engines.sh b/benchmarks/bench_engines.sh index 3bdce85..62d6a9c 100755 --- a/benchmarks/bench_engines.sh +++ b/benchmarks/bench_engines.sh @@ -186,10 +186,10 @@ function bench_nitc_options() run_compiler "nitc-$name" ./nitc $common if test "$1" = NOALL; then + withall= shift - elif test -n "$2"; then - prepare_res "$name-all.dat" "all" "nitc-g with all options $@" - run_compiler "nitc-$name" ./nitc $common $@ + else + withall=true fi for opt in "$@"; do @@ -198,6 +198,11 @@ function bench_nitc_options() run_compiler "nitc-$name" ./nitc $common $opt done + if test -n "$2" -a -n "$withall"; then + prepare_res "$name-all.dat" "all" "nitc-g with all options $@" + run_compiler "nitc-$name" ./nitc $common $@ + fi + plot "$name.gnu" } -- 1.7.9.5