[Haskell-cafe] Timing execution of individual functions in ghci?
Daniel Trstenjak
daniel.trstenjak at gmail.com
Wed Oct 22 10:48:53 UTC 2014
Hi Magnus,
> When playing around with various implementations of a single function
> it would be nice to time the execution. Is there some way to do that
> easily from within GHCi?
ghci normally only interprets your code, without much optimizations,
so your timings might be quite misleading.
> Or am I forced to look to criterion for that?
I think so, if you want to trust your timings.
Greetings,
Daniel
More information about the Haskell-Cafe
mailing list