<br><div><span class="gmail_quote">On 7/15/07, <b class="gmail_sendername">Sebastian Sylvan</b> &lt;<a href="mailto:sebastian.sylvan@gmail.com">sebastian.sylvan@gmail.com</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
My GHC compiler is broken, I only have GHCi, but this is about twice<br>for me as fast as the previous version you benchmarked, btw.</blockquote><div><br>Hi Sebastian,<br><br>Here are the results:<br><br>Haskell (Safe Haskell right?)
<br>======<br><br>J:\dev\haskell&gt;ghc -fglasgow-exts -O2 -o PrimeSebastian.exe PrimeSebastian.hs<br><br>J:\dev\haskell&gt;primesebastian<br>number of primes: 664579<br>Elapsed time: 1.375<br><br>mono<br>====<br><br>J:\dev\test\testperf&gt;erase 
primecs.exe &amp; gmcs primecs.cs<br><br>J:\dev\test\testperf&gt;mono primecs.exe<br>number of primes: 664579<br>elapsed time: 0,438<br><br>Microsoft .Net<br>==========<br><br>J:\dev\test\testperf&gt;erase primecs.exe &amp; csc /nologo 
primecs.cs<br><br>J:\dev\test\testperf&gt;primecs<br>number of primes: 664579<br>elapsed time: 0,390625<br><br>(I incorporated your suggestion for the innerloop, which shaved off another 20% or so in the C# classes)<br></div>
<br></div>