Bitcoin ABC
0.34.3
P2P Digital Currency
Loading...
Searching...
No Matches
src
bench
checkblockindex.cpp
Go to the documentation of this file.
1
// Copyright (c) 2023-present The Bitcoin Core developers
2
// Distributed under the MIT software license, see the accompanying
3
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
4
5
#include <
bench/bench.h
>
6
#include <test/util/setup_common.h>
7
#include <validation.h>
8
9
static
void
CheckBlockIndex
(
benchmark::Bench
&bench) {
10
auto
testing_setup{MakeNoLogFileContext<TestChain100Setup>()};
11
// Mine some more blocks
12
testing_setup->mineBlocks(1000);
13
bench.
run
([&] { testing_setup->m_node.chainman->CheckBlockIndex(); });
14
}
15
16
BENCHMARK
(
CheckBlockIndex
);
bench.h
BENCHMARK
#define BENCHMARK(n)
Definition
bench.h:65
CheckBlockIndex
static void CheckBlockIndex(benchmark::Bench &bench)
Definition
checkblockindex.cpp:9
ankerl::nanobench::Bench
Main entry point to nanobench's benchmarking facility.
Definition
nanobench.h:616
ankerl::nanobench::Bench::run
Bench & run(char const *benchmarkName, Op &&op)
Repeatedly calls op() based on the configuration, and performs measurements.
Definition
nanobench.h:1183
Generated on Thu Nov 5 2026 21:14:03 for Bitcoin ABC by
1.9.8