Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a standardized, consistent benchmark for hardware performance testing. #5354

Closed
wants to merge 1 commit into from

Commits on Sep 28, 2024

  1. Add a standardized benchmark command speedtest.

    `speedtest [threads] [hash_MiB] [time_s]`. `threads` default to system concurrency. `hash_MiB` defaults to `threads*128`. `time_s` defaults to 150.
    
    Intended to be used with default parameters, as a stable hardware benchmark.
    
    Example:
    ```
    C:\dev\stockfish-master\src>stockfish.exe speedtest
    Stockfish dev-20240928-nogit by the Stockfish developers (see AUTHORS file)
    info string Using 16 threads
    Warmup position 3/3
    Position 258/258
    ===========================
    Version                    : Stockfish dev-20240928-nogit
    Compiled by                : g++ (GNUC) 13.2.0 on MinGW64
    Compilation architecture   : x86-64-vnni256
    Compilation settings       : 64bit VNNI BMI2 AVX2 SSE41 SSSE3 SSE2 POPCNT
    Compiler __VERSION__ macro : 13.2.0
    Large pages                : yes
    User invocation            : speedtest
    Filled invocation          : speedtest 16 2048 150
    Available processors       : 0-15
    Thread count               : 16
    Thread binding             : none
    TT size [MiB]              : 2048
    Hash max, avg [per mille]  :
        single search          : 40, 21
        single game            : 631, 428
    Total nodes searched       : 2099917842
    Total search time [s]      : 153.937
    Nodes/second               : 13641410
    ```
    
    -------------------------------
    
    Small unrelated tweaks:
     - Network verification output is now handled as a callback.
     - TT hashfull queries allow specifying maximum entry age.
    
    No functional changes.
    Sopel97 committed Sep 28, 2024
    Configuration menu
    Copy the full SHA
    5a71324 View commit details
    Browse the repository at this point in the history