<br><br><div class="gmail_quote">On Wed, Jun 3, 2009 at 11:47 AM, Nico Rolle <span dir="ltr">&lt;<a href="mailto:nrolle@web.de">nrolle@web.de</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
hi there<br>
<br>
is there a quick way to check which function is doing the job quicker?<br>
i have 2 functions which i want to compare.<br>
both give the same output but they do it in different manner.<br>
i want to test which one is faster.<br>
i use ghci.</blockquote><div><br></div><div>Be wary of timing things in GHCi.  By default there are no optimizations in ghci so you could find that one implementation is much worse than the other but the situation might be completely different when optimizations are enabled.  I&#39;m pretty sure if you start ghci with the -O flag that it will use optimizations.</div>
<div><br></div><div>Jason</div></div>