#include "../test/throw_exception.hpp"
#include "generator.hpp"
-#include <boost/assert.hpp>
+#include <cassert>
struct assert_check {
assert_check() {
- BOOST_ASSERT(false); // don't run with asserts enabled
+ assert(false); // don't run with asserts enabled
}
} _;
for (auto _ : state) benchmark::DoNotOptimize(a.index(gen()));
}
+static void boolean(benchmark::State& state) {
+ auto a = axis::boolean<>();
+ generator<uniform_int> gen(1);
+ for (auto _ : state) benchmark::DoNotOptimize(a.index(static_cast<bool>(gen())));
+}
+
BENCHMARK_TEMPLATE(regular, uniform);
BENCHMARK_TEMPLATE(regular, normal);
BENCHMARK_TEMPLATE(circular, uniform);
BENCHMARK_TEMPLATE(variable, uniform)->RangeMultiplier(10)->Range(10, 10000);
BENCHMARK_TEMPLATE(variable, normal)->RangeMultiplier(10)->Range(10, 10000);
BENCHMARK(category)->RangeMultiplier(10)->Range(10, 10000);
+BENCHMARK(boolean);