mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-02-10 10:52:31 -05:00
bench: Start nodes with -nodebuglogfile
This commit is contained in:
parent
8c0f86f284
commit
fabe44e815
4 changed files with 33 additions and 7 deletions
|
@ -16,7 +16,14 @@
|
||||||
|
|
||||||
static void AssembleBlock(benchmark::State& state)
|
static void AssembleBlock(benchmark::State& state)
|
||||||
{
|
{
|
||||||
RegTestingSetup test_setup;
|
TestingSetup test_setup{
|
||||||
|
CBaseChainParams::REGTEST,
|
||||||
|
/* extra_args */ {
|
||||||
|
"-nodebuglogfile",
|
||||||
|
"-nodebug",
|
||||||
|
},
|
||||||
|
};
|
||||||
|
|
||||||
const std::vector<unsigned char> op_true{OP_TRUE};
|
const std::vector<unsigned char> op_true{OP_TRUE};
|
||||||
CScriptWitness witness;
|
CScriptWitness witness;
|
||||||
witness.stack.push_back(op_true);
|
witness.stack.push_back(op_true);
|
||||||
|
|
|
@ -14,7 +14,13 @@
|
||||||
|
|
||||||
static void DuplicateInputs(benchmark::State& state)
|
static void DuplicateInputs(benchmark::State& state)
|
||||||
{
|
{
|
||||||
RegTestingSetup test_setup;
|
TestingSetup test_setup{
|
||||||
|
CBaseChainParams::REGTEST,
|
||||||
|
/* extra_args */ {
|
||||||
|
"-nodebuglogfile",
|
||||||
|
"-nodebug",
|
||||||
|
},
|
||||||
|
};
|
||||||
|
|
||||||
const CScript SCRIPT_PUB{CScript(OP_TRUE)};
|
const CScript SCRIPT_PUB{CScript(OP_TRUE)};
|
||||||
|
|
||||||
|
|
|
@ -25,7 +25,13 @@ static void AddTx(const CTransactionRef& tx, const CAmount& nFee, CTxMemPool& po
|
||||||
// unique transactions for a more meaningful performance measurement.
|
// unique transactions for a more meaningful performance measurement.
|
||||||
static void MempoolEviction(benchmark::State& state)
|
static void MempoolEviction(benchmark::State& state)
|
||||||
{
|
{
|
||||||
RegTestingSetup test_setup;
|
TestingSetup test_setup{
|
||||||
|
CBaseChainParams::REGTEST,
|
||||||
|
/* extra_args */ {
|
||||||
|
"-nodebuglogfile",
|
||||||
|
"-nodebug",
|
||||||
|
},
|
||||||
|
};
|
||||||
|
|
||||||
CMutableTransaction tx1 = CMutableTransaction();
|
CMutableTransaction tx1 = CMutableTransaction();
|
||||||
tx1.vin.resize(1);
|
tx1.vin.resize(1);
|
||||||
|
|
|
@ -14,7 +14,14 @@
|
||||||
|
|
||||||
static void WalletBalance(benchmark::State& state, const bool set_dirty, const bool add_watchonly, const bool add_mine)
|
static void WalletBalance(benchmark::State& state, const bool set_dirty, const bool add_watchonly, const bool add_mine)
|
||||||
{
|
{
|
||||||
RegTestingSetup test_setup;
|
TestingSetup test_setup{
|
||||||
|
CBaseChainParams::REGTEST,
|
||||||
|
/* extra_args */ {
|
||||||
|
"-nodebuglogfile",
|
||||||
|
"-nodebug",
|
||||||
|
},
|
||||||
|
};
|
||||||
|
|
||||||
const auto& ADDRESS_WATCHONLY = ADDRESS_BCRT1_UNSPENDABLE;
|
const auto& ADDRESS_WATCHONLY = ADDRESS_BCRT1_UNSPENDABLE;
|
||||||
|
|
||||||
NodeContext node;
|
NodeContext node;
|
||||||
|
|
Loading…
Add table
Reference in a new issue