benches: add benches about nullables things
authorAlexandre Terrasa <alexandre@moz-code.org>
Wed, 26 Mar 2014 21:31:39 +0000 (17:31 -0400)
committerAlexandre Terrasa <alexandre@moz-code.org>
Mon, 28 Apr 2014 13:46:22 +0000 (09:46 -0400)
Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>

benchmarks/bench_engines.sh

index 89dc5ae..4168579 100755 (executable)
@@ -349,6 +349,22 @@ function bench_policy()
 }
 bench_policy
 
+function bench_nullables()
+{
+       name="$FUNCNAME"
+       skip_test "$name" && return
+       prepare_res "$name-nitc.dat" "nitc" "nitc no options"
+       run_compiler "nitc" ./nitg --separate
+       prepare_res "$name-nitc-ni.dat" "nitc-ni" "nitc --no-check-attr-isset"
+       run_compiler "nitc" ./nitg --separate --no-check-attr-isset
+       prepare_res "$name-nitc-nu.dat" "nitc-nu" "nitc --no-union-attribute"
+       run_compiler "nitc" ./nitg --separate --no-union-attribute
+       prepare_res "$name-nitc-nu-ni.dat" "nitc-nu-ni" "nitc --no-union-attribute --no-check-attr-isset"
+       run_compiler "nitc" ./nitg --separate --no-union-attribute --no-check-attr-isset
+       plot "$name.gnu"
+}
+bench_nullables
+
 function bench_compilation_time
 {
        name="$FUNCNAME"