![]() |
Bitcoin Core 32.1.0
P2P Digital Currency
|
#include <bench/bench.h>#include <consensus/consensus.h>#include <consensus/validation.h>#include <net.h>#include <policy/policy.h>#include <primitives/block.h>#include <primitives/transaction.h>#include <node/txorphanage.h>#include <random.h>#include <test/util/transaction_utils.h>#include <threadsafety.h>#include <util/check.h>#include <algorithm>#include <cstddef>#include <cstdint>#include <memory>#include <numeric>#include <vector>Go to the source code of this file.
Functions | |
| static CTransactionRef | MakeTransactionBulkedTo (unsigned int num_inputs, int64_t target_weight, FastRandomContext &det_rand) |
| static CTransactionRef | MakeTransactionSpendingUpTo (const std::vector< CTxIn > &inputs, unsigned int start_input, unsigned int num_inputs, int64_t weight_limit) |
| static void | OrphanageSinglePeerEviction (benchmark::Bench &bench) |
| static void | OrphanageMultiPeerEviction (benchmark::Bench &bench) |
| static void | OrphanageEraseAll (benchmark::Bench &bench, bool block_or_disconnect) |
| static void | OrphanageEraseForBlock (benchmark::Bench &bench) |
| static void | OrphanageEraseForPeer (benchmark::Bench &bench) |
| BENCHMARK (OrphanageSinglePeerEviction) | |
| BENCHMARK (OrphanageMultiPeerEviction) | |
| BENCHMARK (OrphanageEraseForBlock) | |
| BENCHMARK (OrphanageEraseForPeer) | |
Variables | |
| static constexpr node::TxOrphanage::Usage | TINY_TX_WEIGHT {240} |
| static constexpr int64_t | APPROX_WEIGHT_PER_INPUT {200} |
| BENCHMARK | ( | OrphanageEraseForBlock | ) |
| BENCHMARK | ( | OrphanageEraseForPeer | ) |
| BENCHMARK | ( | OrphanageMultiPeerEviction | ) |
| BENCHMARK | ( | OrphanageSinglePeerEviction | ) |
|
static |
Definition at line 30 of file txorphanage.cpp.
|
static |
Definition at line 50 of file txorphanage.cpp.
|
static |
Definition at line 194 of file txorphanage.cpp.
|
static |
Definition at line 261 of file txorphanage.cpp.
|
static |
Definition at line 265 of file txorphanage.cpp.
|
static |
Definition at line 115 of file txorphanage.cpp.
|
static |
Definition at line 60 of file txorphanage.cpp.
|
staticconstexpr |
Definition at line 26 of file txorphanage.cpp.
|
staticconstexpr |
Definition at line 25 of file txorphanage.cpp.