[Haskell] ANNOUNCE: jhc 0.6.0 Haskell Compiler
Brandon S. Allbery KF8NH
allbery at ece.cmu.edu
Wed Mar 18 19:42:14 EDT 2009
On 2009 Mar 18, at 19:16, sylvain wrote:
> Actually, times varie between runs. It tends to decrease (except for
> the
> ghc generated binary), so I suppose it is due to OS cache effects.
> Yet, I consistently observed that, according to "time", hello2 (jhc)
> runs _faster_ than hello3 (gcc).
>
> Something is wrong: how can Haskell be faster than C?
I suspect if you profile you'll find that Haskell's show is faster
than C's printf, especially if the appropriate show instance is
selected at compile time.
--
brandon s. allbery [solaris,freebsd,perl,pugs,haskell] allbery at kf8nh.com
system administrator [openafs,heimdal,too many hats] allbery at ece.cmu.edu
electrical and computer engineering, carnegie mellon university KF8NH
-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 195 bytes
Desc: This is a digitally signed message part
Url : http://www.haskell.org/pipermail/haskell/attachments/20090318/72d81cdf/PGP.bin
More information about the Haskell
mailing list