CookieCat and perft

Discussion of chess software programming and technical issues.

Moderators: hgm, Rebel, chrisw

User avatar
sje
Posts: 4675
Joined: Mon Mar 13, 2006 7:43 pm

CookieCat and perft

Post by sje »

I have upgraded CookieCat to use transposition tables when running a multi-threaded perft. I have also adjusted the perft transposition table entry count upwards to 2^24 (16,777,2166). The result is that, for now at least, the program needs to run on a machine with at least 4 GB RAM. ( A one line change in the source can adjust this.)

Pascal source: https://dl.dropbox.com/u/31633927/Cooki ... kieCat.pas

The resulting code for 64 bit Linux and Mac tests correctly.

For a low cost (US$400) 3.1 GHz AMD Athlon II/X4 machine, CookieCat does perft 10 in under a day at close to a 1 GHz node frequency:

Code: Select all

[] mtperft 10
Na3 2440848135252
Nc3 3096505857746
Nf3 3090773583680
Nh3 2470483499345
a3 2149477156227
a4 2905552970419
b3 2774842822463
b4 2772533545113
c3 3072577495123
c4 3437747391692
d3 5071006040569
d4 6459463242656
e3 7299373354878
e4 7380003266234
f3 1945020011164
f4 2418056589775
g3 2853630724145
g4 2624128147144
h3 2142832044687
h4 2948003834105
[ts] Count: 69352859712417   Time: 000.20:52:05.421   Frequency: 923161012
Lesser perft drafts are done considerably faster.

More to come.
User avatar
sje
Posts: 4675
Joined: Mon Mar 13, 2006 7:43 pm

perft 7, 8, and 9

Post by sje »

Here are perft 7, 8, and 9 for CookieCat running on the low cost 3.1 GHz AMD Athlon II/X4machine:

Code: Select all

[] mtperft 7
Na3 120142144
Nc3 148527161
Nf3 147678554
Nh3 120669525
a3 106743106
a4 137077337
b3 133233975
b4 134087476
c3 144074944
c4 157756443
d3 227598692
d4 269605599
e3 306138410
e4 309478263
f3 102021008
f4 119614841
g3 135987651
g4 130293018
h3 106678423
h4 138495290
[ts] Count: 3195901860   Time: 000.00:00:24.811   Frequency: 128809877
[] mtperft 8
Na3 3193522577
Nc3 3926684340
Nf3 3937354096
Nh3 3221278282
a3 2863411653
a4 3676309619
b3 3579299617
b4 3569067629
c3 3806229124
c4 4199667616
d3 6093248619
d4 7184581950
e3 8039390919
e4 8102108221
f3 2728615868
f4 3199039406
g3 3641432923
g4 3466204702
h3 2860408680
h4 3711123115
[ts] Count: 84998978956   Time: 000.00:05:23.077   Frequency: 263092015
[] mtperft 9
Na3 85849641909
Nc3 109418317145
Nf3 108393009416
Nh3 86659653631
a3 74950758099
a4 101265301849
b3 96577095997
b4 97442160946
c3 108697368719
c4 120549219832
d3 176976245463
d4 227220482342
e3 259522947791
e4 263561543780
f3 68094899093
f4 84792070664
g3 99646370024
g4 92281289941
h3 74778417365
h4 102853440161
[ts] Count: 2439530234167   Time: 000.01:07:51.898   Frequency: 599113787
User avatar
sje
Posts: 4675
Joined: Mon Mar 13, 2006 7:43 pm

And on a 3.2 GHz Core i3

Post by sje »

And on a 3.2 GHz Core i3 (two cores/four threads), CookieCat does perft 10 in 23 hours 56 minutes 14 seconds -- ten seconds more than a siderial day.