19 bench.batch(
in.size()).unit(
"byte").run(
static constexpr uint64_t BUFFER_SIZE_LARGE
static constexpr uint64_t BUFFER_SIZE_TINY
static constexpr uint64_t BUFFER_SIZE_SMALL
static void POLY1305_256BYTES(benchmark::Bench &bench)
static void POLY1305(benchmark::Bench &bench, size_t buffersize)
static void POLY1305_64BYTES(benchmark::Bench &bench)
static void POLY1305_1MB(benchmark::Bench &bench)
Main entry point to nanobench's benchmarking facility.
void poly1305_auth(uint8_t out[POLY1305_TAGLEN], const uint8_t *m, size_t inlen, const uint8_t key[POLY1305_KEYLEN])
T GetRand(T nMax=std::numeric_limits< T >::max()) noexcept
Generate a uniform random integer of type T in the range [0..nMax) nMax defaults to std::numeric_limi...