15 auto data{frc.randbytes<std::byte>(1024)};
20 obfuscation(
data, offset++);
static constexpr size_t KEY_SIZE
Main entry point to nanobench's benchmarking facility.
Bench & run(char const *benchmarkName, Op &&op)
Repeatedly calls op() based on the configuration, and performs measurements.
Bench & batch(T b) noexcept
Sets the batch size.
void doNotOptimizeAway(Arg &&arg)
Makes sure none of the given arguments are optimized away by the compiler.
static void ObfuscationBench(benchmark::Bench &bench)
BENCHMARK(ObfuscationBench, benchmark::PriorityLevel::HIGH)