bhlangonijr / chesslib

chess library for legal move generation, FEN/PGN parsing and more
Apache License 2.0
229 stars 80 forks source link

JProfiler, Perft and performance observations #89

Open osvitashev opened 2 years ago

osvitashev commented 2 years ago

I decided to run Perft function with JProfiler. Overall, Perft runs at about 3 million nodes/second on my machine, which is pretty slow, but i realize that Java is supposed to be slower than C++. For comparison, kz04px/libchess which is written in C++ runs at about 50 million nodes/second. Here are some observations:

I might take a stab at these at some point. Below are JProfiler screenshots. Let me know is i am on a totally wrong track.

image

image