From: Jean Privat Date: Fri, 7 Dec 2012 22:18:04 +0000 (-0500) Subject: bench: split and specialize "options" benchs X-Git-Tag: v0.6~190 X-Git-Url: http://nitlanguage.org?ds=sidebyside bench: split and specialize "options" benchs Signed-off-by: Jean Privat --- diff --git a/src/run_bench.sh b/src/run_bench.sh index c35ab79..9381f89 100755 --- a/src/run_bench.sh +++ b/src/run_bench.sh @@ -294,11 +294,18 @@ bench_steps # $#: options to compare function bench_nitg_options() { - name="$FUNCNAME" + tag=$1 + shift + name="$FUNCNAME-$tag" skip_test "$name" && return prepare_res "$name.dat" "no options" "nitg without options" run_compiler "nitg" ./nitg + if test -n "$2"; then + prepare_res "$name-all.dat" "all" "nitg with all options $@" + run_compiler "nitg-$tag" ./nitg $@ + fi + for opt in "$@"; do prepare_res "$name$opt.dat" "$opt" "nitg with option $opt" run_compiler "nitg$opt" ./nitg $opt @@ -306,15 +313,23 @@ function bench_nitg_options() plot "$name.gnu" } -bench_nitg_options --hardening --no-check-covariance --no-check-initialization --no-check-assert --no-check-autocast --no-check-other +bench_nitg_options "hardening" --hardening +bench_nitg_options "nocheck" --no-check-covariance --no-check-initialization --no-check-assert --no-check-autocast --no-check-other function bench_nitg-e_options() { - name="$FUNCNAME" + tag=$1 + shift + name="$FUNCNAME-$tag" skip_test "$name" && return prepare_res "$name.dat" "no options" "nitg-e without options" run_compiler "nitg-e" ./nitg --erasure + if test -n "$2"; then + prepare_res "$name-all.dat" "all" "nitg-e with all options $@" + run_compiler "nitg-e-$tag" ./nitg --erasure $@ + fi + for opt in "$@"; do prepare_res "$name$opt.dat" "$opt" "nitg-e with option $opt" run_compiler "nitg-e$opt" ./nitg --erasure $opt @@ -322,7 +337,8 @@ function bench_nitg-e_options() plot "$name.gnu" } -bench_nitg-e_options --hardening --no-inline-intern --no-check-covariance --no-check-initialization --no-check-assert --no-check-other +bench_nitg-e_options "hardening" --hardening +bench_nitg-e_options "nocheck" --no-inline-intern --no-check-covariance --no-check-initialization --no-check-assert --no-check-other function bench_nitc_gc() {