-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
complexity_test.cc spuriously fails #272
Comments
EricWF
added a commit
that referenced
this issue
Aug 9, 2016
i think this is what we've been seeing recently on the appveyor windows release tests. it does seem though that the github workflows are more stable. |
LebedevRI
added a commit
to LebedevRI/benchmark
that referenced
this issue
Feb 1, 2024
As it can be seen in e.g. https://github.com/google/benchmark/actions/runs/7711328637/job/21016492361 We may get `65: BM_Complexity_O1_BigO 0.00 N^2 0.00 N^2 `
Merged
LebedevRI
added a commit
that referenced
this issue
Feb 2, 2024
* `complexity_test`: deflake, same as #272 As it can be seen in e.g. https://github.com/google/benchmark/actions/runs/7711328637/job/21016492361 We may get `65: BM_Complexity_O1_BigO 0.00 N^2 0.00 N^2 ` * `user_counters_tabular_test`: deflake We were still getting zero times there. Perhaps this is better?
LebedevRI
added a commit
to LebedevRI/benchmark
that referenced
this issue
Feb 14, 2024
This test is fundamentally flaky, because it tried to read tea leafs, and is inherently misbehaving in CI environments, since there are unmitigated sources of noise. Fixes google#272
LebedevRI
added a commit
to LebedevRI/benchmark
that referenced
this issue
Feb 14, 2024
This test is fundamentally flaky, because it tried to read tea leafs, and is inherently misbehaving in CI environments, since there are unmitigated sources of noise. Fixes google#272
LebedevRI
added a commit
to LebedevRI/benchmark
that referenced
this issue
Feb 14, 2024
This test is fundamentally flaky, because it tried to read tea leafs, and is inherently misbehaving in CI environments, since there are unmitigated sources of noise. Fixes google#272
LebedevRI
added a commit
to LebedevRI/benchmark
that referenced
this issue
Feb 17, 2024
This test is fundamentally flaky, because it tried to read tea leafs, and is inherently misbehaving in CI environments, since there are unmitigated sources of noise. That being said, the computed Big-O also depends on the `--benchmark_min_time=` Fixes google#272
dmah42
pushed a commit
that referenced
this issue
Feb 19, 2024
* Rewrite complexity_test to use (hardcoded) manual time This test is fundamentally flaky, because it tried to read tea leafs, and is inherently misbehaving in CI environments, since there are unmitigated sources of noise. That being said, the computed Big-O also depends on the `--benchmark_min_time=` Fixes #272 * Correctly compute Big-O for manual timings. Fixes #1758. * complexity_test: do more stuff in empty loop * Make all empty loops be a bit longer empty Looks like on windows, some of these tests still fail, i guess clock precision is too small.
angelestelar5z
added a commit
to angelestelar5z/benchmark
that referenced
this issue
Aug 17, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The benchmark registered by
BENCHMARK(BM_Complexity_O1) -> Range(1, 1<<18) -> Complexity();
sometimes reports it's complexity aslgN
as opposed to([0-9]+)
. This happens when one of the later repetitions happens to run faster due to CPU load.For example:
I'm not quite sure how to fix this test, or even if this is a bug in the complexity implementation. I would like some guidance on how to tackle this.
This is making our Appveyor build frequently fail so I would like to fix it. For now I'm going to checkin a temporary fix which simply accepts 'lg(N)' as valid test output.
The text was updated successfully, but these errors were encountered: