[Haskell-cafe] runStateT execution times measurement baffling

thomas burt thedwards at gmail.com
Thu Oct 20 22:16:39 CEST 2011

On Thu, Oct 20, 2011 at 11:59 AM, David Barbour <dmbarbour at gmail.com> wrote:

> On Thu, Oct 20, 2011 at 10:38 AM, thomas burt <thedwards at gmail.com> wrote:
>> Curiously, the times reported for "outside" are about 5-8 times as long.
> What is the cost of putStrLn relative to performing `stuffToDo` a few
> hundred times?
> I am not sure.... it still takes about 5-8 times longer whether `stuffToDo`
recurs a few times, a hunded times, or about a thousand times.

Perhaps I will try and force `stuffToDo` not to leave any partially
evaluated thunks behind.... and compare the cost then.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/haskell-cafe/attachments/20111020/e94350dd/attachment.htm>

More information about the Haskell-Cafe mailing list