On 7/15/07, Sebastian Sylvan <[EMAIL PROTECTED]> wrote:

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)
_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to