small benchmark adjustments
This commit is contained in:
1 parent
9c3b76d6a0
commit
1ce08aa0cb
1 file changed
+6
-5
@@ -1,11 +1,12 @@
|
||||
#include <cstring>
|
||||
#include <string_view>
|
||||
#include <array>
|
||||
#include "benchmark.h"
|
||||
#include "search.h"
|
||||
#include "stopwatch.h"
|
||||
#include "tt.h"
|
||||
#include <array>
|
||||
#include <cstring>
|
||||
|
||||
const std::array<std::string, 50> fenPositions = {
|
||||
constexpr std::array<std::string_view, 50> fenPositions = {
|
||||
"rnbq1k1r/ppp1bppp/4pn2/8/2B5/2NP1N2/PPP2PPP/R1BQR1K1 b - - 2 8",
|
||||
"rnbq1k1r/pp2bppp/4pn2/2p5/2B2B2/2NP1N2/PPP2PPP/R2QR1K1 b - - 1 9",
|
||||
"r1bq1k1r/pp2bppp/2n1pn2/2p5/2B1NB2/3P1N2/PPP2PPP/R2QR1K1 b - - 3 10",
|
||||
@@ -60,7 +61,7 @@ const std::array<std::string, 50> fenPositions = {
|
||||
|
||||
void RunBenchmark() {
|
||||
Board board;
|
||||
int depth = 5;
|
||||
int depth = 6;
|
||||
int ply = 0;
|
||||
benchStarted = true;
|
||||
searchStopped = false;
|
||||
@@ -76,7 +77,7 @@ void RunBenchmark() {
|
||||
|
||||
Stopwatch sw;
|
||||
for (int i = 0; i < fenPositions.size(); i++) {
|
||||
board.SetByFen(fenPositions[i].c_str());
|
||||
board.SetByFen(fenPositions[i]);
|
||||
PVS(board, depth, -inf, inf, ply);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user