Skip to content

Commit bd1c3ed

Browse files
committed
Add more depth/positions to bench
Increase bench default depth from 12 to 13 and add 15 new endgame positions to have broader coverage and also more reliable nps calulcation used for fishtest framework. Due to the new endgame positions, where nps is higher, the total nps is increased of about 15%. Thanks to Lucas and Jörg for the suggestions. No functional change, but bench number is now: bench: 8336338
1 parent cca34e2 commit bd1c3ed

File tree

1 file changed

+17
-3
lines changed

1 file changed

+17
-3
lines changed

src/benchmark.cpp

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,21 @@ static const char* Defaults[] = {
4747
"3r1rk1/p5pp/bpp1pp2/8/q1PP1P2/b3P3/P2NQRPP/1R2B1K1 b - - 6 22",
4848
"r1q2rk1/2p1bppp/2Pp4/p6b/Q1PNp3/4B3/PP1R1PPP/2K4R w - - 2 18",
4949
"4k2r/1pb2ppp/1p2p3/1R1p4/3P4/2r1PN2/P4PPP/1R4K1 b - - 3 22",
50-
"3q2k1/pb3p1p/4pbp1/2r5/PpN2N2/1P2P2P/5PP1/Q2R2K1 b - - 4 26"
50+
"3q2k1/pb3p1p/4pbp1/2r5/PpN2N2/1P2P2P/5PP1/Q2R2K1 b - - 4 26",
51+
"6k1/6p1/6Pp/ppp5/3pn2P/1P3K2/1PP2P2/3N4 b - - 0 1",
52+
"3b4/5kp1/1p1p1p1p/pP1PpP1P/P1P1P3/3KN3/8/8 w - - 0 1",
53+
"2K5/p7/7P/5pR1/8/5k2/r7/8 w - - 0 1",
54+
"8/6pk/1p6/8/PP3p1p/5P2/4KP1q/3Q4 w - - 0 1",
55+
"7k/3p2pp/4q3/8/4Q3/5Kp1/P6b/8 w - - 0 1",
56+
"8/2p5/8/2kPKp1p/2p4P/2P5/3P4/8 w - - 0 1",
57+
"8/1p3pp1/7p/5P1P/2k3P1/8/2K2P2/8 w - - 0 1",
58+
"8/pp2r1k1/2p1p3/3pP2p/1P1P1P1P/P5KR/8/8 w - - 0 1",
59+
"8/3p4/p1bk3p/Pp6/1Kp1PpPp/2P2P1P/2P5/5B2 b - - 0 1",
60+
"5k2/7R/4P2p/5K2/p1r2P1p/8/8/8 b - - 0 1",
61+
"6k1/6p1/P6p/r1N5/5p2/7P/1b3PP1/4R1K1 w - - 0 1",
62+
"1r3k2/4q3/2Pp3b/3Bp3/2Q2p2/1p1P2P1/1P2KP2/3N4 w - - 0 1",
63+
"6k1/4pp1p/3p2p1/P1pPb3/R7/1r2P1PP/3B1P2/6K1 w - - 0 1",
64+
"8/3p3B/5p2/5P2/p7/PP5b/k7/6K1 w - - 0 1"
5165
};
5266

5367

@@ -68,7 +82,7 @@ void benchmark(const Position& current, istream& is) {
6882
// Assign default values to missing arguments
6983
string ttSize = (is >> token) ? token : "32";
7084
string threads = (is >> token) ? token : "1";
71-
string limit = (is >> token) ? token : "12";
85+
string limit = (is >> token) ? token : "13";
7286
string fenFile = (is >> token) ? token : "default";
7387
string limitType = (is >> token) ? token : "depth";
7488

@@ -89,7 +103,7 @@ void benchmark(const Position& current, istream& is) {
89103
limits.depth = atoi(limit.c_str());
90104

91105
if (fenFile == "default")
92-
fens.assign(Defaults, Defaults + 16);
106+
fens.assign(Defaults, Defaults + 30);
93107

94108
else if (fenFile == "current")
95109
fens.push_back(current.fen());

0 commit comments

Comments
 (0)