build only specified benchmarks

This saves a lot of time when we are only running specific benchmarks.
This commit is contained in:
Harendra Kumar 2020-01-26 13:41:34 +05:30
parent c3827c0ab5
commit 52b11eb682

View File

@ -361,7 +361,12 @@ build_report_progs "$BENCHMARKS"
if test "$MEASURE" = "1"
then
echo $BUILD_BENCH
$BUILD_BENCH || die "build failed"
if test "$USE_STACK" = "1"
then
$BUILD_BENCH || die "build failed"
else
$BUILD_BENCH $BENCHMARKS || die "build failed"
fi
run_measurements "$BENCHMARKS"
fi