18 const size_t file_size = 200;
19 uint8_t
data[file_size] = {0};
20 data[file_size-1] = 1;
22 file.seek(0, SEEK_SET);
27 bf.FindByte(std::byte(1));
32 fs::remove(
"streams_tmp");
Non-refcounted RAII wrapper for FILE*.
Wrapper around an AutoFile& that implements a ring buffer to deserialize from.
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.
FILE * fopen(const fs::path &p, const char *mode)
BENCHMARK(FindByte, benchmark::PriorityLevel::HIGH)
static void FindByte(benchmark::Bench &bench)