
On 7/15/07, Sebastian Sylvan
My GHC compiler is broken, I only have GHCi, but this is about twice for me as fast as the previous version you benchmarked, btw.
Hi Sebastian, Here are the results: Haskell (Safe Haskell right?) ====== J:\dev\haskell>ghc -fglasgow-exts -O2 -o PrimeSebastian.exe PrimeSebastian.hs J:\dev\haskell>primesebastian number of primes: 664579 Elapsed time: 1.375 mono ==== J:\dev\test\testperf>erase primecs.exe & gmcs primecs.cs J:\dev\test\testperf>mono primecs.exe number of primes: 664579 elapsed time: 0,438 Microsoft .Net ========== J:\dev\test\testperf>erase primecs.exe & csc /nologo primecs.cs J:\dev\test\testperf>primecs number of primes: 664579 elapsed time: 0,390625 (I incorporated your suggestion for the innerloop, which shaved off another 20% or so in the C# classes)