diff options
Diffstat (limited to 'benchmark/bench_bitvec.cpp')
-rw-r--r-- | benchmark/bench_bitvec.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/benchmark/bench_bitvec.cpp b/benchmark/bench_bitvec.cpp index bddde23..2493947 100644 --- a/benchmark/bench_bitvec.cpp +++ b/benchmark/bench_bitvec.cpp @@ -15,6 +15,8 @@ #include <string> #include <vector> +namespace { + template<class T, size_t N> struct BenchAnd { Duration operator()(Context& ctx) @@ -209,6 +211,7 @@ struct BenchComparison { Duration operator()(Context& ctx) { std::vector<T> vecs; + vecs.reserve(32); for (size_t i = 0; i < 32; ++i) { vecs.emplace_back(make_random_bitvec<T, N>(ctx)); } @@ -279,6 +282,8 @@ bench(Context& ctx, const std::string& name) bench_rec<Bench, 16, 32, 64, 128, 256, 512>(ctx, out); } +} // namespace + int main() { |