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

Various micro-optimizations #536

Merged
merged 10 commits into from
Oct 3, 2023
Merged

Various micro-optimizations #536

merged 10 commits into from
Oct 3, 2023

Conversation

brunocodutra
Copy link
Owner

@brunocodutra brunocodutra commented Oct 2, 2023

Gauntlet

cutechess-cli -tournament gauntlet -games 2 -rounds 1500 -openings file=engines/openings-6ply-1000.pgn plies=6 policy=round -concurrency 4 -ratinginterval 10 -resultformat wide -recover -engine conf=dev -engine conf=Vajolet2_2.8 -engine conf=Monolith-2 -engine conf=Wahoo_v4 -each tc=3+0.025

Rank Name                          Elo     +/-   Games    Wins  Losses   Draws   Points   Score    Draw 
   0 dev                           -16       6    9000    2967    3390    2643   4288.5   47.6%   29.4% 
   1 Wahoo_v4                       26      10    3000    1153     932     915   1610.5   53.7%   30.5% 
   2 Monolith-2                     21      10    3000    1149     972     879   1588.5   52.9%   29.3% 
   3 Vajolet2_2.8                    3      11    3000    1088    1063     849   1512.5   50.4%   28.3%

STS1-STS15_LAN_v6.epd

python sts_rating.py -f "./epd/STS1-STS15_LAN_v6.epd" -e dev -t 8 --movetime 100 --maxpoint 100

STS Rating v14.2
Engine: chessboard
Hash: 32, Threads: 8, time/pos: 0.100s

Number of positions in ./epd/STS1-STS15_LAN_v6.epd: 1188
Max score = 1188 x 100 = 118800
Test duration: 00h:02m:01s
Expected time to finish: 00h:02m:34s

  STS ID   STS1   STS2   STS3   STS4   STS5   STS6   STS7   STS8   STS9  STS10  STS11  STS12  STS13  STS14  STS15    ALL
  NumPos     85     80     86     89     85     80     82     80     71     79     70     74     75     79     73   1188
 BestCnt     59     51     55     64     62     46     51     51     39     53     45     47     49     52     43    767
   Score   7206   6327   6822   7718   7523   7437   6611   6708   5370   6900   5937   6224   6303   6503   6285  99874
Score(%)   84.8   79.1   79.3   86.7   88.5   93.0   80.6   83.8   75.6   87.3   84.8   84.1   84.0   82.3   86.1   84.1

:: STS ID and Titles ::
STS 01: Undermining
STS 02: Open Files and Diagonals
STS 03: Knight Outposts
STS 04: Square Vacancy
STS 05: Bishop vs Knight
STS 06: Re-Capturing
STS 07: Offer of Simplification
STS 08: Advancement of f/g/h Pawns
STS 09: Advancement of a/b/c Pawns
STS 10: Simplification
STS 11: Activity of the King
STS 12: Center Control
STS 13: Pawn Play in the Center
STS 14: Queens and Rooks to the 7th rank
STS 15: Avoid Pointless Exchange

:: Top 5 STS with high result ::
1. STS 06, 93.0%, "Re-Capturing"
2. STS 05, 88.5%, "Bishop vs Knight"
3. STS 10, 87.3%, "Simplification"
4. STS 04, 86.7%, "Square Vacancy"
5. STS 15, 86.1%, "Avoid Pointless Exchange"

:: Top 5 STS with low result ::
1. STS 09, 75.6%, "Advancement of a/b/c Pawns"
2. STS 02, 79.1%, "Open Files and Diagonals"
3. STS 03, 79.3%, "Knight Outposts"
4. STS 07, 80.6%, "Offer of Simplification"
5. STS 14, 82.3%, "Queens and Rooks to the 7th rank"

@codecov
Copy link

codecov bot commented Oct 2, 2023

Codecov Report

Attention: 34 lines in your changes are missing coverage. Please review.

Comparison is base (b7a3be6) 83.72% compared to head (62c46d1) 82.38%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #536      +/-   ##
==========================================
- Coverage   83.72%   82.38%   -1.34%     
==========================================
  Files          37       37              
  Lines        1161     1164       +3     
==========================================
- Hits          972      959      -13     
- Misses        189      205      +16     
Files Coverage Δ
lib/chess/color.rs 100.00% <ø> (ø)
lib/chess/file.rs 100.00% <ø> (ø)
lib/chess/position.rs 87.57% <100.00%> (-0.77%) ⬇️
lib/chess/rank.rs 100.00% <ø> (ø)
lib/chess/square.rs 100.00% <ø> (ø)
lib/nnue/evaluator.rs 98.73% <100.00%> (ø)
lib/nnue/feature.rs 100.00% <100.00%> (ø)
lib/nnue/transformer.rs 100.00% <100.00%> (ø)
lib/nnue/vector.rs 95.65% <100.00%> (ø)
lib/search/engine.rs 94.44% <100.00%> (ø)
... and 9 more

... and 1 file with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@brunocodutra brunocodutra marked this pull request as ready for review October 3, 2023 17:51
@brunocodutra brunocodutra merged commit 87c6a50 into master Oct 3, 2023
@brunocodutra brunocodutra deleted the optmization branch October 3, 2023 17:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant