encapsulated TT
This commit is contained in:
1 parent
e7079c3c73
commit
8ca878275a
6 files changed
+28
-26
No files matched your search
@@ -4,7 +4,6 @@
|
||||
#include "benchmark.h"
|
||||
#include "search.h"
|
||||
#include "stopwatch.h"
|
||||
#include "tt.h"
|
||||
|
||||
using namespace SEARCH;
|
||||
|
||||
@@ -66,12 +65,8 @@ 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]);
|
||||
@@ -79,5 +74,4 @@ void RunBenchmark() {
|
||||
}
|
||||
|
||||
std::cout << ctx.nodes << " nodes " << int(ctx.nodes/sw.GetElapsedSec()) << " nps" << std::endl;
|
||||
TT.Clear();
|
||||
}
|
||||
Reference in new issue
Block a user