encapsualted position index and array | bench 1857933

This commit is contained in:
rektdie committed 2025-04-12 20:39:00 +02:00
1 parent b669fa329e
commit 3225b9c665
8 files changed
+19 -28

No files matched your search

-3
View File
@@ -65,14 +65,12 @@ void RunBenchmark() {
Board board;
int depth = BENCH_DEPTH;
int ply = 0;
positionIndex = 0;
// Clearing
TT.Clear();
SearchContext ctx;
Stopwatch sw;
for (int i = 0; i < fenPositions.size(); i++) {
board.SetByFen(fenPositions[i]);
@@ -81,5 +79,4 @@ void RunBenchmark() {
std::cout << ctx.nodes << " nodes " << int(ctx.nodes/sw.GetElapsedSec()) << " nps" << std::endl;
TT.Clear();
positionIndex = 0;
}