model: rewrite of MType::is_subtype
[nit.git] / src / run_bench.sh
index 9c836ce..369cdcf 100755 (executable)
@@ -236,6 +236,11 @@ if test -z "$NOTSKIPED"; then
        echo "* all: run all the benches"
 fi
 
+## COMPILE ENGINES
+
+test -f ./nitc_3 || ./ncall.sh -O
+test -f ./nitg || ./nitc_3 nitg.nit -O -v
+
 ## EFFECTIVE BENCHS ##
 
 function bench_nitg_bootstrap()
@@ -301,7 +306,23 @@ function bench_nitg_options()
 
        plot "$name.gnu"
 }
-bench_nitg_options --hardening
+bench_nitg_options --hardening --no-check-covariance --no-check-initialization --no-check-assert --no-check-other
+
+function bench_nitg-e_options()
+{
+       name="$FUNCNAME"
+       skip_test "$name" && return
+       prepare_res "$name.dat" "no options" "nitg-e without options"
+       run_compiler "nitg-e" ./nitg --erasure
+
+       for opt in "$@"; do
+               prepare_res "$name$opt.dat" "$opt" "nitg-e with option $opt"
+               run_compiler "nitg-e$opt" ./nitg --erasure $opt
+       done
+
+       plot "$name.gnu"
+}
+bench_nitg-e_options --hardening --no-inline-intern --no-check-covariance --no-check-initialization --no-check-assert --no-check-other
 
 function bench_nitc_gc()
 {
@@ -358,9 +379,9 @@ function bench_compilation_time
        for i in ../examples/hello_world.nit test_parser.nit nitg.nit; do
                bench_command `basename "$i" .nit` "" ./nitg "$i" --no-cc
        done
-       prepare_res "$name-nitg_g.dat" "nitg/g" "nitg/g"
+       prepare_res "$name-nitg-e.dat" "nitg-e" "nitg --erasure"
        for i in ../examples/hello_world.nit test_parser.nit nitg.nit; do
-               bench_command `basename "$i" .nit` "" ./nitg.bin "$i" --no-cc
+               bench_command `basename "$i" .nit` "" ./nitg --erasure "$i" --no-cc
        done
        plot "$name.gnu"
 }