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

John Meacham john at repetae.net
Fri Feb 20 17:33:12 EST 2009


Don't forget jhc:

on my machine (with 'print' equivalent added to C one to be fair, and
10^9 changed to 1000*1000*1000 just like the C one)

ghc: (-O2)
time ./foo
./foo  2.26s user 0.00s system 99% cpu 2.273 total

gcc: 
time ./a.out
./a.out  0.34s user 0.00s system 99% cpu 0.341 total

jhc:
time ./hs.out
./hs.out  0.33s user 0.00s system 96% cpu 0.347 total

Yay! it is good to see my goal of C-equivalent performance starting to
come true :)

        John




-- 
John Meacham - ⑆repetae.net⑆john⑈


More information about the Haskell-Cafe mailing list