Skip to content

Commit

Permalink
user_counters_tabular_test: deflake
Browse files Browse the repository at this point in the history
We were still getting zero times there. Perhaps this is better?
  • Loading branch information
LebedevRI committed Feb 1, 2024
1 parent 6853697 commit cb9bc80
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/user_counters_tabular_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,7 @@ CHECK_BENCHMARK_RESULTS("BM_Counters_Tabular/repeats:2/threads:2$",
void BM_CounterRates_Tabular(benchmark::State& state) {
for (auto _ : state) {
// This test requires a non-zero CPU time to avoid divide-by-zero
auto iterations = state.iterations();
auto iterations = double(state.iterations()) * double(state.iterations());
benchmark::DoNotOptimize(iterations);
}
namespace bm = benchmark;
Expand Down

0 comments on commit cb9bc80

Please sign in to comment.