-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Benchmark storage access on block validation #8069
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
Merged
AndreiEres
merged 91 commits into
master
from
AndreiEres/benchmark-storage-access-on-block-validation
May 22, 2025
Merged
Changes from all commits
Commits
Show all changes
91 commits
Select commit
Hold shift + click to select a range
3dd3249
Fixup read/write benchmark
alexggh 4540be0
Address review feedback
alexggh bd3b0cb
Make clippy happy
alexggh 5c3b0b3
Update substrate/utils/frame/benchmarking-cli/src/storage/cmd.rs
alexggh 6b59fe8
Update substrate/utils/frame/benchmarking-cli/src/storage/read.rs
alexggh 22e4cf4
Update substrate/utils/frame/benchmarking-cli/src/storage/read.rs
alexggh e38d2ca
Update substrate/utils/frame/benchmarking-cli/src/storage/write.rs
alexggh b33f629
Apply review feedback
alexggh 9ac3a52
Add prdoc
alexggh 18caf04
Update pr_7867.prdoc
alexggh 022af2d
Fixup prdoc
alexggh 8699d5d
Add dummy test runtime
AndreiEres dda8492
Run empty validation
AndreiEres 0c2e183
Add the working benchmark but without reading child keys
AndreiEres 1d4f01e
Add dry run correction
AndreiEres 247fb6d
Update params
AndreiEres 427ba86
Merge payload and modes
AndreiEres 73ed34a
Move common function
AndreiEres 71a24d9
Add write bench
AndreiEres acfb95b
Add on_block_validation
AndreiEres 703675c
Add different measurements
AndreiEres ce8120a
Update read bench to use on_block_validation
AndreiEres 781e0d3
Remove todo
AndreiEres 5a1da9e
Notify about not processed remainder
AndreiEres 0b99284
Use default config
AndreiEres 4bd6024
Update Cargo.lock after rebase
AndreiEres 2a39c1d
Update Cargo.toml after rebase
AndreiEres 95676fb
Don't change pr_7867.prdoc
AndreiEres 1827238
Add reading of child keys
AndreiEres e6b4eed
Read remainder even with batch size
AndreiEres db989a7
Add writing child keys
AndreiEres f695a52
Merge branch 'master' into AndreiEres/benchmark-storage-access-on-blo…
AndreiEres f123504
Polish
AndreiEres 94f75ba
Add prdoc
AndreiEres 26ca47b
Add runtime_dev to audience
AndreiEres 8564661
Merge branch 'master' into AndreiEres/benchmark-storage-access-on-blo…
AndreiEres 909730a
Make the output less spammy
AndreiEres 1025b9e
Hide under feature
AndreiEres d75d998
Extract create_backend
AndreiEres 2ba2bee
Don't run on child nodes if they're empty
AndreiEres e3a2b83
Extract measure_on_block_validation
AndreiEres 39fece2
Extract write measurements
AndreiEres d56c948
Fix compile errors
AndreiEres 934068f
Fix errors
AndreiEres 8a4b4d2
Update prdoc
AndreiEres 3d7da55
Use different files to write results
AndreiEres bf7b7bf
Update config
AndreiEres 7813895
Make frame-storage-access-test-runtime publishable
AndreiEres 0fe7817
Add storage-access-test-runtime to workspace members
AndreiEres f570b7d
Use config
AndreiEres c3feabc
Add description
AndreiEres 8950a2e
Update PR doc
AndreiEres b283212
Fix toml
AndreiEres 9d90eb5
Propogate runtime-benchmarks
AndreiEres bf69654
Propogate std
AndreiEres feb3c18
Fix toml
AndreiEres a7d59f5
Add missing docs
AndreiEres c13b6ea
Hide proceed_storage_access under runtime-benchmarks
AndreiEres 5371abc
Fix imports
AndreiEres 648e093
Fix missing import
AndreiEres 2d09498
Merge branch 'master' into AndreiEres/benchmark-storage-access-on-blo…
AndreiEres d1b9e3e
Update substrate/utils/frame/benchmarking-cli/src/storage/write.rs
AndreiEres 08ccd4c
Update substrate/utils/frame/benchmarking-cli/src/storage/weights.hbs
AndreiEres 7f55e39
Decrease extra_heap_pages
AndreiEres 74dfe10
Remove repeating comment
AndreiEres 5e77da0
Remove overrides
AndreiEres daa0e78
Remove proceed_storage_access from implementation
AndreiEres de0a0de
Move implementation to frame_storage_access_test_runtime
AndreiEres e5e1bd7
Merge remote-tracking branch 'origin/master' into AndreiEres/benchmar…
AndreiEres 10030ae
Revert changes from validate_block
AndreiEres 7f6c95c
Remove unused deps
AndreiEres aace653
Fix compilation errors
AndreiEres 536ad09
Fix deps
AndreiEres a64f972
Add docs
AndreiEres fc5c5a8
Add on_block_validation_rounds
AndreiEres 4993c65
Remove redundant CompactProof encoding
AndreiEres 7f1552a
Remove runtime-benchmarks from the testing runtime
AndreiEres 03c12c3
Avoid unwraps
AndreiEres 62143ee
Use saturating_sub
AndreiEres e0505e6
Use 20 on_block_validation_rounds by default
AndreiEres 3a49743
Remove unnecessary pvf config import
AndreiEres 34a7171
Fix features
AndreiEres df83321
Revert "Fix features"
AndreiEres 7d68f00
Revert "Remove runtime-benchmarks from the testing runtime"
AndreiEres 04d22aa
Use enum for storage benchmar mode selection
AndreiEres ffc17bd
Fix InMemoryDb name usage
AndreiEres 0b5f597
Fix names
AndreiEres 2a318d5
Update substrate/utils/frame/benchmarking-cli/src/storage/cmd.rs
AndreiEres ce323e7
Update substrate/utils/frame/benchmarking-cli/src/storage/read.rs
AndreiEres a6c7fed
Replace asserts with errors
AndreiEres 5ecfa34
Merge branch 'master' into AndreiEres/benchmark-storage-access-on-blo…
AndreiEres File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,17 @@ | ||
| # Schema: Polkadot SDK PRDoc Schema (prdoc) v1.0.0 | ||
| # See doc at https://raw.githubusercontent.com/paritytech/polkadot-sdk/master/prdoc/schema_user.json | ||
|
|
||
| title: Benchmark storage access on block validation | ||
|
|
||
| doc: | ||
| - audience: [Runtime Dev, Node Dev] | ||
| description: | | ||
| Adds checking storage weights on block validation for both read and write benchmarks. | ||
|
|
||
| crates: | ||
| - name: cumulus-pallet-parachain-system | ||
| bump: minor | ||
| - name: frame-benchmarking-cli | ||
| bump: minor | ||
| - name: frame-storage-access-test-runtime | ||
| bump: major |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.