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

Bulat Ziganshin bulat.ziganshin at gmail.com
Fri Feb 20 18:07:46 EST 2009

Hello Thomas,

Saturday, February 21, 2009, 1:55:33 AM, you wrote:

>> most of these tests depends on libraries speed. in one test, PHP is
>> 1st. from 2 or 3 tests that depends on compiler speed, one was fooled
>> by adding special function readInt to ghc libs and the rest are
>> written in low-level haskell code - look the sources

> Shock news – benchmarks lead to compiler and library optimisations.

read carefully - it was not general-purpose optimization, Don just
added function readInt since Haskell read is very slow. if he was
optimized general read so many applications will benefit from this -
it would be great

but if you want to believe that ghc was optimised in the way that
avery program becomes 50x faster - i can't stop you :D

>> i'm sorry, but this test only shows amount of work spent to optimize
>> these programs. results of some tests was made 10-100 times better,
>> while improving real programs performance needs much more work :)

> I don't get your point at all.  Are you implying that none of the code
> for any of the other languages up there is optimized in any way?

code for other languages usually written in idiomatic way. it was
local Haskell epidemy. you may compare mandelbrot sources in C and

Best regards,
 Bulat                            mailto:Bulat.Ziganshin at gmail.com

More information about the Haskell-Cafe mailing list