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
This commit is contained in:
Harendra Kumar 2021-06-22 00:59:52 +05:30
parent e09428332c
commit 424f1e9871
2 changed files with 4 additions and 1 deletions

View File

@ -471,7 +471,6 @@ o_1_space_elimination_folds value =
, benchIOSink value "and" (and value)
, benchIOSink value "or" (or value)
, benchPureSink value "showsPrec pure streams" showInstance
-- length is used to check for foldr/build fusion
, benchPureSink value "length . IsList.toList" (Prelude.length . GHC.toList)
]
@ -513,6 +512,8 @@ o_n_heap_elimination_buffered value =
-- XXX can the outputs be streaming? Can we have special read/show
-- style type classes, readM/showM supporting streaming effects?
[ bench "showPrec Haskell lists" $ nf showInstanceList (mkList value)
-- XXX This is not o-1-space for GHC-8.10
, benchPureSink value "showsPrec pure streams" showInstance
]
]

View File

@ -102,6 +102,8 @@ bench_rts_opts_specific () {
Data.SmallArray/o-1-sp*) echo -n "-K128K" ;;
# For tasty-bench
Data.Array*/o-1-space/generation/show) echo -n "-M32M" ;;
# XXX For GHC-8.10
Data.Array/o-1-space/transformationX4/map) echo -n "-M32M" ;;
*) echo -n "" ;;
esac
}