X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fbenchmark.cpp;h=f61b5da31bef9783f39a9830ce72f7612b1686c1;hp=21c6ec1123fb43fe4a648d0ccc411e4842d8ed7c;hb=bdeda52efd55c97d0f5da908267c01f973371e5d;hpb=d8f683760c9eb6d2c4714ec83e717dd2143de55c 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