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

Request for --benchmark-time-unit option for pytest-benchmark compare #277

Open
lvjing421 opened this issue Feb 13, 2025 · 0 comments
Open

Comments

@lvjing421
Copy link

lvjing421 commented Feb 13, 2025

Dear all,

When using pytest-benchmark 4.0.0 with "pytest-benchmark compare 0001 0002", it could happen that test time of one case in 0001.json is 1.5s, while the corresponding one in 0002.json is 0.5s, which results to 1.5s and 500ms in the output text file and makes it not so clear for interpretation. The --benchmark-time-unit option introduced in 5.0.0 might be utilized to set the time scale in the output text file. Could it be cherry-picked also to 4.0.0 as well, maybe with extra work? Thank you for the time.

5.0.0 (2024-10-29)
Added the --benchmark-time-unit cli option for overriding the measurement unit used for display. Contributed by Tony Kuo in #257.

With regards,
Jing

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

No branches or pull requests

1 participant