@hackage ghc-gc-tune0.1

Graph performance of Haskell programs with different GC flags

ghc-gc-tune runs your compiled Haskell program with different GC flags, and generates a graph of time as those GC settings vary. ghc-gc-tune lets your automate the task of finding good GC flags for your program, in order to get the best performance from it.

Graphs are rendered with gnuplot, so make sure that is installed.

Example use:

ghc -O2 --make binarytrees.hs
ghc-gc-tune -t svg binarytrees 12

Example output:

http://i.imgur.com/m2yKr.png

For more information on GHC garbage collector settings, see http://haskell.org/ghc/docs/6.12.1/html/users_guide/runtime-control.html#rts-options-gc