[Yhc] Yhc: A second impression
Thorkil Naur
naur at post11.tele.dk
Wed Feb 14 13:42:34 EST 2007
Hello,
On Wednesday 14 February 2007 09:48, Andrew Wilkinson wrote:
> ...
> No, by default Yhi is not built with -O, but by passing type=release to
> scons it will be.
> ... run 'scons
> --config=force'
> ,,,
Thanks a lot. Combining this, I got yhc/yhi compiled with ghc -O and gcc -O2.
On Tuesday 13 February 2007 23:49, Neil Mitchell wrote:
> ...
> Yhc should be faster than Hugs, I would guess twice as fast as Hugs
> normally.
> ...
And, indeed, with this build of yhc, I get the following:
...
__ __ __ __ ____ ___ _________________________________________
|| || || || || || ||__ Hugs 98: Based on the Haskell 98 standard
||___|| ||__|| ||__|| __|| Copyright (c) 1994-2005
||---|| ___|| World Wide Web: http://haskell.org/hugs
|| || Bugs: http://hackage.haskell.org/trac/hugs
|| || Version: 20070105 _________________________________________
Haskell 98 mode: Restart with command line option -98 to enable extensions
Type :? for help
Main> t3: 2007-Feb-13 20.08
t3I_20: fecFactorList [6..105] r43r 1300 4300 1
t3I_20: (1963506722254397,"(1297,4297,[(77,ECUndefined {ecd =
1963506722254397})])")
Main> [Leaving Hugs]
real 6m14.572s
user 5m38.863s
sys 0m4.036s
Compiling IntMath ( IntMath.hs )
...
Compiling Main ( t3.hs )
real 0m47.459s
user 0m38.359s
sys 0m1.534s
t3: 2007-Feb-13 20.08
t3I_20: fecFactorList [6..105] r43r 1300 4300 1
t3I_20: (1963506722254397,"(1297,4297,
[(77,ECUndefined{ecd=1963506722254397})])")
real 2m55.289s
user 2m32.733s
sys 0m2.016s
So -O'd yhc runs t3 at roughly twice the speed of Hugs.
Best regards
Thorkil
More information about the Yhc
mailing list