-
Notifications
You must be signed in to change notification settings - Fork 121
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
test: add a small set of ops.testing benchmark tests #1504
Open
tonyandrewmeyer
wants to merge
6
commits into
canonical:main
Choose a base branch
from
tonyandrewmeyer:add-scenario-benchmark-tests
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
test: add a small set of ops.testing benchmark tests #1504
tonyandrewmeyer
wants to merge
6
commits into
canonical:main
from
tonyandrewmeyer:add-scenario-benchmark-tests
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
tonyandrewmeyer
changed the title
tests: add a small set of ops.testing benchmark tests
test: add a small set of ops.testing benchmark tests
Dec 17, 2024
benhoyt
reviewed
Dec 18, 2024
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good idea, thanks for committing these! Couple of minor comments/questions.
Also more cleanly separate out ops and ops-scenario, to be consistent with what we do elsewhere. There are no ops benchmark tests yet but put the bits in place to add them, since we will want to have some at some point.
…oject.toml Ideally, we would statically check these, like the other tests, but it does not seem super important for benchmarking tests. The issue is that there is an import after a sys.path manipulation, and pyright cannot figure that out, so complains about a lot of things. We do not want to have that charm on the path, and adjusting the path for pyright does not seem great either. Not clear what the cleanest solution is.
benhoyt
approved these changes
Dec 18, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The PR:
tox -e benchmark
command.test/test_benchmark.py
model.tox -e unit
andtox -e coverage
I wrote a small set of benchmark tests while working on #1434. It seems like it'd be worth keeping these - in the future, they could be expanded to include a small set of benchmark tests that target ops more specifically, and ideally we could have a CI workflow that failed if there were regressions (currently, running the tests just outputs the timing, and you can use the pytest-benchmark tools to do comparisons).