-
Notifications
You must be signed in to change notification settings - Fork 509
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make benchmark more like Stockfish bench (#1069)
* Make benchmark more like Stockfish bench Add some of the SF bench positions, iterate over them while collecting nodes and times, report time and node count summary at the end. * Fix whitespace Spaces instead of tabs. * Properly handle nodes per second reporting Handle division by zero and proper rounding. * Fix C4596 error Fix illegal qualified name in member declaration error by removing redundant Benchmark::. * Add support for old bench of only starting position Use the --starting-position flag to change the position set to only be the starting position so that scripts that use benchmark can run as they always have. * Update the check scripts to use only the starting position in bench Bench only the starting position to save time. * Fix assignment Allow assignment for starting position. * Fix variable names Fix the variables names to conform to the contributor style. * Remove positions which inflate nps Remove TB endgame positions which inflate nps greatly. * Update the dx check script to use only the starting position in bench Bench only the starting position to save time. * Change how positions are chosen Allow for choosing more than just the starting position. Allow choice of the first number of positions in the list of positions to allow for faster benching. * Update the check scripts to use the new benchmark option Use --num-positions=1 instead of --starting-position. * Update our PGO AppVeyor build to use the new benchmark For now only bench the starting position. * Re-add support for benchmarking a FEN string If provided a FEN string, only test that one position irrespective of --num-positions which is forced to one. * Revert "Update our PGO AppVeyor build to use the new benchmark" This reverts commit dd48294. We no longer do PGO builds and no longer do benching here. * Update our PGO AppVeyor build to use the new benchmark For now only bench the starting position. * Adjust header ordering to conform to style Conform to the style of other code.
- Loading branch information
Showing
5 changed files
with
106 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
@ECHO OFF | ||
ECHO Sanity checking the dx12 driver. | ||
lc0 benchmark --backend=check --backend-opts=mode=check,freq=1.0,atol=5e-1,dx12 %* | ||
lc0 benchmark --num-positions=1 --backend=check --backend-opts=mode=check,freq=1.0,atol=5e-1,dx12 %* | ||
PAUSE | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
@ECHO OFF | ||
ECHO Sanity checking the opencl driver. | ||
lc0 benchmark --backend=check --backend-opts=mode=check,freq=1.0,opencl %* | ||
lc0 benchmark --num-positions=1 --backend=check --backend-opts=mode=check,freq=1.0,opencl %* | ||
PAUSE | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters