diff --git a/src/bench/prevector.cpp b/src/bench/prevector.cpp index 2d26f6b97a..7ae23ed307 100644 --- a/src/bench/prevector.cpp +++ b/src/bench/prevector.cpp @@ -42,7 +42,7 @@ static void PrevectorClear(benchmark::State& state) t0.resize(28); t0.clear(); t1.resize(29); - t0.clear(); + t1.clear(); } } } @@ -64,11 +64,11 @@ void PrevectorResize(benchmark::State& state) #define PREVECTOR_TEST(name, nontrivops, trivops) \ static void Prevector ## name ## Nontrivial(benchmark::State& state) { \ - PrevectorResize(state); \ + Prevector ## name(state); \ } \ BENCHMARK(Prevector ## name ## Nontrivial/*, nontrivops*/); \ static void Prevector ## name ## Trivial(benchmark::State& state) { \ - PrevectorResize(state); \ + Prevector ## name(state); \ } \ BENCHMARK(Prevector ## name ## Trivial/*, trivops*/);