[Haskell-cafe] Timing execution of individual functions in ghci?

Carter Schonwald carter.schonwald at gmail.com
Thu Oct 23 14:40:51 UTC 2014


indeed. My suggestion is
1) use criterion, its awsome
2) run the criterion suite with a variety of optimization flag choices so
you can understand how that changes performance
3) use criterion some more !

On Thu, Oct 23, 2014 at 10:35 AM, Daniel Trstenjak <
daniel.trstenjak at gmail.com> wrote:

>
> Hi Magnus,
>
> > Given that all I'm interested in is relative timings it might even be
> > enough to do a rough comparison of two implementations too.
>
> Optimizations - especially in Haskell - can change the runtime behaviour
> quite dramatically. So comparing the runtime performance without turned
> on optimizations is pretty much pointless.
>
> Meaningful benchmarking is hard and adding any kind of uncertainty
> doesn't make it in any way easier.
>
>
> Greetings,
> Daniel
> _______________________________________________
> Haskell-Cafe mailing list
> Haskell-Cafe at haskell.org
> http://www.haskell.org/mailman/listinfo/haskell-cafe
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/haskell-cafe/attachments/20141023/9dd920f3/attachment.html>


More information about the Haskell-Cafe mailing list