[Haskell-cafe] Re: Haskell vs Ruby as a scripting language

Simon Marlow simonmarhaskell at gmail.com
Wed Feb 21 06:54:59 EST 2007

Neil Mitchell wrote:
> Hi Simon
>> Benchmarks please!  Let's see some comparisons on the nofib suite.  If 
>> there's a
>> factor of 2 or less between GHC -O2 and YHC for any of the nofib 
>> programs,  I'll
>> eat my keyboard for lunch :-)
> http://www.cse.unsw.edu.au/~dons/nobench/bench.results
> Test: pidigits (lazy, arbitrary precision integers)
> http://www.cse.unsw.edu.au/~dons/code/nobench/imaginary/pidigits
> ghc                  3.200    seconds            (1.0 x)
> ghci                 3.500    seconds            (1.1 x)
> ghc-old              3.600    seconds            (1.1 x)
> yhc                  5.740    seconds            (1.8 x)
> Would you like ketchup with that? ;)

pidigits is not (currently) one of the nofib programs (phew :-).  I suppose the 
reason for the results is because the test spends most of its time in GMP?

There are some other odd results in nobench, like the 2 programs where Hugs 
beats GHC that we need to look into.


More information about the Haskell-Cafe mailing list