diff options
Diffstat (limited to 'benchmark')
-rw-r--r-- | benchmark/bench_bitvec.cpp | 4 | ||||
-rw-r--r-- | benchmark/bench_hilbert.cpp | 4 |
2 files changed, 8 insertions, 0 deletions
diff --git a/benchmark/bench_bitvec.cpp b/benchmark/bench_bitvec.cpp index 92bb1d0..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) @@ -280,6 +282,8 @@ bench(Context& ctx, const std::string& name) bench_rec<Bench, 16, 32, 64, 128, 256, 512>(ctx, out); } +} // namespace + int main() { diff --git a/benchmark/bench_hilbert.cpp b/benchmark/bench_hilbert.cpp index b8cd9d6..2d265c3 100644 --- a/benchmark/bench_hilbert.cpp +++ b/benchmark/bench_hilbert.cpp @@ -15,6 +15,8 @@ #include <fstream> #include <string> +namespace { + template<class H, size_t M, size_t D> struct BenchCoordsToIndex { Duration operator()(Context& ctx) @@ -82,6 +84,8 @@ bench(Context& ctx, const std::string& name) bench_rec<Bench, 8, 2, 4, 8, 16, 32, 64>(ctx, out); } +} // namespace + int main() { |