From 2251be3235694c9fec63ac24f524ce8d4fdc3943 Mon Sep 17 00:00:00 2001 From: Jean Privat Date: Fri, 26 Jul 2013 09:38:32 -0400 Subject: [PATCH] bench: add some nitg-s bench Signed-off-by: Jean Privat --- benchmarks/bench_engines.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/benchmarks/bench_engines.sh b/benchmarks/bench_engines.sh index f5385c0..1cb9b68 100755 --- a/benchmarks/bench_engines.sh +++ b/benchmarks/bench_engines.sh @@ -214,6 +214,12 @@ function bench_steps() bench_command "generate c" "" ./nitg --global --no-cc ../src/nitg.nit bench_command "full" "" ./nitg --global ../src/nitg.nit -o "nitg_nitg.bin" + prepare_res "$name-nitg-s.dat" "nitg-s" "Various steps of nitg --separate" + bench_command "parse" "" ./nitg --separate --only-parse ../src/nitg.nit + bench_command "metamodel" "" ./nitg --separate --only-metamodel ../src/nitg.nit + bench_command "generate c" "" ./nitg --separate --no-cc ../src/nitg.nit + bench_command "full" "" ./nitg --separate ../src/nitg.nit -o "nitg_nitg-e.bin" + prepare_res "$name-nitg-e.dat" "nitg-e" "Various steps of nitg --erasure" bench_command "parse" "" ./nitg --erasure --only-parse ../src/nitg.nit bench_command "metamodel" "" ./nitg --erasure --only-metamodel ../src/nitg.nit @@ -420,6 +426,10 @@ function bench_compilation_time for i in ../examples/hello_world.nit ../src/test_parser.nit ../src/nitg.nit; do bench_command `basename "$i" .nit` "" ./nitg --global "$i" --no-cc done + prepare_res "$name-nitg-e.dat" "nitg-e" "nitg --separate" + for i in ../examples/hello_world.nit ../src/test_parser.nit ../src/nitg.nit; do + bench_command `basename "$i" .nit` "" ./nitg --separate "$i" --no-cc + done prepare_res "$name-nitg-e.dat" "nitg-e" "nitg --erasure" for i in ../examples/hello_world.nit ../src/test_parser.nit ../src/nitg.nit; do bench_command `basename "$i" .nit` "" ./nitg --erasure "$i" --no-cc -- 1.7.9.5