[Haskell-cafe] Re: newbie optimization question

Peter Hercek peter at syncad.com
Sun Oct 28 18:15:39 EDT 2007


Peter Hercek wrote:
> C++ version times: 1.125; 1.109; 1.125
> Int32 cpu times: 3.203; 3.172; 3.172
> Int64 cpu times: 11.734; 11.797; 11.844
> Integer cpu times: 9.609; 9.609; 9.500

Ooops, my results ware wrong (nonoptimizing ms cl
  compiler used and I used -O instead of -O2 in ghc).

C++ version times: 1.109; 1.125; 1.125
Int32 cpu times: 1.359; 1.359; 1.375
Int64 cpu times: 11.688; 11.719; 11.766
Integer cpu times: 9.719; 9.703; 9.703

Great result from ghc.

Peter.



More information about the Haskell-Cafe mailing list