Changeset View
Changeset View
Standalone View
Standalone View
src/bench/checkblock.cpp
// Copyright (c) 2016 The Bitcoin Core developers | // Copyright (c) 2016 The Bitcoin Core developers | ||||
// Distributed under the MIT software license, see the accompanying | // Distributed under the MIT software license, see the accompanying | ||||
// file COPYING or http://www.opensource.org/licenses/mit-license.php. | // file COPYING or http://www.opensource.org/licenses/mit-license.php. | ||||
#include "bench.h" | #include <bench/bench.h> | ||||
#include "config.h" | #include <config.h> | ||||
#include "consensus/validation.h" | #include <consensus/validation.h> | ||||
#include "streams.h" | #include <streams.h> | ||||
#include "validation.h" | #include <validation.h> | ||||
namespace block_bench { | namespace block_bench { | ||||
#include "bench/data/block413567.raw.h" | #include <bench/data/block413567.raw.h> | ||||
} | } | ||||
// These are the two major time-sinks which happen after we have fully received | // These are the two major time-sinks which happen after we have fully received | ||||
// a block off the wire, but before we can relay the block on to peers using | // a block off the wire, but before we can relay the block on to peers using | ||||
// compact block relay. | // compact block relay. | ||||
static void DeserializeBlockTest(benchmark::State &state) { | static void DeserializeBlockTest(benchmark::State &state) { | ||||
CDataStream stream((const char *)block_bench::block413567, | CDataStream stream((const char *)block_bench::block413567, | ||||
Show All 36 Lines |