27 bench.setup([&] {
bf.SetPos(0); })
28 .run([&] {
bf.FindByte(std::byte(1)); });
30 assert(file.fclose() == 0);
Non-refcounted RAII wrapper for FILE*.
void seek(int64_t offset, int origin)
Wrapper around fseek().
Wrapper around an AutoFile& that implements a ring buffer to deserialize from.
Main entry point to nanobench's benchmarking facility.
static const PrecomputedData data
Precomputed COutPoint and CCoins values.
FILE * fopen(const fs::path &p, const char *mode)
static void FindByte(benchmark::Bench &bench)
constexpr auto Ticks(Dur2 d)
Helper to count the seconds of a duration/time_point.