1 parent
0242eec87d
commit
43dc63cdf3
6 files changed
+26
-28
No files matched your search
@@ -4,6 +4,7 @@
|
||||
#include "benchmark.h"
|
||||
#include "search.h"
|
||||
#include "stopwatch.h"
|
||||
#include "tt.h"
|
||||
|
||||
using namespace SEARCH;
|
||||
|
||||
@@ -65,8 +66,12 @@ void RunBenchmark() {
|
||||
int depth = BENCH_DEPTH;
|
||||
int ply = 0;
|
||||
|
||||
// Clearing
|
||||
TT.Clear();
|
||||
|
||||
SearchContext ctx;
|
||||
|
||||
|
||||
Stopwatch sw;
|
||||
for (int i = 0; i < fenPositions.size(); i++) {
|
||||
board.SetByFen(fenPositions[i]);
|
||||
@@ -74,4 +79,5 @@ void RunBenchmark() {
|
||||
}
|
||||
|
||||
std::cout << ctx.nodes << " nodes " << int(ctx.nodes/sw.GetElapsedSec()) << " nps" << std::endl;
|
||||
TT.Clear();
|
||||
}
|
||||
Reference in new issue
Block a user