6#include <bench/data/block413567.raw.h>
7#include <chainparams.h>
34 bench.unit(
"block").run([&] {
37 bool rewound =
stream.Rewind(benchmark::data::block413567.size());
51 bench.unit(
"block").run([&] {
54 bool rewound =
stream.Rewind(benchmark::data::block413567.size());
std::unique_ptr< const CChainParams > CreateChainParams(const ArgsManager &args, const ChainType chain)
Creates and returns a std::unique_ptr<CChainParams> of the chosen chain.
static void DeserializeAndCheckBlockTest(benchmark::Bench &bench)
static void DeserializeBlockTest(benchmark::Bench &bench)
Double ended buffer combining vector and stream-like interfaces.
Main entry point to nanobench's benchmarking facility.
static constexpr TransactionSerParams TX_WITH_WITNESS
constexpr auto Ticks(Dur2 d)
Helper to count the seconds of a duration/time_point.
bool CheckBlock(const CBlock &block, BlockValidationState &state, const Consensus::Params &consensusParams, bool fCheckPOW, bool fCheckMerkleRoot)
Functions for validating blocks and updating the block tree.