printing No. of reductions in GHCi

Simon Marlow simonmarhaskell at
Mon Mar 13 08:50:15 EST 2006

RHafiz wrote:

> Is there anyway to find out the number of reductions per execution in GHC?
> (In Hugs , :set +s prints no of reductions but in GHC, the same command
> prints time and memory.)

GHC doesn't count reductions, or anything approximating it.  Reductions 
is a pretty arbitrary measure of performance, I suggest you use 
allocations as a better approximation, or better still just measure real 
time.  You can get reasonable figures using a compiled binary and 
running it with +RTS -sstderr.


More information about the Glasgow-haskell-users mailing list