[Haskell-cafe] ANN: generic-deepseq 1.0.0.0

Maxime Henrion mhenrion at gmail.com
Thu Feb 23 22:36:13 CET 2012


On Thu, 2012-02-23 at 13:18 -0800, Johan Tibell wrote:
> 2012/2/23 Maxime Henrion <mhenrion at gmail.com>:
> > According to criterion, the performance of the old generic-deepseq code
> > was 6 to 7 times worse than that of the deepseq package. After switching
> > the class function to rnf, it got on par, if not better than the deepseq
> > package. I'm saying "if not", because I've observed contradicting
> > results from criterion, when I ran benchmarks for both packages at once,
> > and when I ran those separately. When running both at once,
> > generic-deepseq is slower than deepseq, except for the test with the
> > bigger list (see report-both.html). When ran separately, generic-deepseq
> > is consistantly faster (see report-deepseq.html and
> > report-gdeepseq.html). The criterion benchmark can be found on the
> > bitbucket repo at http://mu.org/~mux/report-deepseq.html.
> 
> When running criterion benchmarks use the -g flag to prevent
> benchmarks from interfering with each other due to GC. Also, set a
> high initial heap size (e.g. -H1G) so the benchmarks that run first
> don't have to pay the price of GHC growing the heap.

Thanks Johan! I thought the -g option was the default, so hadn't
bothered with it. Unfortunately though, it doesn't seem to make a
difference in my case, I get similar results than previously when
running both tests at once (see attached report).

Cheers,
Maxime
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/haskell-cafe/attachments/20120223/4fa98da0/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 834 bytes
Desc: This is a digitally signed message part
URL: <http://www.haskell.org/pipermail/haskell-cafe/attachments/20120223/4fa98da0/attachment-0001.pgp>


More information about the Haskell-Cafe mailing list