mirror of
https://github.com/dashpay/dash.git
synced 2024-12-28 05:23:01 +01:00
Merge #18759: bench: Start nodes with -nodebuglogfile
fabe44e8154a6068d6cba91ec30f00345ed7b275 bench: Start nodes with -nodebuglogfile (MarcoFalke) Pull request description: For benchmarking we don't want to depend on the speed of the disk or the amount of debug logging ACKs for top commit: fanquake: ACK fabe44e8154a6068d6cba91ec30f00345ed7b275 - This makes some of these benchmarks significantly faster to run. MempoolEviction total runtime is down from ~46s to 11s on my machine: Tree-SHA512: d99700901650325896b9115d20b84a27042152f46266f595bf7ea1414528c0b346f4e707a12ee8b8ba99c35cf155e645e67971c1b2a679c4e609c400ff8b08ae
This commit is contained in:
parent
26211cc22f
commit
fa9e34c2e1
@ -17,7 +17,13 @@
|
|||||||
|
|
||||||
static void AssembleBlock(benchmark::Bench& bench)
|
static void AssembleBlock(benchmark::Bench& bench)
|
||||||
{
|
{
|
||||||
RegTestingSetup test_setup;
|
TestingSetup test_setup{
|
||||||
|
CBaseChainParams::REGTEST,
|
||||||
|
/* extra_args */ {
|
||||||
|
"-nodebuglogfile",
|
||||||
|
"-nodebug",
|
||||||
|
},
|
||||||
|
};
|
||||||
const CScript redeemScript = CScript() << OP_DROP << OP_TRUE;
|
const CScript redeemScript = CScript() << OP_DROP << OP_TRUE;
|
||||||
const CScript SCRIPT_PUB =
|
const CScript SCRIPT_PUB =
|
||||||
CScript() << OP_HASH160 << ToByteVector(CScriptID(redeemScript))
|
CScript() << OP_HASH160 << ToByteVector(CScriptID(redeemScript))
|
||||||
|
@ -15,7 +15,13 @@
|
|||||||
|
|
||||||
static void DuplicateInputs(benchmark::Bench& bench)
|
static void DuplicateInputs(benchmark::Bench& bench)
|
||||||
{
|
{
|
||||||
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::Bench& bench)
|
static void MempoolEviction(benchmark::Bench& bench)
|
||||||
{
|
{
|
||||||
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);
|
||||||
|
@ -15,7 +15,13 @@
|
|||||||
|
|
||||||
static void WalletBalance(benchmark::Bench& bench, const bool set_dirty, const bool add_watchonly, const bool add_mine, const uint32_t epoch_iters)
|
static void WalletBalance(benchmark::Bench& bench, const bool set_dirty, const bool add_watchonly, const bool add_mine, const uint32_t epoch_iters)
|
||||||
{
|
{
|
||||||
RegTestingSetup test_setup;
|
TestingSetup test_setup{
|
||||||
|
CBaseChainParams::REGTEST,
|
||||||
|
/* extra_args */ {
|
||||||
|
"-nodebuglogfile",
|
||||||
|
"-nodebug",
|
||||||
|
},
|
||||||
|
};
|
||||||
const auto& ADDRESS_WATCHONLY = ADDRESS_B58T_UNSPENDABLE;
|
const auto& ADDRESS_WATCHONLY = ADDRESS_B58T_UNSPENDABLE;
|
||||||
|
|
||||||
CWallet wallet{test_setup.m_node.chain.get(), "", CreateMockWalletDatabase()};
|
CWallet wallet{test_setup.m_node.chain.get(), "", CreateMockWalletDatabase()};
|
||||||
|
Loading…
Reference in New Issue
Block a user