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 benchmark option to tests #63

Merged
merged 9 commits into from
Jan 29, 2021
Merged

Add benchmark option to tests #63

merged 9 commits into from
Jan 29, 2021

Conversation

tlambert03
Copy link
Owner

to help with performance testing this PR adds opt-in benchmarks to tests. They are disabled by default, but use pytest --benchmark-enable (or tox -e benchmark) to get performance metrics. They will be saved to your local .benchmark directory (I stopped short of setting this up to save results on CI), so you can checkout various commits and see how they compare. by default it compares to the last run, but you can use (for example) pytest-benchmark compare 0001 0005 to compare test 0001 to test 0005 from your .benchmarks folder

@tlambert03 tlambert03 merged commit 500739e into master Jan 29, 2021
@tlambert03 tlambert03 deleted the benchmarks branch January 29, 2021 22:24
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