 |
Bitcoin Core
22.99.0
P2P Digital Currency
|
Go to the documentation of this file.
18 std::vector<unsigned char> in(buffersize, 0);
ANKERL_NANOBENCH(NODISCARD) std Bench & batch(T b) noexcept
Sets the batch size.
void poly1305_auth(unsigned char out[POLY1305_TAGLEN], const unsigned char *m, size_t inlen, const unsigned char key[POLY1305_KEYLEN])
Main entry point to nanobench's benchmarking facility.
static void POLY1305_256BYTES(benchmark::Bench &bench)
BENCHMARK(POLY1305_64BYTES)
static void POLY1305_1MB(benchmark::Bench &bench)
static constexpr uint64_t BUFFER_SIZE_TINY
static void POLY1305_64BYTES(benchmark::Bench &bench)
Bench & run(char const *benchmarkName, Op &&op)
Repeatedly calls op() based on the configuration, and performs measurements.
Bench & unit(char const *unit)
Sets the operation unit.
static void POLY1305(benchmark::Bench &bench, size_t buffersize)
static constexpr uint64_t BUFFER_SIZE_LARGE
static constexpr uint64_t BUFFER_SIZE_SMALL