X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fbenchmark.cpp;h=f61b5da31bef9783f39a9830ce72f7612b1686c1;hp=f2d1f0686c60925116b5ed08f917f17605d0fcf1;hb=bdeda52efd55c97d0f5da908267c01f973371e5d;hpb=8662bdfa124ae3ec90d9bf88842d9cfab9a43532 diff --git a/src/benchmark.cpp b/src/benchmark.cpp index f2d1f068..f61b5da3 100644 --- a/src/benchmark.cpp +++ b/src/benchmark.cpp @@ -2,7 +2,7 @@ Stockfish, a UCI chess playing engine derived from Glaurung 2.1 Copyright (C) 2004-2008 Tord Romstad (Glaurung author) Copyright (C) 2008-2015 Marco Costalba, Joona Kiiski, Tord Romstad - Copyright (C) 2015-2016 Marco Costalba, Joona Kiiski, Gary Linscott, Tord Romstad + Copyright (C) 2015-2017 Marco Costalba, Joona Kiiski, Gary Linscott, Tord Romstad Stockfish is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -109,15 +109,15 @@ 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 else if (limitType == "nodes") - limits.nodes = stoi(limit); + limits.nodes = stoll(limit); else if (limitType == "mate") limits.mate = stoi(limit);