[Haskell-cafe] Re: speed: ghc vs gcc

Achim Schneider barsoap at web.de
Fri Feb 20 09:44:44 EST 2009


Bulat Ziganshin <bulat.ziganshin at gmail.com> wrote:


> execution times:
>  sum:
>    ghc 6.6.1 -O2               : 12.433 secs
>    ghc 6.10.1 -O2              : 12.792 secs
>  sum-fast:
>    ghc 6.6.1 -O2               :  1.919 secs
>    ghc 6.10.1 -O2              :  1.856 secs
>    ghc 6.10.1 -O2 -fvia-C      :  1.966 secs
>  C++:
>    gcc 3.4.5 -O3 -funroll-loops:  0.062 secs
> 
Nice! Now we know that gcc can calculate faster than Haskell can
calculate and print. Next time, use exitWith, please.


-- 
(c) this sig last receiving data processing entity. Inspect headers
for copyright history. All rights reserved. Copying, hiring, renting,
performance and/or quoting of this signature prohibited.




More information about the Haskell-Cafe mailing list