18 bench.batch(1).unit(
"number").run([&] {
26 bench.batch(1).unit(
"number").run([&] {
34 bench.batch(1).unit(
"number").run([&] {
42 bench.batch(64).unit(
"number").run([&] {
43 for (
int i = 1; i <= 64; ++i) {
49template<
int RANGE,
typename RNG>
52 bench.batch(RANGE).unit(
"number").run([&] {
53 for (
int i = 1; i <= RANGE; ++i) {
59template<
int RANGE,
typename RNG>
63 std::iota(std::begin(data), std::end(data), uint64_t(0));
64 bench.batch(RANGE).unit(
"number").run([&] {
65 std::shuffle(std::begin(data), std::end(data), rng);
FastRandomContext(bool fDeterministic=false) noexcept
Construct a FastRandomContext with GetRandHash()-based entropy (or zero key if fDeterministic).
constexpr InsecureRandomContext(uint64_t seedval) noexcept
Main entry point to nanobench's benchmarking facility.