
On Fri, Mar 26, 2010 at 10:42 PM, Bernie Pope
On 27 March 2010 04:46, Rafael Cunha de Almeida
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