Aik Hui writes:
> 
> When considering the execution time of a haskell program via +RTS -sstderr
> which would be more appropriate: the one denoting the `time elapsed' in
> brackets which is longer, or the shorter one?
> 
>   INIT  time    0.03s  (  0.06s elapsed)
>   MUT   time    0.51s  (  0.88s elapsed)
>   GC    time    0.00s  (  0.00s elapsed)
>   Total time    0.54s  (  0.94s elapsed)
> 

I'd use the first one as suggested by others, but note if your
comparing run times, that total elapsed (wall clock) time is not
just a product of your system and its setup.  If the compiled code
trades time for space, and as a result places heavier demand on the VM
management, your users are in for a (longer) wait. i.e., an
optimisation cannot be classified as a Universal Win just by looking
at the time spent in user space.

FYI, the system calls used by the RTS when reporting these numbers are
getrusage() or times().

--Sigbjorn

Reply via email to