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

accept percentages higher than 100% in --benchmark-compare-fail #279

Open
bentheiii opened this issue Feb 17, 2025 · 0 comments · May be fixed by #280
Open

accept percentages higher than 100% in --benchmark-compare-fail #279

bentheiii opened this issue Feb 17, 2025 · 0 comments · May be fixed by #280

Comments

@bentheiii
Copy link

for very chaotic benchmark, we sometimes want to accept changes of 100% or more, but pytest-benchmark doesn't accept this argument

>>> pytest tests/benchmark/*.py --benchmark-compare=0001 --benchmark-compare-fail=mean:100% --benchmark-compare-fail=median:100%
ERROR: usage: pytest [options] [file_or_dir] [file_or_dir] [...]
pytest: error: argument --benchmark-compare-fail: Could not parse value: 'mean:100%'.
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 a pull request may close this issue.

1 participant