Skip to content

bench: optional Electrum/Esplora client comparison tool - #164

Merged
reardencode merged 2 commits into
masterfrom
tool/client-bench
Aug 20, 2026
Merged

bench: optional Electrum/Esplora client comparison tool#164
reardencode merged 2 commits into
masterfrom
tool/client-bench

Conversation

@rearden-grok

@rearden-grok rearden-grok Bot commented Aug 20, 2026

Copy link
Copy Markdown
Contributor

Summary

Optional rbitcoin-bench crate/binary so we can compare rbitcoin Electrum and Esplora against Fulcrum, electrs, ElectrumX, and Blockstream electrs using the same target list.

Suites:

  • casa — Lopp/Casa 2020–2022: sequential get_balance / get_history / listunspent; discard warmup; median of remaining passes; history-size buckets.
  • sparrow — Sparrow Wallet 2022: batched subscribe (wallet load) then batched get_history (refresh); --fetch-txs also pulls blockchain.transaction.get.
  • hot — fat-history keys (one-shot history + UTXO), e.g. high-fanout scripts.

Not in default-members, not in musl product bins. Binary requires --features cli.

cargo run -p rbitcoin-bench --features cli --release -- \
  --electrum 127.0.0.1:50001 --targets hashes.txt --suite casa

Test

cargo test -p rbitcoin-bench --lib (fake TCP Electrum/Esplora stubs).

rbitcoin-bot added 2 commits August 20, 2026 08:33
Casa/Lopp sequential get_balance + get_history + listunspent with
warmup discarded and median remaining passes. Sparrow batched
subscribe (load) then get_history (refresh). Hot suite for fat
scripthashes. Binary is --features cli; not default-members or musl.
Casa's published dump is addresses that received in a 200-block
window around 600000. Querying only that window makes height-list
servers look fast because every key hits the same few blocks.

Packed-in casa/sparrow lists are unique output scripts sampled
round-robin from 77 heights spaced genesis to tip on a synced
rbitcoin store (plus segwit/taproot/Casa-window pins). hot is
public fat keys including P2A bc1pfeessrawgf.

Default targets follow --suite; --targets FILE still overrides.
@reardencode
reardencode merged commit cbfb2fb into master Aug 20, 2026
13 checks passed
@rearden-grok
rearden-grok Bot deleted the tool/client-bench branch August 20, 2026 16:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant