From 6fa9eda136ce4a4ee3b8509371bd269310e1b9c9 Mon Sep 17 00:00:00 2001 From: Juha Alanen Date: Mon, 20 Apr 2020 14:55:40 +0300 Subject: [benchmark] Increase threshold to 15% --- scripts/check_benchmark_results.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/scripts/check_benchmark_results.sh b/scripts/check_benchmark_results.sh index 9ea1ca2c1..0637dc189 100755 --- a/scripts/check_benchmark_results.sh +++ b/scripts/check_benchmark_results.sh @@ -4,12 +4,12 @@ # check_benchmark_results.sh # Benchmark comparison script uses a hard-coded 5% threshold by default, but it causes random failures -# Increase the threshold to 10% +# Increase the threshold to 15% if [ "$(uname)" == "Darwin" ]; then - sed -i '' s/"if res > 0.05"/"if res > 0.1"/ $PWD/vendor/benchmark/tools/gbench/report.py + sed -i '' s/"if res > 0.05"/"if res > 0.15"/ $PWD/vendor/benchmark/tools/gbench/report.py elif [ "$(expr substr $(uname -s) 1 5)" == "Linux" ]; then - sed -i s/"if res > 0.05"/"if res > 0.1"/ $PWD/vendor/benchmark/tools/gbench/report.py + sed -i s/"if res > 0.05"/"if res > 0.15"/ $PWD/vendor/benchmark/tools/gbench/report.py fi # Run the bencmark comparison @@ -21,7 +21,7 @@ tests=`fgrep mean $3 | cut -c1-85 | grep 91m` if [ -z "$tests" ] then echo "" >> $3 - echo "PASSED, all benchmarks within 10% threshold" >> $3 + echo "PASSED, all benchmarks within 15% threshold" >> $3 ansi2html < $3 > $4 exit 0 @@ -29,7 +29,7 @@ else test_names=`fgrep mean $3 | cut -c1-85 | grep 91m | cut -f1 -d' '` echo "" >> $3 - echo "FAILED, following benchmarks are not within 10% threshold:" >> $3 + echo "FAILED, following benchmarks are not within 15% threshold:" >> $3 echo "" >> $3 for t in $test_names; do -- cgit v1.2.3