14#include <test/util/setup_common.h>
15#include <validation.h>
30 const auto testing_setup{
32 auto &blockman{testing_setup->m_node.chainman->m_blockman};
35 const auto pos{blockman.WriteBlock(block, 413'567)};
41 const auto testing_setup{
43 auto &blockman{testing_setup->m_node.chainman->m_blockman};
47 const auto success{blockman.ReadBlock(block, pos)};
53 const auto testing_setup{
56 auto &blockman{testing_setup->m_node.chainman->m_blockman};
58 std::vector<uint8_t> block_data;
60 blockman.ReadRawBlock(block_data, pos);
62 const auto success{blockman.ReadRawBlock(block_data, pos)};
Double ended buffer combining vector and stream-like interfaces.
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.
const std::vector< uint8_t > block413567
static CBlock CreateTestBlock()
BENCHMARK(WriteBlockBench)
static void ReadRawBlockBench(benchmark::Bench &bench)
static void WriteBlockBench(benchmark::Bench &bench)
static void ReadBlockBench(benchmark::Bench &bench)