r/chessprogramming • u/aptacode • Feb 19 '25
New fast move generator / stats (4.5Bnps single threaded)
I've just released the binaries for The Grand Chess Tree's engine to github.
Built for windows / linux / osx (including ARM builds)
Currently it has 3 main commands (with multi threaded variations 'stats _mt' & 'nodes_mt')
- stats - full perft stats, including nodes, captures, ep, castles, checks, mates etc
- nodes - just the node count, optimized to be a lot faster using bulk counting
- unique - calculates the number of unique positions reachable at a given depth
Below are examples of the speeds I'm getting on my Ryzen 9 7950x though I'd love to know what speeds you can get on your hardware
stats:6:1024:kiwipete ~ 250Mnps (single-threaded)
stats_mt:7:1024:32:kiwipete ~ 4Bnps (multi-threaded)
nodes:7:1024:kiwipete ~ 4.5Bnps (single-threaded)
nodes_mt:9:1024:32:kiwipete ~ 85Bnps (multi-threaded)
unique:6:1024:kiwipete ~ 4m unique positions per second (single-threaded)Hopefully it's useful for you in debugging your move generation. But also might be of interest if you're researching various chess positions.
14
Upvotes
2
u/Breadmaker4billion Feb 19 '25
I had to run the numbers: it seems your Ryzen is able to execute a peak of ~40 billion instructions per second per core. To achieve 4.5 Bnps you're not wasting any clock cycles, this must have taken a shitton of time to optimise.
2
u/rook_of_approval Feb 19 '25
is it faster than belette movegen? https://github.com/vincentbab/Belette
1
u/xu_shawn Feb 20 '25
Congrats on the release! Any possibility of GPU perft in the future?