On 18-Sep-1999, Fergus Henderson <[EMAIL PROTECTED]> wrote:
> Well, I tried with ghc 2.08 -- admittedly an ancient version, so
> this is not a fair comparison, but that was what I had on hand.
> On a 300 MHz DEC Alpha system, I got the following times:
> 
>       Language    Compiler version    Options         Time
>       Haskell     ghc 2.08            -O              21.5 seconds
>       Mercury     rotd-1999-09-17     -O6              7.5 seconds
>       Mercury     rotd-1999-09-17     -O6 --gc none    2.2 seconds
>       C++         egcs-1.1.2          -O3               .23 seconds
> 
> Hmm... a ratio of about 100:10:1 for Haskell:Mercury:C++ is, well,
> interesting ;-).
> 
> I wonder how much better ghc 4.x does?

I downloaded ghc 4.04 and ran the same test on a 500MHz Pentium-III
Linux System, and got the following figures:

        Language    Compiler version    Options         Time
        Haskell     ghc 4.04            -O2              8.5 seconds
        Haskell     ghc 4.04            -O2 -fvia-c      8.6 seconds
        Mercury     rotd-1999-09-17     -O6              2.4 seconds
        Mercury     rotd-1999-09-17     -O6 --gc none    1.0 seconds
        C++         egcs-1.1.2          -O3               .17 seconds

So it looks like ghc 4.04 is still a fair way behind, at least as
far as this test case is concerned.

-- 
Fergus Henderson <[EMAIL PROTECTED]>  |  "I have always known that the pursuit
WWW: <http://www.cs.mu.oz.au/~fjh>  |  of excellence is a lethal habit"
PGP: finger [EMAIL PROTECTED]        |     -- the last words of T. S. Garp.



Reply via email to