-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathGhc612_Config.hs
41 lines (33 loc) · 946 Bytes
/
Ghc612_Config.hs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
module Ghc612_Config(
config
)
where
import Fibon.Run.Config
config :: RunConfig
config = RunConfig {
configId = "ghc612"
, runList = [RunGroup Hackage, RunGroup Shootout]
, sizeList = [Ref]
, tuneList = [Base, Peak]
, iterations = 10
, configBuilder = build
}
collectStats :: Bool
collectStats = True
build :: ConfigBuilder
build ConfigTuneDefault ConfigBenchDefault = do
if collectStats
then do
collectExtraStatsFrom "ghc.stats"
append RunFlags "+RTS -tghc.stats --machine-readable -RTS"
else
done
build (ConfigTune Base) ConfigBenchDefault = do
append ConfigureFlags "--disable-optimization"
build (ConfigTune Base) (ConfigBench Palindromes) = do
append RunFlags "+RTS -K128M -RTS"
build (ConfigTune Base) (ConfigBench BinaryTrees) = do
append RunFlags "+RTS -K32M -RTS"
build (ConfigTune Peak) ConfigBenchDefault = do
append ConfigureFlags "--enable-optimization=2"
build _ _ = done