Benchmarks & Verification Gate
Head-to-head measurements against Bitcoin Core v31.1 on identical hardware (Ryzen 9 9950X3D, 16 cores, 123 GiB RAM, NVMe,
dbcache=8192, txindex + coinstatsindex + blockfilterindex) plus the full 483-command static & dynamic QA gate.
1. Mainnet Initial Block Download (Genesis to All Indexes at Tip)
Both nodes synced from genesis over the live Bitcoin mainnet with Core's default assumevalid=938343,
10 download peers, and a 1,024-block window. Finish line is when every enabled index reaches the tip, verified MuHash3072-identical to Core v31.1.
| Milestone (Lower is Better) | Core v31.1 #7 | bmc Run 41 | bmc Run 46 (Release) | Winner & Margin |
|---|---|---|---|---|
| Headers → Block 1 | 0:45 | 0:48 | 0:34 | bmc 46 1.32× faster |
| Height 100,000 | 2:06 | 1:35 | 1:22 | bmc 46 1.54× faster |
| Height 300,000 | 15:30 | 6:57 | 6:35 | bmc 46 2.35× faster |
| Height 500,000 | 1:43:30 | 44:25 | 40:49 | bmc 46 2.54× faster |
| Height 800,000 | 5:54:00 | 2:15:53 | 2:03:21 | bmc 46 2.87× faster |
| Height 900,000 | 8:13:37 | 3:10:02 | 2:44:26 | bmc 46 3.00× faster |
| All indexes at tip | 9:50:04 | 3:48:22 | 3:17:55 | bmc 46 3.0× faster |
| Total CPU consumed | 13h 15m | 7h 39m | 7h 13m | bmc 46 1.84× less CPU |
| Heap peak | 12.0 GB | — | 13.3 GB | Core #7 1.11× lower peak |
| Heap mean | 10.0 GB | — | 8.2 GB | bmc 46 1.22× lower mean |
2. Per-Core secp256k1 Verification Benchmarks
Hand-written x86-64 secp256k1 assembly (safegcd modular inversion, addition-chain square roots, GLV wNAF scalar multiplication)
measured on one pinned core against Core's own libsecp256k1:
| Primitive (Lower is Better) | bmc (x86-64 asm) | libsecp256k1 (Core) | Winner & Margin | Verification Oracle |
|---|---|---|---|---|
| ECDSA verify (1 core) | 20.2 µs | 21.0 µs | bmc 1.04× faster | Core vectors + randomized differential |
| BIP340 Schnorr verify (1 core) | 22.3 µs | 22.0 µs | Core 1.01× faster | BIP340 vectors + frozen ref + differential |
Scalar inverse (sc_inv_var) | 0.67 µs | 0.68 µs | bmc 1.01× faster | Bernstein–Yang safegcd |
| Field multiply (latency) | 8.7 ns | 9.3 ns | bmc 1.07× faster | tests/bench_fe |
| Mixed point add | 96 ns | 105 ns | bmc 1.09× faster | tests/bench_point |
3. Post-Sync RPC Serving & Concurrency
Best-of-5 loopback RPC latency at matched mainnet height (fixed-workload rows independent of mempool size, plus 32-client concurrency benchmarks from docs/PERFORMANCE.md):
| RPC Call (Lower is Better) | bmc | Core v31.1 | Winner & Margin |
|---|---|---|---|
getblock 900000 1 | 3 ms | 5 ms | bmc 1.7× faster |
getblock 900000 2 | 31 ms | 53 ms | bmc 1.7× faster |
gettxoutsetinfo muhash | 4 ms | 4 ms | Tie Exact parity |
getchaintips | 2 ms | 97 ms | bmc 48× faster |
32 concurrent getpeerinfo | 8 ms | 10 ms | bmc 1.25× faster (FAST lane) |
32 concurrent getblockchaininfo | 7 ms | 8 ms | bmc 1.14× faster (FAST lane) |
32 concurrent getmempoolinfo (pre-memoize) | 55 ms | 22 ms | Core 2.5× faster (O(1) counters) |
4. Disk & Memory Footprint Tradeoffs
Speed vs. resource efficiency: bmc achieves a much smaller txindex and faster IBD, while Bitcoin Core maintains a significantly leaner overall disk and peak-PSS memory footprint.
| Resource Component (Lower is Better) | bmc | Core v31.1 | Winner & Reason |
|---|---|---|---|
Blocks archive (blk*.dat) | 716.6 GB | 716.6 GB | Tie Identical block payload (monotonic in bmc) |
txindex | 26.9 GB | 68.8 GB | bmc 2.6× smaller (sorted runs vs LevelDB) |
blockfilterindex | 12.2 GB | 12.3 GB | bmc Near parity (-0.1 GB) |
Undo data (rev*.dat) | 246.6 GB | 100.0 GB | Core 2.5× smaller (bmc keeps full scripts for addrindex) |
coinstatsindex | 1.8 GB | 0.2 GB | Core 9.0× smaller |
| UTXO set on disk | 12.8 GB | 10.6 GB | Core 1.2× smaller (LevelDB vs LSM runs) |
| Total datadir (all enabled indexes) | 1,312.4 GB | 917.7 GB | Core 30% smaller (bmc includes 295 GB addrindex+txospender) |
| Post-sync steady-state RSS | 7.0 GB | 6.7 GB | Core 4% lower (2 procs vs 3 procs) |
IBD peak PSS (mmap default) | 56.3 GB | ~9–10 GB | Core ~5.6× lower (pread+dropappends cuts bmc to 22.1 GB) |
5. Static Audits & 483-Command QA Gate
Every merge to main must pass the full static & dynamic gate on both Linux x86-64 (make -C asm test)
and macOS Apple Silicon (port/osx/run_tests.sh), audited by make gate-log-check:
| Check | Tool / Target | What It Guarantees |
|---|---|---|
abi-check | scripts/abi_stack_audit.py --external-only --check | Every C-to-asm call honours SysV 16-byte stack alignment (0 external violations across 482 x86-64 functions). |
callee-saved-check | scripts/abi_callee_saved_audit.py --check | Zero callee-saved register leaks (rbx/rbp/r12-r15) across all 482 x86-64 functions. |
arm64-abi-check | scripts/arm64_abi_audit.py --check | Audits all 50 port/osx/*.S files (323 global fns, 1,293 SP-align ops, 25 Darwin svc #0x80 carry-flag checks; 0 violations). |
consensus-inc-check | scripts/gen_consensus_inc.py --check | Single-source codegen keeping 25 consensus constants synchronized across asm/consensus_limits.inc and port/osx/consensus_limits.inc. |
fuzz-gate | make -C fuzz replay && make -C fuzz smoke | Double-sided PROT_NONE guard-page assembly fuzzers (tx 6.08M/s, cons 5.08M/s, script 1.72M/s), ASan/UBSan C fuzzers, plus 2.13M exec/s in-process Core v31.1 differential script fuzzer (Continuous Fuzzing). |
github-ci | .github/workflows/ci.yml & release.yml | Automated Linux x86-64, macOS Apple Silicon, and Windows x86-64 static audits, sanitizers, fuzz smoke, and tagged release builds. |
prereq-check | scripts/makefile_prereq_audit.py --check | Every Makefile recipe (629 rules) declares every object/binary it consumes (GNU Make ≥ 4.0 enforced). |
runlist-check | scripts/makefile_runlist_audit.py | All 487 test sources are either gated (474) or explicitly declared manual (13). |
link-check | make -C asm link-check | Every rule links every object defining symbols referenced by its sources. |
san-check | make -C asm san-check | AddressSanitizer + UndefinedBehaviorSanitizer passes on core parsers, mempool, script, and wallet modules. |
script-flags-check | validation/gen_script_flags.py | Script activation heights & exception hashes match Bitcoin Core v31.1 source verbatim. |
log-literal-check | scripts/log_literal_len_check.py | Every counted write/log literal matches its exact byte length. |
gate-log-check | make -C asm gate-log-check LOG=... | Verifies make exited 0, all 483 gated tests executed, and zero failure markers appeared. |