ensapsulated nodes | bench 1857933
This commit is contained in:
1 parent
6027dbd377
commit
eff4f50ee8
6 files changed
+56
-45
No files matched your search
@@ -75,16 +75,16 @@ void RunBenchmark() {
|
||||
|
||||
history.Clear();
|
||||
|
||||
nodes = 0;
|
||||
SearchContext ctx;
|
||||
|
||||
|
||||
Stopwatch sw;
|
||||
for (int i = 0; i < fenPositions.size(); i++) {
|
||||
board.SetByFen(fenPositions[i]);
|
||||
SearchPosition<bench>(board, SearchParams());
|
||||
SearchPosition<bench>(board, SearchParams(), ctx);
|
||||
}
|
||||
|
||||
std::cout << nodes << " nodes " << int(nodes/sw.GetElapsedSec()) << " nps" << std::endl;
|
||||
nodes = 0;
|
||||
std::cout << ctx.nodes << " nodes " << int(ctx.nodes/sw.GetElapsedSec()) << " nps" << std::endl;
|
||||
TT.Clear();
|
||||
benchStarted = false;
|
||||
std::memset(killerMoves, 0, sizeof(killerMoves));
|
||||
|
||||
Reference in new issue
Block a user