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

Optimize Hash and isRepetition function #462

Merged
merged 4 commits into from
Jul 26, 2023

Conversation

lenguyenthanh
Copy link
Member

Before

[info] HashBench.hashes       thrpt   45  746.230 ± 15.666  ops/s
[info] HashBench.repetition3  thrpt   45  709.714 ± 26.750  ops/s
[info] HashBench.repetition5  thrpt   45  808.189 ± 32.930  ops/s

After removing newtypes & change algorithm

[info] HashBench.hashes       thrpt   45    748.412 ±  19.580  ops/s
[info] HashBench.repetition3  thrpt   45  12099.058 ± 232.333  ops/s
[info] HashBench.repetition5  thrpt   45  12276.818 ± 187.127  ops/s

Removing Monoid

[info] HashBench.hashes       thrpt   45    758.422 ±  33.644  ops/s
[info] HashBench.repetition3  thrpt   45  12476.803 ± 114.103  ops/s
[info] HashBench.repetition5  thrpt   45  12865.016 ± 195.063  ops/s

Full benchmark

@lenguyenthanh lenguyenthanh changed the title Optimize hash Optimize Hash and isRepetition function Jul 26, 2023
@ornicar ornicar merged commit 500af59 into lichess-org:master Jul 26, 2023
1 check passed
@lenguyenthanh lenguyenthanh deleted the optimize-hash branch July 26, 2023 13:20
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.

2 participants