X-Git-Url: http://nitlanguage.org diff --git a/benchmarks/bench_engines.sh b/benchmarks/bench_engines.sh index 442f7bd..cfedb89 100755 --- a/benchmarks/bench_engines.sh +++ b/benchmarks/bench_engines.sh @@ -43,7 +43,10 @@ function run_compiler() { local title=$1 shift - if test -n "$fast"; then + if test "$fast" = truetrue; then + run_command "$@" ../examples/hello_world.nit -o "hello.$title.bin" + bench_command "hello" "hello_world" "./hello.$title.bin" + elif test -n "$fast"; then run_command "$@" ../src/nitc.nit -o "nitc.$title.bin" bench_command "nitc-g" "nitc --global ../src/test_parser.nit" "./nitc.$title.bin" -v --global --no-cc ../src/test_parser.nit run_command "$@" ../src/nit.nit -o "nit.$title.bin" @@ -77,7 +80,7 @@ function run_compiler() bench_command "nitmd" "markdown" "./nitmd.$title.bin" markdown/benches/out/mixed.md 80 fi - rm -r *.bin .nit_compile out + rm -r *.bin .nit_compile out 2> /dev/null } ## HANDLE OPTIONS ## @@ -100,7 +103,7 @@ while [ "$stop" = false ]; do -h) usage; exit;; -n) count="$2"; shift; shift;; --dry) dry_run=true; shift;; - --fast) fast=true; shift;; + --fast) fast=true$fast; shift;; --html) html="index.html"; echo >"$html" ""; shift;; *) stop=true esac @@ -207,7 +210,7 @@ function bench_nitc-s_options() plot "$name.gnu" } -bench_nitc-s_options "slower" --hardening --no-shortcut-equal --no-union-attribute --no-shortcut-range --no-inline-intern "--no-gcc-directive likely --no-gcc-directive noreturn" +bench_nitc-s_options "slower" --hardening --no-shortcut-equal --no-union-attribute --no-shortcut-range --no-inline-intern "--no-gcc-directive likely --no-gcc-directive noreturn" "--no-tag-primitives" bench_nitc-s_options "nocheck" --no-check-null --no-check-autocast --no-check-attr-isset --no-check-covariance --no-check-assert bench_nitc-s_options "faster" --skip-dead-methods --inline-coloring-numbers --inline-some-methods --direct-call-monomorph "--inline-some-methods --direct-call-monomorph" ""