Skip to content

Commit

Permalink
Increase benchmark comparison threshold (#16)
Browse files Browse the repository at this point in the history
  • Loading branch information
eukarpov authored Sep 25, 2023
1 parent 62fa08f commit 7be03e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/scripts/benchmark.sh
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ verify_benchmark_regression() {
print_Pn "25 50 75 95 99 100" $latest_benchmark_snapshot > Pn_latest
print_Pn "25 50 75 95 99 100" b1 > Pn_current
echo Pn latest_snapshot current percentage_change
paste Pn_latest Pn_current | awk 'begin{max = 0} {change = $4 * 100 / $2 - 100; if (max < change) max = change; printf "%s %s %s %f\n", $1, $2, $4, change} END {if (max > 10) print "Potential benchmark regression has been detected"}' > change
paste Pn_latest Pn_current | awk 'begin{max = 0} {change = $4 * 100 / $2 - 100; if (max < change) max = change; printf "%s %s %s %f\n", $1, $2, $4, change} END {if (max > 15) print "Potential benchmark regression has been detected"}' > change
cat change
cat change | grep -q "Potential benchmark regression has been detected" && exit 1 || echo "Benchmark regression has not been detected"
}
Expand Down

0 comments on commit 7be03e7

Please sign in to comment.