[Haskell-cafe] GHC profiling overhead

Jaro Reinders jaro.reinders at gmail.com
Tue Feb 25 17:58:31 UTC 2020


Dear Dusan,

(Automatic) profiling can prevent some very important optimizations such as
inlining. I would recommend this blog post:
https://www.tweag.io/posts/2020-01-30-haskell-profiling.html.

Kind regards,

Jaro

On 25-02-2020 18:18, Kolář Dušan wrote:
> Dear Café,
> 
> I'm quite curious about overhead of the profiler...
> I've compiled my program with --make -threaded -rtsopts -O2 -prof options.
> It was started with +RTS -N5 -p
> 
> Usually, the program evaluates like 6-7 hours of real time. What is the
> overhead of the profiling? After 8 hours of working, the program has not
> finished yet. I've looked over the Internet and it seems like the overhead may
> be 25 times slowdown and even worse. Is it true? If yes, it's not worth waiting
> then :-)
> 
> Best regards,
> Dusan
> _______________________________________________
> Haskell-Cafe mailing list
> To (un)subscribe, modify options or view archives go to:
> http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe
> Only members subscribed via the mailman list are allowed to post.


More information about the Haskell-Cafe mailing list