[Haskell-cafe] A tale of Project Euler

Andrew Coppin andrewcoppin at btinternet.com
Tue Nov 27 16:02:36 EST 2007

Don Stewart wrote:
> This is an FAQ. 
> Unless you use the same algorithm and data types in benchmarks, you're 
> not really benchmarking anything. And expecting one of the worst
> possible algorithms to be good is hoping for a little too much :)

Well, if I was comparing my Haskell against some expert-optimised C 
library then yeah. What puzzled me is that both programs are unoptimised 
and appear to be using *the same* algorithm, and yet the performance is 

Now that Brent has spoken, I understand the error of my ways. ;-)

> When you do use similar data types and algorithms, you get similar
> performance.

One would hope so, yes... :-)

More information about the Haskell-Cafe mailing list