Skip to content

WriteBatch::Reserve#136

Open
l0rinc wants to merge 17 commits intobitcoin-dev-tools:masterfrom
l0rinc:detached143
Open

WriteBatch::Reserve#136
l0rinc wants to merge 17 commits intobitcoin-dev-tools:masterfrom
l0rinc:detached143

Conversation

@l0rinc
Copy link
Collaborator

@l0rinc l0rinc commented Feb 16, 2025

Experiment to see the effects of a pre-sized UTXO set write batch.
See related LevelDB PR: google/leveldb#1259

@l0rinc
Copy link
Collaborator Author

l0rinc commented Feb 17, 2025

Preallocating the string that's used by levelDB batching results in a ~6% faster dump on average:

3546446 8d19012
207429.21 218520.34
208862.11 219388.92
210292.79 220814.04
216711.49 221191.05
217035.96 226861.88
218508.9 234677.65
218530.95 235625.18
219499.49 243075.73
230591.79 245046.15
231249.35 254212.8

Average:

217871.204 231941.374 106.46%
image

@github-actions
Copy link

📊 Benchmark results for this run (13359941665) will be available at: https://bitcoin-dev-tools.github.io/benchcoin/results/pr-136/13359941665/index.html after the github pages "build and deployment" action has completed.
🚀 Speedups: mainnet-default-instrumented: -3.0%, mainnet-large-instrumented: -0.0%, mainnet-default-uninstrumented: -1.5%, mainnet-large-uninstrumented: -0.3%

@github-actions
Copy link

📊 Benchmark results for this run (13369809214) will be available at: https://bitcoin-dev-tools.github.io/benchcoin/results/pr-136/13369809214/index.html after the github pages "build and deployment" action has completed.
🚀 Speedups: mainnet-default-instrumented: -8.5%, mainnet-large-instrumented: 2.9%, mainnet-default-uninstrumented: -3.0%, mainnet-large-uninstrumented: 0.1%

@github-actions
Copy link

📊 Benchmark results for this run (13391173879) will be available at: https://bitcoin-dev-tools.github.io/benchcoin/results/pr-136/13391173879/index.html after the github pages "build and deployment" action has completed.
🚀 Speedups: mainnet-default-instrumented: -7.5%, mainnet-large-instrumented: -0.3%, mainnet-default-uninstrumented: -2.8%, mainnet-large-uninstrumented: -1.2%

@github-actions github-actions bot force-pushed the master branch 4 times, most recently from c556197 to 7862a78 Compare February 22, 2025 03:21
@l0rinc l0rinc force-pushed the detached143 branch 2 times, most recently from 4393a40 to 7c71513 Compare February 22, 2025 20:21
@github-actions
Copy link

📊 Benchmark results for this run (13472347706) will be available at: https://bitcoin-dev-tools.github.io/benchcoin/results/pr-136/13472347706/index.html after the github pages "build and deployment" action has completed.
🚀 Speedups: mainnet-default-instrumented: -13.8%, mainnet-large-instrumented: -6.5%, mainnet-default-uninstrumented: -3.6%, mainnet-large-uninstrumented: 1.6%

@github-actions
Copy link

📊 Benchmark results for this run (13476270563) will be available at: https://bitcoin-dev-tools.github.io/benchcoin/results/pr-136/13476270563/index.html after the github pages "build and deployment" action has completed.
🚀 Speedups: mainnet-default-instrumented: -16.6%, mainnet-large-instrumented: 2.1%, mainnet-default-uninstrumented: -2.6%, mainnet-large-uninstrumented: 0.2%

@willcl-ark willcl-ark force-pushed the master branch 6 times, most recently from 029747a to 623391b Compare January 5, 2026 05:40
@willcl-ark willcl-ark force-pushed the master branch 12 times, most recently from 9252506 to aa46724 Compare January 13, 2026 02:53
@willcl-ark willcl-ark force-pushed the master branch 8 times, most recently from 0df3cfc to f78f987 Compare January 21, 2026 02:56
@willcl-ark willcl-ark force-pushed the master branch 4 times, most recently from 086024e to 3dde51f Compare January 26, 2026 03:09
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.

2 participants