From: Ulya Trofimovich Date: Fri, 4 Aug 2017 08:50:59 +0000 (+0100) Subject: A small tweak in benchmarking scripts that reduces warmup time. X-Git-Tag: 1.0~14 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=937f24b41d279599e5a8986835751480940c8786;p=re2c A small tweak in benchmarking scripts that reduces warmup time. --- diff --git a/re2c/benchmarks/__bench_utils.sh b/re2c/benchmarks/__bench_utils.sh index fda54957..11ecf0a7 100644 --- a/re2c/benchmarks/__bench_utils.sh +++ b/re2c/benchmarks/__bench_utils.sh @@ -45,6 +45,10 @@ run_all() { name2="$2" name="${name1}_${name2}" + echo "---------------- WARMUP (GCC -O2 lookahead) ----------------" + gcc $cflags ${name}_lookahead.c -o${name} && run ${name1} ${name2} + echo "---------------- END WARMUP ----------------" + echo "---------------- GCC -O2 lookahead ----------------" gcc $cflags ${name}_lookahead.c -o${name} && run ${name1} ${name2} echo "---------------- GCC -O2 no-lookahead ----------------" diff --git a/re2c/benchmarks/__run.sh b/re2c/benchmarks/__run.sh index 9f261da3..5a8ff8b1 100755 --- a/re2c/benchmarks/__run.sh +++ b/re2c/benchmarks/__run.sh @@ -7,9 +7,6 @@ bench() { # ./__verify.sh - # warmup - ./__bench.sh 1> log.warmup 2>&1 - ./__bench.sh 1> log._ 2>&1 ./__bench_unopt.sh 1> log.unopt 2>&1 ./__bench_b.sh 1> log.b 2>&1