X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fbenchmark.cpp;h=0598973a42aef60a7e864d0a8f6cff29793a2b0c;hp=54455d88a7f1c83bc2676e8131e8951260508188;hb=5a72ff128e4a5b606229396443f8e44ce6da5e46;hpb=3f63dd10234f07ead21ba5a6c8a4a3c41c29c451 diff --git a/src/benchmark.cpp b/src/benchmark.cpp index 54455d88..0598973a 100644 --- a/src/benchmark.cpp +++ b/src/benchmark.cpp @@ -134,6 +134,7 @@ void benchmark(const std::string& commandLine) { int startTime = get_system_time(); std::vector::iterator it; int cnt = 1; + int64_t totalNodes = 0; for (it = positions.begin(); it != positions.end(); ++it, ++cnt) { Move moves[1] = {MOVE_NONE}; @@ -141,8 +142,10 @@ void benchmark(const std::string& commandLine) { Position pos(*it); std::cout << "\nProcessing position " << cnt << '/' << positions.size() << std::endl << std::endl; think(pos, true, false, 0, dummy, dummy, 0, maxDepth, maxNodes, secsPerPos, moves); + totalNodes += nodes_searched(); } - std::cout << "\n\nBenchmarking finished. Processing time (ms) " << get_system_time() - startTime - << std::endl << "Press any key to exit\n"; + std::cout << "\nProcessing time (ms) " << get_system_time() - startTime << std::endl + << "Nodes searched " << totalNodes << std::endl + << "Press any key to exit" << std::endl; std::cin >> fileName; }