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

Thomas Davie tom.davie at gmail.com
Fri Feb 20 17:55:33 EST 2009

On 20 Feb 2009, at 23:52, Bulat Ziganshin wrote:

> Hello Thomas,
> Saturday, February 21, 2009, 1:41:24 AM, you wrote:
>> You need look no further than the debian language shootout that  
>> things
>> really aren't as bad as you're making out √ Haskell comes in in
>> general less than 3x slower than gcc compiled C.
> you should look inside these tests, as i done :)
> 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.

News at 11!

>> Of note, of all the managed languages, this is about the fastest √
>> none of the other languages that offer safety and garbage collection
>> etc get as close as Haskell does.
> 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?


More information about the Haskell-Cafe mailing list