
19 Oct
2011
19 Oct
'11
9:35 p.m.
Greg,
The code looks ok to me -- you've deepseq'ed the list, and forcing it to whnf should force the deepseq. Also, criterion runs your benchmark many times, if your code was measuring the RNG time it would only happen once. This would show up in the criterion output as an unusually large outlier.
Thank you for your review. Because my benchmark seems OK, I need to think why the algorithm works slower against random data. :) --Kazu