18 const size_t file_size = 200;
19 uint8_t data[file_size] = {0};
20 data[file_size-1] = 1;
22 std::rewind(file.Get());
27 bf.FindByte(std::byte(1));
32 fs::remove(
"streams_tmp");
Wrapper around a CAutoFile& 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)