on master help sign in
Fix the space requirements of two benchmarks

Move showInstance benchmark for pure streams to o-n-space Increase the heap space for array map x 4

commit424f1e9871afa460e4f39b926724196a07eca0ce authorHarendra Kumar <harendra@composewell.com> dateTue 22 Jun 2021, 00:59 (5 years ago) parente094283
2 files changed+4−1
benchmark/Streamly/Benchmark/Prelude/Serial/Elimination.hs+2−1 bin/bench-exec-one.sh+2
benchmark/Streamly/Benchmark/Prelude/Serial/Elimination.hs+2−1
@@ -471,7 +471,6 @@ o_1_space_elimination_folds value =
471471 , benchIOSink value "and" (and value)
472472 , benchIOSink value "or" (or value)
473473
474− , benchPureSink value "showsPrec pure streams" showInstance
475474 -- length is used to check for foldr/build fusion
476475 , benchPureSink value "length . IsList.toList" (Prelude.length . GHC.toList)
477476 ]
@@ -513,6 +512,8 @@ o_n_heap_elimination_buffered value =
513512 -- XXX can the outputs be streaming? Can we have special read/show
514513 -- style type classes, readM/showM supporting streaming effects?
515514 [ bench "showPrec Haskell lists" $ nf showInstanceList (mkList value)
515+ -- XXX This is not o-1-space for GHC-8.10
516+ , benchPureSink value "showsPrec pure streams" showInstance
516517 ]
517518 ]
518519
bin/bench-exec-one.sh+2
@@ -102,6 +102,8 @@ bench_rts_opts_specific () {
102102 Data.SmallArray/o-1-sp*) echo -n "-K128K" ;;
103103 # For tasty-bench
104104 Data.Array*/o-1-space/generation/show) echo -n "-M32M" ;;
105+ # XXX For GHC-8.10
106+ Data.Array/o-1-space/transformationX4/map) echo -n "-M32M" ;;
105107 *) echo -n "" ;;
106108 esac
107109}