[Haskell-cafe] GHC vs GCC
Rafael Almeida
almeidaraf at gmail.com
Sat Mar 27 00:40:33 EDT 2010
On Fri, Mar 26, 2010 at 10:42 PM, Bernie Pope <florbitous at gmail.com> wrote:
> On 27 March 2010 04:46, Rafael Cunha de Almeida <almeidaraf at gmail.com> wrote:
>
>> During a talk with a friend I came up with two programs, one written in
>> C and another in haskell.
>
> snip
>
>> The Haskell version:
>> real 0m45.335s
>> user 0m45.275s
>> sys 0m0.004s
>>
>> against the C version:
>> real 0m6.021s
>> user 0m6.004s
>> sys 0m0.004s
>
>
> Could you please report which version of each compiler, which
> operating system, and which CPU?
My operating system is a Debian Lenny GNU/Linux, my CPU is:
$ grep 'model name' /proc/cpuinfo
model name : Intel(R) Core(TM)2 Duo CPU T5550 @ 1.83GHz
I'm using ghc 6.8.2 and gcc 4.3.2, both from lenny package. I tried
the same code with ghc 6.12.1 and the result was the same:
real 0m45.121s
user 0m45.075s
sys 0m0.000s
More information about the Haskell-Cafe
mailing list