[Shootout-list] PHP 5, Haskell 6.4

Tomasz Zielonka tomasz.zielonka at gmail.com
Sun Apr 23 22:54:52 UTC 2006


On Wed, Mar 16, 2005 at 12:05:56AM +0200, Einar Karttunen wrote:
> Tomasz Zielonka <tomasz.zielonka at 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 at yui ~/work/shootout/bench/wc $ time ./c.out < I1000 
> 25000 137000 6096000
> 
> real    0m0.132s
> user    0m0.111s
> sys     0m0.021s
> e at 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...

I thought it should be about the same - at least someone reported it is
close with GHC 6.3.x. I'll see if I can do something with it.

Best regards
Tomasz



More information about the Shootout-list mailing list