19 bench.batch(
data.size()).unit(
"byte").run([&] {
static void HexStrBench(benchmark::Bench &bench)
std::vector< B > randbytes(size_t len) noexcept
Generate random bytes.
Main entry point to nanobench's benchmarking facility.
static const PrecomputedData data
Precomputed COutPoint and CCoins values.
constexpr unsigned int MAX_BLOCK_WEIGHT
The maximum allowed weight for a block, see BIP 141 (network rule)
std::string HexStr(const std::span< const uint8_t > s)
Convert a span of bytes to a lower-case hexadecimal string.
void doNotOptimizeAway(Arg &&arg)
Makes sure none of the given arguments are optimized away by the compiler.
constexpr auto Ticks(Dur2 d)
Helper to count the seconds of a duration/time_point.