on master help sign in
Add diff-style, diff-cutoff-percent to bench-runner
commitfb93af721d4c59cef40deba18d6f11cac2c6a929 authorHarendra Kumar <harendra@composewell.com> dateMon 5 Jul 2021, 01:32 (5 years ago) parent1200034
1 file changed+6
benchmark/bench-report/bin/bench-runner.sh+6
benchmark/bench-report/bin/bench-runner.sh+6
@@ -20,6 +20,8 @@ print_help () {
2020 echo " [--fields <"field1 field2 ..." | help>]"
2121 echo " [--sort-by-name]"
2222 echo " [--compare]"
23+ echo " [--diff-style <absolute|percent|multiples>]"
24+ echo " [--cutoff-percent <percent-value>]"
2325 echo " [--graphs]"
2426 echo " [--no-measure]"
2527 echo " [--append]"
@@ -419,6 +421,8 @@ run_reports() {
419421 --benchmark $i \
420422 $(test "$GRAPH" = 1 && echo "--graphs") \
421423 $(test "$SORT_BY_NAME" = 1 && echo "--sort-by-name") \
424+ $(test -n "$BENCH_DIFF_STYLE" && echo "--diff-style $BENCH_DIFF_STYLE") \
425+ $(test -n "$BENCH_CUTOFF_PERCENT" && echo "--diff-cutoff-percent $BENCH_CUTOFF_PERCENT") \
422426 --fields "$FIELDS"
423427 done
424428}
@@ -468,6 +472,8 @@ do
468472 --cabal-build-options) shift; CABAL_BUILD_OPTIONS+=$1; shift ;;
469473 --rtsopts) shift; RTS_OPTIONS=$1; shift ;;
470474 --config) shift; BENCH_CONFIG_FILE=$1; shift ;;
475+ --diff-style) shift; BENCH_DIFF_STYLE=$1; shift ;;
476+ --diff-cutoff-percent) shift; BENCH_CUTOFF_PERCENT=$1; shift ;;
471477 # flags
472478 --slow) SLOW=1; shift ;;
473479 --quick) QUICK_MODE=1; shift ;;