Skip to content

TampliteSK/perft-by-lang

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

perft-by-lang

A benchmark for speed across different programming languages, via chess move generation (perft).
Languages in list:

  • C++

Implementation details

Each program / script will use bitboards and mailbox for pseudo-legal move generation, particularly magic bitboards for generating slider moves (bishops, rooks and queens). Core movegen is based on BBC (by Maksim Korzh) while board representation is based on VICE (by Richard Allbert).
The C++ codebase is a simplified version of the one used in Dragonrose chess engine. The C codebase is a direct C translation of it (the C++ code is already written in a C-style anyway). Any declarative programming language shall be a loose translation of the same thing.

Statistics

Language Perft Depth / NPS
C++ Depth 6 / 26.6M
C Depth 5 / 12.4M
Pony Depth 69 / 69.4M

About

A benchmark for speed across different programming languages, via chess move generation (perft).

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors