printing No. of reductions in GHCi

Hello there 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.) Thanks a lot in advance. RHafiz -- View this message in context: http://www.nabble.com/printing-No.-of-reductions-in-GHCi-t1262464.html#a3349... Sent from the Haskell - Glasgow-haskell-users forum at Nabble.com.

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. Cheers, Simon
participants (2)
-
RHafiz
-
Simon Marlow