// Copyright (c) 2023-present The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include #include #include static void CheckBlockIndex(benchmark::Bench& bench) { auto testing_setup{MakeNoLogFileContext()}; // Mine some more blocks testing_setup->mineBlocks(1000); bench.run([&] { testing_setup->m_node.chainman->CheckBlockIndex(); }); } BENCHMARK(CheckBlockIndex, benchmark::PriorityLevel::HIGH);