6#include <bench/data/block413567.raw.h>
15#include <validation.h>
32 auto&
blockman{testing_setup->m_node.chainman->m_blockman};
35 const auto pos{
blockman.WriteBlock(block, 413'567)};
43 auto&
blockman{testing_setup->m_node.chainman->m_blockman};
57 auto&
blockman{testing_setup->m_node.chainman->m_blockman};
Minimal stream for reading from an existing byte array by std::span.
Main entry point to nanobench's benchmarking facility.
static constexpr TransactionSerParams TX_WITH_WITNESS
static CBlock CreateTestBlock()
static void ReadRawBlockBench(benchmark::Bench &bench)
static void WriteBlockBench(benchmark::Bench &bench)
static void ReadBlockBench(benchmark::Bench &bench)
constexpr auto Ticks(Dur2 d)
Helper to count the seconds of a duration/time_point.