[Shootout-list] PHP 5, Haskell 6.4

Einar Karttunen ekarttun@cs.helsinki.fi
Wed, 16 Mar 2005 00:05:56 +0200


Tomasz Zielonka <tomasz.zielonka@gmail.com> writes:
> Please use the attached version of the count-words benchmarks. It
> manages to combine elegance with speed.

This appears to be 2x slower with GHC6.4 than the current solution
with a quick benchmark:

with N=1000

e@yui ~/work/shootout/bench/wc $ time ./c.out < I1000 
25000 137000 6096000

real    0m0.132s
user    0m0.111s
sys     0m0.021s
e@yui ~/work/shootout/bench/wc $ time ./d.out < I1000 
25000 137000 6096000

real    0m0.338s
user    0m0.321s
sys     0m0.017s

Where c is the current and d the modified one. This may 
of course just be an artefact of my testing...

- Einar Karttunen