[Haskell-cafe] Re: newbie optimization question

Don Stewart dons at galois.com
Sun Oct 28 18:22:13 EDT 2007


peter:
> 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.

What Haskell program were you using for this test? The original
naive/high level implementation?

-- Don


More information about the Haskell-Cafe mailing list