on master help sign in
use dev flag when using the base stream benchmarks
734004bHarendra Kumar
bench.sh+8−3
@@ -162,14 +162,14 @@ run_benches_comparing() {
162 echo "Checking out base commit [$BASE] for benchmarking"
162 echo "Checking out base commit [$BASE] for benchmarking"
163 git checkout "$BASE" || die "Checkout of base commit [$BASE] failed"
163 git checkout "$BASE" || die "Checkout of base commit [$BASE] failed"
164
164
165− $STACK build --bench --no-run-benchmarks || die "build failed"
165+ $STACK build $STACK_BUILD_FLAGS --bench --no-run-benchmarks || die "build failed"
166 run_benches "$bench_list"
166 run_benches "$bench_list"
167
167
168 echo "Checking out candidate commit [$CANDIDATE] for benchmarking"
168 echo "Checking out candidate commit [$CANDIDATE] for benchmarking"
169 git checkout "$CANDIDATE" || \
169 git checkout "$CANDIDATE" || \
170 die "Checkout of candidate [$CANDIDATE] commit failed"
170 die "Checkout of candidate [$CANDIDATE] commit failed"
171
171
172− $STACK build --bench --no-run-benchmarks || die "build failed"
172+ $STACK build $STACK_BUILD_FLAGS --bench --no-run-benchmarks || die "build failed"
173 run_benches "$bench_list"
173 run_benches "$bench_list"
174 # XXX reset back to the original commit
174 # XXX reset back to the original commit
175}
175}
@@ -268,6 +268,11 @@ GAUGE_ARGS=$*
268echo "Using stack command [$STACK]"
268echo "Using stack command [$STACK]"
269set_benchmarks
269set_benchmarks
270
270
271+if echo "$BENCHMARKS" | grep -q base
272+then
273+ STACK_BUILD_FLAGS="--flag streamly:dev"
274+fi
275+
271#-----------------------------------------------------------------------------
276#-----------------------------------------------------------------------------
272# Build stuff
277# Build stuff
273#-----------------------------------------------------------------------------
278#-----------------------------------------------------------------------------
@@ -282,7 +287,7 @@ build_report_progs "$BENCHMARKS"
282
287
283if test "$MEASURE" = "1"
288if test "$MEASURE" = "1"
284then
289then
285− $STACK build --bench --no-run-benchmarks || die "build failed"
290+ $STACK build $STACK_BUILD_FLAGS --bench --no-run-benchmarks || die "build failed"
286 run_measurements "$BENCHMARKS"
291 run_measurements "$BENCHMARKS"
287fi
292fi
288
293