Skip to content

bench: Mempool acceptance for chained transactions

Add benchmarks for mempool acceptance of chained transactions. This adds tests for:

  • 50 tx sized 1-input-1-output chain
  • 500 tx sized 1-input-1-output chain
  • 63 tx sized 2-inputs-1-output tree
  • 511 tx sized 2-inputs-1-output tree

Each benchmark is configured to run for ~1 second. So for 5 evaluation, the total time should be ~5 seconds.

# Benchmark, evals, iterations, total, min, max, median
MempoolAcceptance500ChainedTxs, 5, 6, 5.37088, 0.177776, 0.180849, 0.17842
MempoolAcceptance50ChainedTxs, 5, 600, 5.8238, 0.00193293, 0.00194745, 0.00194016
MempoolAcceptance511TxTree, 5, 80, 6.08762, 0.015088, 0.0154037, 0.0152229
MempoolAcceptance63TxTree, 5, 800, 5.7381, 0.00142771, 0.00144307, 0.00143284

Test plan

ninja bitcoin-bench && ./src/bench/bench_bitcoin "-filter=MempoolA.*"

Edited by Dagur Valberg Johannsson

Merge request reports