[Haskell-cafe] Forcing recomputation
Roman Cheplyaka
roma at ro-che.info
Thu Nov 20 09:37:52 UTC 2014
Control.Exception.evaluate doesn't have much to do with forcing
recomputation. If the argument is already in whnf, evaluate won't do
anything.
On 19/11/14 09:58, Christopher Allen wrote:
> Looks
> like http://hackage.haskell.org/package/base-4.7.0.1/docs/Control-Exception.html#g:8
> ?
>
> https://github.com/bos/criterion/blob/master/Criterion/Types.hs#L290-L295
>
> On Wed, Nov 19, 2014 at 1:55 AM, Tom Ellis
> <tom-lists-haskell-cafe-2013 at jaguarpaw.co.uk
> <mailto:tom-lists-haskell-cafe-2013 at jaguarpaw.co.uk>> wrote:
>
> On Tue, Nov 18, 2014 at 11:39:37PM -0800, Todd Wilson wrote:
> > For example, suppose I have a function f and two arguments e1
> > and e2, and I want to compare the time it takes to compute f e1 vs. f
> > e2
>
> If your purpose is benchmarking (and even if it isn't) I suggest you
> look at
> how criterion manages the issue
>
> http://www.serpentine.com/criterion/tutorial.html
More information about the Haskell-Cafe
mailing list