Cleanup benchmark

Avoid unnecessary consecutive ucinewgame commands in benchmark setup.
Remove measuring time and nodes in speedtest warmup.

closes https://github.com/official-stockfish/Stockfish/pull/6427

No functional change
This commit is contained in:
Andreas Matthies
2025-11-17 13:37:55 +01:00
committed by Joost VandeVondele
parent 4b8fffe3b3
commit 563b4a9c4d
2 changed files with 1 additions and 9 deletions
+1 -8
View File
@@ -339,16 +339,9 @@ void UCIEngine::benchmark(std::istream& args) {
Search::LimitsType limits = parse_limits(is);
TimePoint elapsed = now();
// Run with silenced network verification
engine.go(limits);
engine.wait_for_search_finished();
totalTime += now() - elapsed;
nodes += nodesSearched;
nodesSearched = 0;
}
else if (token == "position")
position(is);
@@ -396,6 +389,7 @@ void UCIEngine::benchmark(std::istream& args) {
Search::LimitsType limits = parse_limits(is);
nodesSearched = 0;
TimePoint elapsed = now();
// Run with silenced network verification
@@ -407,7 +401,6 @@ void UCIEngine::benchmark(std::istream& args) {
updateHashfullReadings();
nodes += nodesSearched;
nodesSearched = 0;
}
else if (token == "position")
position(is);