Re: [stack] Re: Digest Number 89

Louis Madon — 2000-09-11 11:29:14

Stefano Lanzavecchia wrote:
>
>
>
> [eGroups] My Groups | concatenative Main Page | Start a
> new group!
>
> --- In concatenative@egroups.com, Louis Madon <madonl@b...> wrote:
> > The most suprising result for me, was the poor showing of ghc (a
> Haskell
> > compiler) - it was almost as slow as the Joy interpreter; nearly 14
> > times slower than the O'Caml version and 20 times slower than the C
> > version.
>
> May this not be caused by the fact that by default Haskell uses
> extended (i.e.: infinite) precision integers?
> --
> WildHeart'2k
>


Sorry yes, that was a silly blunder on my part. Replacing 10000000 with
(10000000::Int) reduced the ghc benchmark to 1.8 seconds. Much better!


--
Louis.