Skip to content

build, bench, msvc: Add missing benchmarks - #29773

Merged
fanquake merged 2 commits into
bitcoin:masterfrom
hebasto:240330-msvc-bench
May 6, 2024
Merged

fanquake merged 2 commits into
bitcoin:masterfrom
hebasto:240330-msvc-bench

Conversation

@hebasto

@hebasto hebasto commented Mar 31, 2024

Copy link
Copy Markdown
Member

On the master branch, the bench_bitcoin.vcxproj MSVC project misses wallet-specific source files.

This PR fixes this issue.

Benchmark run on Windows:

> src\bench_bitcoin.exe -filter="CoinSelection|BnBExhaustion|Wallet.*"

|               ns/op |                op/s |    err% |     total | benchmark
|--------------------:|--------------------:|--------:|----------:|:----------
|          398,800.00 |            2,507.52 |    1.5% |      0.01 | `BnBExhaustion`
|          584,450.00 |            1,711.01 |    1.5% |      0.01 | `CoinSelection`
|       86,603,650.00 |               11.55 |    0.4% |      1.91 | `WalletAvailableCoins`
|            7,604.00 |          131,509.73 |    0.9% |      0.01 | `WalletBalanceClean`
|          124,028.57 |            8,062.66 |    2.6% |      0.01 | `WalletBalanceDirty`
|            7,587.12 |          131,802.30 |    1.9% |      0.01 | `WalletBalanceMine`
|               48.58 |       20,583,872.99 |    0.9% |      0.01 | `WalletBalanceWatch`
|        2,371,060.00 |              421.75 |    1.3% |      0.13 | `WalletCreateTxUseOnlyPresetInputs`
|       96,861,760.00 |               10.32 |    0.9% |      5.31 | `WalletCreateTxUsePresetInputsAndCoinSelection`
|              280.71 |        3,562,424.13 |    1.5% |      0.01 | `WalletIsMineDescriptors`
|            1,033.47 |          967,618.32 |    0.3% |      0.01 | `WalletIsMineLegacy`
|              282.36 |        3,541,599.91 |    0.5% |      0.01 | `WalletIsMineMigratedDescriptors`
|      484,547,300.00 |                2.06 |    1.0% |      2.43 | `WalletLoadingDescriptors`
|       29,924,300.00 |               33.42 |    0.4% |      0.15 | `WalletLoadingLegacy`

@DrahtBot

DrahtBot commented Mar 31, 2024 •

Copy link
Copy Markdown
Contributor

The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.

Code Coverage

For detailed information about the code coverage, see the test coverage report.

Reviews

See the guideline for information on the review process.

Type Reviewers
ACK maflcko

If your review is incorrectly listed, please react with 👎 to this comment and the bot will ignore it on the next update.

Conflicts

No conflicts as of last run.

@hebasto

hebasto commented Mar 31, 2024

Copy link
Copy Markdown
Member Author

@achow101 @sipsorcery

Any ideas how to release a wallet database properly (see the last commit)?

@sipsorcery

Copy link
Copy Markdown
Contributor

@hebasto only guessing but I've always found Windows fairly average at releasing file and socket handles. Maybe that's the cause of the test failure rather than anything code related.

In my other life I work with SIP (telecoms protocol) with lots of socket handles flying around. If it's only for testing then I generally just add a 5 second wait and try again for handle in use errors.

@fanquake

fanquake commented May 6, 2024

Copy link
Copy Markdown
Member

Is the intention to try and merge this as-is, or are the Windows issues going to be investigated and fixed (can draft if so)?

@hebasto

hebasto commented May 6, 2024

Copy link
Copy Markdown
Member Author

Is the intention to try and merge this as-is, or are the Windows issues going to be investigated and fixed (can draft if so)?

The former. The issue is tracked in #29816.

@maflcko

maflcko commented May 6, 2024

Copy link
Copy Markdown
Member

An alternative would be to update the generation script?

@hebasto

hebasto commented May 6, 2024

Copy link
Copy Markdown
Member Author

An alternative would be to update the generation script?

Yes. However, in the light of coming migration to CMake, it makes no substantial difference, right?

@maflcko

maflcko commented May 6, 2024

Copy link
Copy Markdown
Member

lgtm ACK 31a15f0

@hebasto

hebasto commented May 6, 2024

Copy link
Copy Markdown
Member Author

cc @sipsorcery

@fanquake
fanquake merged commit fdb41e0 into bitcoin:master May 6, 2024
@hebasto
hebasto deleted the 240330-msvc-bench branch May 6, 2024 13:07
@bitcoin bitcoin locked and limited conversation to collaborators May 6, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants