Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: question about optimizing code

Author: Gerd Isenberg

Date: 01:16:45 07/08/03

Go up one level in this thread


On July 07, 2003 at 17:40:46, Russell Reagan wrote:

>This implements Tim's method. I get the output n = 1799993753, time = 6.339 on
>Athlon 2GHz. Let's implement some of the others and compare.
>

Hi Russell,

hmm there is something wrong - my first try of your code:

n = 179992636, time = 0.687

aha, with
#define MAX_ITERATIONS 100000000

i get on P4 2.4GHz

n = 1799993753, time = 6.875

I bet that in this "dumb" test loops the switch256 approach is fastest...
But i have to work a bit, so maybe later...

Regars,
Gerd



This page took 0 seconds to execute

Last modified: Thu, 15 Apr 21 08:11:13 -0700

Current Computer Chess Club Forums at Talkchess. This site by Sean Mintz.