@@ -1,6 +1,6 @@
3−DEV_BENCHMARKS="concurrent base adaptive"
3+DEV_BENCHMARKS="base concurrent adaptive"
4SERIAL_BENCHMARKS="linear linear-rate nested nested-unfold"
4SERIAL_BENCHMARKS="linear linear-rate nested nested-unfold"
5# parallel benchmark-suite is separated because we run it with a higher
5# parallel benchmark-suite is separated because we run it with a higher
6# heap size limit.
6# heap size limit.
@@ -10,7 +10,9 @@ ARRAY_BENCHMARKS="array unpinned-array prim-array small-array"
10INFINITE_BENCHMARKS="$SERIAL_BENCHMARKS linear-async nested-concurrent"
10INFINITE_BENCHMARKS="$SERIAL_BENCHMARKS linear-async nested-concurrent"
11FINITE_BENCHMARKS="$ARRAY_BENCHMARKS fileio parallel"
11FINITE_BENCHMARKS="$ARRAY_BENCHMARKS fileio parallel"
13+QUICK_BENCHMARKS="linear-rate concurrent adaptive"
13VIRTUAL_BENCHMARKS="array-cmp"
14VIRTUAL_BENCHMARKS="array-cmp"
14ALL_BENCHMARKS="$SERIAL_BENCHMARKS $CONCURRENT_BENCHMARKS $ARRAY_BENCHMARKS $VIRTUAL_BENCHMARKS $DEV_BENCHMARKS"
16ALL_BENCHMARKS="$SERIAL_BENCHMARKS $CONCURRENT_BENCHMARKS $ARRAY_BENCHMARKS $VIRTUAL_BENCHMARKS $DEV_BENCHMARKS"
16list_benches () {
18list_benches () {
@@ -172,6 +174,7 @@ run_bench () {
172 local bench_name=$1
174 local bench_name=$1
173 local output_file=$(bench_output_file $bench_name)
175 local output_file=$(bench_output_file $bench_name)
174 local bench_prog
176 local bench_prog
175 bench_prog=$($GET_BENCH_PROG $bench_name) || \
178 bench_prog=$($GET_BENCH_PROG $bench_name) || \
176 die "Cannot find benchmark executable for benchmark $bench_name"
179 die "Cannot find benchmark executable for benchmark $bench_name"
@@ -179,13 +182,21 @@ run_bench () {
180 echo "Running benchmark $bench_name ..."
183 echo "Running benchmark $bench_name ..."
185+ for i in $QUICK_BENCHMARKS
187+ if test "$(has_benchmark $i)" = "$bench_name"
182 local QUICK_OPTS="--quick --time-limit 1 --min-duration 0"
193 local QUICK_OPTS="--quick --time-limit 1 --min-duration 0"
183 local SPEED_OPTIONS
194 local SPEED_OPTIONS
184 if test "$LONG" -eq 0
195 if test "$LONG" -eq 0
186 if test "$SLOW" -eq 0
197 if test "$SLOW" -eq 0
188− if test "$QUICK" -eq 0
199+ if test "$QUICK" -eq 0 -a "$quick_bench" -eq 0
190 # reasonably quick
201 # reasonably quick
191 SPEED_OPTIONS="$QUICK_OPTS --min-samples 10"
202 SPEED_OPTIONS="$QUICK_OPTS --min-samples 10"
@@ -383,11 +394,10 @@ has_benchmark () {
384for i in $DEV_BENCHMARKS
395for i in $DEV_BENCHMARKS
386− if test $(has_benchmark $i) = "$i"
397+ if test "$(has_benchmark $i)" = "$i"
388 STACK_DEV_FLAG="--flag streamly:dev"
399 STACK_DEV_FLAG="--flag streamly:dev"
389 CABAL_DEV_FLAG="--flag dev"
400 CABAL_DEV_FLAG="--flag dev"