feat: use asv to benchmark#1259
Open
inimaz wants to merge 4 commits into
Open
Conversation
This file contains hidden or 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
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.
Description
asvis used to run a performance test across commits, to see the evolution of a metric.See for example:
It is very useful to see if something is slowing down the crutial actions. In our case for instance, I have added 3 tests:
tracker.start()tracker.stop()tracker.start()andtracker.stop()See the README for some useful commands.
The script
./benchmarks/get_release_hashes.shgets the commits of the releases, like this it is faster to run the benchmark.By doing
uvx asv --config benchmarks/asv.conf.json run HASHFILE:release_hashes.txt --show-stderrThen
To see the live page and explore the tests.
Screenshots (if appropriate):
Tested in my laptop

Types of changes
AI Usage Disclosure
Please refer to docs/how-to/ai-policy.md for detailed guidelines on how to disclose AI usage in your PR. Accurately completing this section is mandatory.