Commit 290ac9ee by Ismael

updated complexity_test.cc to new interface for auto

parent 1ee11056
...@@ -93,7 +93,7 @@ static void BM_Complexity_O_N_log_N(benchmark::State& state) { ...@@ -93,7 +93,7 @@ static void BM_Complexity_O_N_log_N(benchmark::State& state) {
state.SetComplexityN(state.range_x()); state.SetComplexityN(state.range_x());
} }
BENCHMARK(BM_Complexity_O_N_log_N) -> RangeMultiplier(2) -> Range(1<<10, 1<<16) -> Complexity(benchmark::oNLogN); BENCHMARK(BM_Complexity_O_N_log_N) -> RangeMultiplier(2) -> Range(1<<10, 1<<16) -> Complexity(benchmark::oNLogN);
BENCHMARK(BM_Complexity_O_N_log_N) -> RangeMultiplier(2) -> Range(1<<10, 1<<16) -> Complexity(benchmark::oAuto); BENCHMARK(BM_Complexity_O_N_log_N) -> RangeMultiplier(2) -> Range(1<<10, 1<<16) -> Complexity();
// Test benchmark with no range and check no complexity is calculated. // Test benchmark with no range and check no complexity is calculated.
void BM_Extreme_Cases(benchmark::State& state) { void BM_Extreme_Cases(benchmark::State& state) {
...@@ -101,6 +101,6 @@ void BM_Extreme_Cases(benchmark::State& state) { ...@@ -101,6 +101,6 @@ void BM_Extreme_Cases(benchmark::State& state) {
} }
} }
BENCHMARK(BM_Extreme_Cases) -> Complexity(benchmark::oNLogN); BENCHMARK(BM_Extreme_Cases) -> Complexity(benchmark::oNLogN);
BENCHMARK(BM_Extreme_Cases) -> Arg(42) -> Complexity(benchmark::oAuto); BENCHMARK(BM_Extreme_Cases) -> Arg(42) -> Complexity();
BENCHMARK_MAIN() BENCHMARK_MAIN()
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment