[Haskell-cafe] #haskell works
Paul Johnson
paul at cogito.org.uk
Sat Dec 15 07:12:34 EST 2007
Andrew Coppin wrote:
> Program with no particular optimisations: 0.35 seconds.
> Program with stream fusion [and GHC HEAD]: 0.25 seconds.
> Program with stream fusion and ByteString: 0.05 seconds.
>
> Surely you'd have to work pretty hard to get that kind of speed even
> in C. ;-)
>
> ...erm, actually no. Somebody sat down and wrote something in five
> minutes that takes 0.005 seconds. Oops!
You may also be paying a fixed cost penalty in GHC run-time
initialization. Try increasing N and see what happens.
Paul.
More information about the Haskell-Cafe
mailing list