X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fbenchmark.cpp;h=f61b5da31bef9783f39a9830ce72f7612b1686c1;hp=21c6ec1123fb43fe4a648d0ccc411e4842d8ed7c;hb=750dfa0521472e86c67f870fe7ca413d670cafe2;hpb=dbc984d9f87ba79db3c7802310450f60e95e89e4 diff --git a/src/benchmark.cpp b/src/benchmark.cpp index 21c6ec11..f61b5da3 100644 --- a/src/benchmark.cpp +++ b/src/benchmark.cpp @@ -109,9 +109,9 @@ void benchmark(const Position& current, istream& is) { string fenFile = (is >> token) ? token : "default"; string limitType = (is >> token) ? token : "depth"; - Options["Hash"] = ttSize; + Search::clear(); // Wait for search finished Options["Threads"] = threads; - Search::clear(); + Options["Hash"] = ttSize; if (limitType == "time") limits.movetime = stoi(limit); // movetime is in millisecs