-
Notifications
You must be signed in to change notification settings - Fork 38.6k
bench: Add a benchmark for wallet loading #24913
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
w0xlt
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ACK 464a162
jarolrod
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code Review ACK 464a162
|
This has added minutes of runtime to |
I considered that, but thought it would be preferable to benchmark the actual use rather than test-optimized use. |
|
That's fine, but it can't remain this slow as long as running time src/bench/bench_bitcoin
| ns/op | op/s | err% | total | benchmark
|--------------------:|--------------------:|--------:|----------:|:----------
| 43,566,102.00 | 22.95 | 2.2% | 0.49 | `AddrManAdd`
| 116,815,336.00 | 8.56 | 1.9% | 1.29 | `AddrManAddThenGood`
<trimmed>
| ns/op | op/s | err% | total | benchmark
|--------------------:|--------------------:|--------:|----------:|:----------
| 29.94 | 33,402,338.83 | 12.9% | 0.01 | :wavy_dash: `SipHash_32b` (Unstable with ~31,263.6 iters. Increase `minEpochIterations` to e.g. 312636)
| 9.02 | 110,848,661.52 | 7.1% | 0.02 | :wavy_dash: `Trig` (Unstable with ~183,410.9 iters. Increase `minEpochIterations` to e.g. 1834109)
| 90,910.30 | 10,999.85 | 2.7% | 0.01 | `VerifyNestedIfScript`
| 96,822.20 | 10,328.21 | 14.1% | 0.01 | :wavy_dash: `VerifyScriptBench` (Unstable with ~9.2 iters. Increase `minEpochIterations` to e.g. 92)
| 8,326.47 | 120,098.92 | 0.4% | 0.01 | `WalletBalanceClean`
| 197,664.75 | 5,059.07 | 0.1% | 0.01 | `WalletBalanceDirty`
| 8,405.32 | 118,972.29 | 2.3% | 0.01 | `WalletBalanceMine`
| 37.50 | 26,669,181.90 | 0.1% | 0.01 | `WalletBalanceWatch`
| 839,372,226.90 | 1.19 | 1.6% | 204.41 | `WalletLoadingDescriptors`
| 273,978,457.64 | 3.65 | 0.6% | 33.45 | `WalletLoadingLegacy`
src/bench/bench_bitcoin 177.51s user 38.43s system 20% cpu 17:29.47 total
`` |
Same here... |
|
See #24924 |
I've been working on some improvements to wallet loading performance and it's useful to have a benchmark to check whether these improvements are actually improvements.