mirror of
https://github.com/official-stockfish/Stockfish.git
synced 2026-07-22 12:47:08 +00:00
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:
committed by
Joost VandeVondele
parent
4b8fffe3b3
commit
563b4a9c4d
+1
-8
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user