
13 Mar
2006
13 Mar
'06
8:50 a.m.
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