[Haskell-cafe] In-place modification

Hugh Perkins hughperkins at gmail.com
Sun Jul 15 08:12:04 EDT 2007


On 7/15/07, Sebastian Sylvan <sebastian.sylvan at gmail.com> 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)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.haskell.org/pipermail/haskell-cafe/attachments/20070715/f4e5719f/attachment-0001.htm


More information about the Haskell-Cafe mailing list