Skip to content
This repository has been archived by the owner on Apr 11, 2024. It is now read-only.

How do I get the same test results every time? #258

Open
budarin opened this issue Nov 9, 2022 · 1 comment
Open

How do I get the same test results every time? #258

budarin opened this issue Nov 9, 2022 · 1 comment

Comments

@budarin
Copy link

budarin commented Nov 9, 2022

Every test run I get different results on a simple code (for example, a simple for loop)

What settings do I need to specify in order to get stable results for tests and understand that the tests are correct and not a random error?

@BurtHarris
Copy link

@budarin

I think you may be seeing the effects of reporting too many significant digits in the results. I opened #259 to suggest how to address this. Benchmark seems to do the work needed to properly round the results, I think it is simply a matter of formatting.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

2 participants