benchs: protect mangle groups of options in `bench_nitg*_options`
authorJean Privat <jean@pryen.org>
Thu, 27 Mar 2014 18:37:45 +0000 (14:37 -0400)
committerJean Privat <jean@pryen.org>
Tue, 1 Apr 2014 15:06:55 +0000 (11:06 -0400)
Signed-off-by: Jean Privat <jean@pryen.org>

benchmarks/bench_engines.sh

index d894cc0..b8e7e55 100755 (executable)
@@ -225,8 +225,9 @@ function bench_nitg-g_options()
        fi
 
        for opt in "$@"; do
-               prepare_res "$name$opt.dat" "$opt" "nitg-g with option $opt"
-               run_compiler "nitg-g$opt" ./nitg --global $opt
+               ot=${opt// /+}
+               prepare_res "$name$ot.dat" "$opt" "nitg-g with option $opt"
+               run_compiler "nitg-g$ot" ./nitg --global $opt
        done
 
        plot "$name.gnu"
@@ -251,8 +252,9 @@ function bench_nitg-s_options()
        fi
 
        for opt in "$@"; do
-               prepare_res "$name$opt.dat" "$opt" "nitg-s with option $opt"
-               run_compiler "nitg-s$opt" ./nitg --separate $opt
+               ot=${opt// /+}
+               prepare_res "$name-$ot.dat" "$opt" "nitg-s with option $opt"
+               run_compiler "nitg-s$ot" ./nitg --separate $opt
        done
 
        plot "$name.gnu"
@@ -279,8 +281,9 @@ function bench_nitg-e_options()
        fi
 
        for opt in "$@"; do
-               prepare_res "$name$opt.dat" "$opt" "nitg-e with option $opt"
-               run_compiler "nitg-e$opt" ./nitg --erasure $opt
+               ot=${opt// /+}
+               prepare_res "$name$ot.dat" "$opt" "nitg-e with option $opt"
+               run_compiler "nitg-e$ot" ./nitg --erasure $opt
        done
 
        plot "$name.gnu"