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

⚡ TT entry struct alignment #352

Merged
merged 15 commits into from
Aug 16, 2023
Merged

⚡ TT entry struct alignment #352

merged 15 commits into from
Aug 16, 2023

Conversation

eduherminio
Copy link
Member

@eduherminio eduherminio commented Aug 16, 2023

From

21:35:32 [INFO] | Hash value:   256 MB
21:35:32 [INFO] | TT memory:    384 MB
21:35:32 [INFO] | TT length:    16777216 items
21:35:32 [INFO] | TT entry:     24 bytes
21:35:32 [INFO] | TT mask:      FFFFFF

to:

21:34:33 [INFO] | Hash value:   256 MB
21:34:33 [INFO] | TT memory:    256 MB
21:34:33 [INFO] | TT length:    16777216 items
21:34:33 [INFO] | TT entry:     16 bytes
21:34:33 [INFO] | TT mask:      FFFFFF

More Hash sizes:

From:

Hash: 2 MB
TT memory: 0 MB
TT array length: 0MB, (0x20000, 131072 items)
TT mask: 0x1FFFF (11111111111111111)

Hash: 4 MB
TT memory: 0 MB
TT array length: 0MB, (0x40000, 262144 items)
TT mask: 0x3FFFF (111111111111111111)

Hash: 16 MB
TT memory: 24 MB
TT array length: 1MB, (0x100000, 1048576 items)
TT mask: 0xFFFFF (11111111111111111111)

Hash: 32 MB
TT memory: 48 MB
TT array length: 2MB, (0x200000, 2097152 items)
TT mask: 0x1FFFFF (111111111111111111111)

Hash: 64 MB
TT memory: 96 MB
TT array length: 4MB, (0x400000, 4194304 items)
TT mask: 0x3FFFFF (1111111111111111111111)

Hash: 128 MB
TT memory: 192 MB
TT array length: 8MB, (0x800000, 8388608 items)
TT mask: 0x7FFFFF (11111111111111111111111)

Hash: 256 MB
TT memory: 384 MB
TT array length: 16MB, (0x1000000, 16777216 items)
TT mask: 0xFFFFFF (111111111111111111111111)

Hash: 512 MB
TT memory: 768 MB
TT array length: 32MB, (0x2000000, 33554432 items)
TT mask: 0x1FFFFFF (1111111111111111111111111)

Hash: 1024 MB
TT memory: 1536 MB
TT array length: 64MB, (0x4000000, 67108864 items)
TT mask: 0x3FFFFFF (11111111111111111111111111)

to

Hash: 2 MB
TT memory: 0 MB
TT array length: 0MB, (0x20000, 131072 items)
TT mask: 0x1FFFF (11111111111111111)

Hash: 4 MB
TT memory: 0 MB
TT array length: 0MB, (0x40000, 262144 items)
TT mask: 0x3FFFF (111111111111111111)

Hash: 16 MB
TT memory: 16 MB
TT array length: 1MB, (0x100000, 1048576 items)
TT mask: 0xFFFFF (11111111111111111111)

Hash: 32 MB
TT memory: 32 MB
TT array length: 2MB, (0x200000, 2097152 items)
TT mask: 0x1FFFFF (111111111111111111111)

Hash: 64 MB
TT memory: 64 MB
TT array length: 4MB, (0x400000, 4194304 items)
TT mask: 0x3FFFFF (1111111111111111111111)

Hash: 128 MB
TT memory: 128 MB
TT array length: 8MB, (0x800000, 8388608 items)
TT mask: 0x7FFFFF (11111111111111111111111)

Hash: 256 MB
TT memory: 256 MB
TT array length: 16MB, (0x1000000, 16777216 items)
TT mask: 0xFFFFFF (111111111111111111111111)

Hash: 512 MB
TT memory: 512 MB
TT array length: 32MB, (0x2000000, 33554432 items)
TT mask: 0x1FFFFFF (1111111111111111111111111)

Hash: 1024 MB
TT memory: 1024 MB
TT array length: 64MB, (0x4000000, 67108864 items)
TT mask: 0x3FFFFFF (11111111111111111111111111)
Score of Lynx 1273 - tt align vs Lynx 1272 - main: 3009 - 3002 - 1958  [0.500] 7969
...      Lynx 1273 - tt align playing White: 1794 - 1196 - 995  [0.575] 3985
...      Lynx 1273 - tt align playing Black: 1215 - 1806 - 963  [0.426] 3984
...      White vs Black: 3600 - 2411 - 1958  [0.575] 7969
Elo difference: 0.3 +/- 6.6, LOS: 53.6 %, DrawRatio: 24.6 %
SPRT: llr -0.961 (-32.6%), lbound -2.94, ubound 2.94

Base automatically changed from perf/tt-size-pow-2 to main August 16, 2023 19:40
@eduherminio eduherminio marked this pull request as ready for review August 16, 2023 22:11
@eduherminio eduherminio merged commit 8dc93e3 into main Aug 16, 2023
18 checks passed
@eduherminio eduherminio deleted the perf/tt-alignment branch August 16, 2023 22:11
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