bench used prev TT entries
This commit is contained in:
1 parent
8e6b8db124
commit
c6f521009d
3 files changed
+7
-1
No files matched your search
@@ -1,6 +1,7 @@
|
||||
#include "benchmark.h"
|
||||
#include "search.h"
|
||||
#include "stopwatch.h"
|
||||
#include "tt.h"
|
||||
#include <array>
|
||||
|
||||
const std::array<std::string, 50> fenPositions = {
|
||||
@@ -60,6 +61,9 @@ void RunBenchmark() {
|
||||
Board board;
|
||||
int depth = 5;
|
||||
benchStarted = true;
|
||||
searchStopped = false;
|
||||
TT.Clear();
|
||||
nodes = 0;
|
||||
|
||||
Stopwatch sw;
|
||||
for (int i = 0; i < fenPositions.size(); i++) {
|
||||
@@ -69,5 +73,6 @@ void RunBenchmark() {
|
||||
|
||||
std::cout << nodes << " nodes " << int(nodes/sw.GetElapsedSec()) << " nps\n";
|
||||
nodes = 0;
|
||||
TT.Clear();
|
||||
benchStarted = false;
|
||||
}
|
||||
@@ -10,7 +10,6 @@ bool benchStarted = false;
|
||||
|
||||
static inline int ply = 0;
|
||||
static inline int timeToSearch = 0;
|
||||
static inline bool searchStopped = false;
|
||||
static inline bool doingNullMove = false;
|
||||
|
||||
// [id][ply]
|
||||
|
||||
@@ -11,6 +11,8 @@ extern bool benchStarted;
|
||||
|
||||
constexpr int inf = 100000;
|
||||
|
||||
inline bool searchStopped = false;
|
||||
|
||||
class SearchResults {
|
||||
public:
|
||||
int score = 0;
|
||||
|
||||
Reference in new issue
Block a user