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 bench command #75

Merged
merged 16 commits into from Dec 30, 2021
Merged

Add bench command #75

merged 16 commits into from Dec 30, 2021

Conversation

ghost
Copy link

@ghost ghost commented Dec 24, 2021

This draft PR is currently not 100% working. The bench command has been added with the benchmark function, but the bench command outputs to both stdout and stderr. I am having trouble getting stderr to be read properly. For me when testing locally it only outputs some of the stderr and then gets stuck and needs to be forcefully closed.

Any suggestions on getting this PR working would be greatly appreciated.

You can see how the bench command works here: https://github.com/official-stockfish/Stockfish/blob/master/src/uci.cpp

@ghost
Copy link
Author

ghost commented Dec 24, 2021

@zhelyabuzhsky the build tests are stuck on the pytest checks. This is because the benchmark function gets stuck. You may need to cancel these tests unless they have a timeout.

@ghost
Copy link
Author

ghost commented Dec 24, 2021

This PR is now fixed and is ready for review. I have also fixed all the failing unit tests in this PR.

@ghost ghost marked this pull request as ready for review December 24, 2021 16:38
tests/stockfish/test_models.py Outdated Show resolved Hide resolved
.gitignore Outdated Show resolved Hide resolved
stockfish/models.py Outdated Show resolved Hide resolved
Copy link
Owner

@zhelyabuzhsky zhelyabuzhsky left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for you contribution!

aaadamm and others added 2 commits December 29, 2021 16:40
Co-authored-by: Ilya Zhelyabuzhsky <zhelyabuzhsky@icloud.com>
@zhelyabuzhsky
Copy link
Owner

Great work, thank you @Pavocracy

@zhelyabuzhsky zhelyabuzhsky merged commit bea622c into zhelyabuzhsky:master Dec 30, 2021
@ghost ghost deleted the AddBenchCommand branch September 29, 2022 09:15
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.

None yet

2 participants