When I change the C++ program into:
Bulat Ziganshin <bulat.ziganshin@gmail.com> wrote:Nice! Now we know that gcc can calculate faster than Haskell can
> 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
>
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.
_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe