X-Git-Url: http://nitlanguage.org diff --git a/benchmarks/bench_languages.sh b/benchmarks/bench_languages.sh index b1e35b1..5348c8d 100755 --- a/benchmarks/bench_languages.sh +++ b/benchmarks/bench_languages.sh @@ -57,7 +57,7 @@ function bench_command() # Execute the commands $count times for i in `seq 1 "$count"`; do - (ulimit -t 60; /usr/bin/time -f "%U" -o "$timeout" -a "$@") > $outputopts 2>&1 || die "$1: failed" + (ulimit -t 300; /usr/bin/time -f "%U" -o "$timeout" -a "$@") > $outputopts 2>&1 || die "$1: failed" echo -n "$i. " tail -n 1 "$timeout" done @@ -221,7 +221,7 @@ function bench_language() nitdir="${basedir}/nit" prepare_res $nitdir/$name-nitg.dat "nitg" "nitg" for b in $seq; do - run_command ./nitg $nitdir/${t}_$b.nit -o "$nitdir/${t}_$b.nitg.bin" --make-flags "CFLAGS=\"-g -O2 -DNOBOEHM\"" + run_command ./nitg $nitdir/${t}_$b.nit --global -o "$nitdir/${t}_$b.nitg.bin" --make-flags "CFLAGS=\"-g -O2 -DNOBOEHM\"" bench_command "$b" "" "$nitdir/${t}_$b.nitg.bin" $s done