X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;ds=sidebyside;f=src%2Fbenchmark.cpp;h=464bab78ec29b72e59d26b247275d46f820adcde;hb=0a6532a39d2e2cfd92ba0a2c4fa8c6ad6c29b581;hp=052176cdc2c9b11ee3c5605815ff742be4f50679;hpb=81cd417b4584b0e3830940c5cb122c898afde08a;p=stockfish diff --git a/src/benchmark.cpp b/src/benchmark.cpp index 052176cd..464bab78 100644 --- a/src/benchmark.cpp +++ b/src/benchmark.cpp @@ -59,7 +59,6 @@ static const char* Defaults[] = { void benchmark(int argc, char* argv[]) { - vector searchMoves(1, MOVE_NONE); vector fenList; Search::LimitsType limits; int64_t totalNodes; @@ -72,9 +71,9 @@ void benchmark(int argc, char* argv[]) { string fenFile = argc > 5 ? argv[5] : "default"; string valType = argc > 6 ? argv[6] : "depth"; - Options["Hash"].set_value(ttSize); - Options["Threads"].set_value(threads); - Options["OwnBook"].set_value("false"); + Options["Hash"] = ttSize; + Options["Threads"] = threads; + Options["OwnBook"] = false; // Search should be limited by nodes, time or depth ? if (valType == "nodes") @@ -108,7 +107,7 @@ void benchmark(int argc, char* argv[]) { // Ok, let's start the benchmark ! totalNodes = 0; - time = get_system_time(); + time = system_time(); for (size_t i = 0; i < fenList.size(); i++) { @@ -127,12 +126,12 @@ void benchmark(int argc, char* argv[]) { } else { - Threads.start_thinking(pos, limits, searchMoves, false); + Threads.start_thinking(pos, limits, vector(), false); totalNodes += Search::RootPosition.nodes_searched(); } } - time = get_system_time() - time; + time = system_time() - time; cerr << "\n===============================" << "\nTotal time (ms) : " << time