Skip to content

Commit

Permalink
Bench: 23621947
Browse files Browse the repository at this point in the history
  • Loading branch information
TerjeKir committed Dec 30, 2023
1 parent d7a383c commit b161f93
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/tests.c
Original file line number Diff line number Diff line change
Expand Up @@ -122,14 +122,14 @@ void Benchmark(int argc, char **argv) {
// Collect results
BenchResult *r = &results[i];
r->elapsed = TimeSince(Limits.start);
r->nodes = TotalNodes(Threads);
r->nodes = TotalNodes();
r->score = Threads->rootMoves[0].score;
r->best = Threads->rootMoves[0].move;

totalElapsed += r->elapsed;
totalNodes += r->nodes;

ClearTT(Threads);
ClearTT();
}

puts("======================================================");
Expand Down
4 changes: 2 additions & 2 deletions src/uci.c
Original file line number Diff line number Diff line change
Expand Up @@ -219,8 +219,8 @@ void PrintThinking(const Thread *thread, int alpha, int beta) {
const Position *pos = &thread->pos;

TimePoint elapsed = TimeSince(Limits.start);
uint64_t nodes = TotalNodes(thread);
uint64_t tbhits = TotalTBHits(thread);
uint64_t nodes = TotalNodes();
uint64_t tbhits = TotalTBHits();
int hashFull = HashFull();
int nps = (int)(1000 * nodes / (elapsed + 1));

Expand Down

0 comments on commit b161f93

Please sign in to comment.