7#if defined(HAVE_CONSENSUS_LIB)
15#include <test/util/transaction_utils.h>
20 std::vector<std::vector<uint8_t>> stack;
22 for (
int i = 0; i < 100; ++i) {
25 for (
int i = 0; i < 1000; ++i) {
28 for (
int i = 0; i < 100; ++i) {
Serialized script, used inside transaction inputs and outputs.
Main entry point to nanobench's benchmarking facility.
bool EvalScript(std::vector< valtype > &stack, const CScript &script, uint32_t flags, const BaseSignatureChecker &checker, ScriptExecutionMetrics &metrics, ScriptError *serror)
bool error(const char *fmt, const Args &...args)
T GetRand(T nMax=std::numeric_limits< T >::max()) noexcept
Generate a uniform random integer of type T in the range [0..nMax) nMax defaults to std::numeric_limi...
Struct for holding cumulative results from executing a script or a sequence of scripts.
static void VerifyNestedIfScript(benchmark::Bench &bench)