X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fbenchmark.cpp;h=76a85a8ccc795a78d70dccd1194b026d49307ef2;hp=69bfc6c633a11219282645923d202f27ec05528c;hb=535f70088e6fbf19f4775490edab050006734814;hpb=29451de8749ac5c2ed8573ccaeb359a72b8c00c9 diff --git a/src/benchmark.cpp b/src/benchmark.cpp index 69bfc6c6..76a85a8c 100644 --- a/src/benchmark.cpp +++ b/src/benchmark.cpp @@ -138,7 +138,7 @@ void benchmark(const Position& current, istream& is) { cerr << "\nPosition: " << i + 1 << '/' << fens.size() << endl; - if (limitType == "divide") + if (limitType == "perft") for (MoveList it(pos); *it; ++it) { StateInfo si; @@ -148,12 +148,6 @@ void benchmark(const Position& current, istream& is) { cerr << move_to_uci(*it, pos.is_chess960()) << ": " << cnt << endl; nodes += cnt; } - else if (limitType == "perft") - { - uint64_t cnt = Search::perft(pos, limits.depth * ONE_PLY); - cerr << "\nPerft " << limits.depth << " leaf nodes: " << cnt << endl; - nodes += cnt; - } else { Threads.start_thinking(pos, limits, st);