This repository was archived by the owner on Nov 15, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Benchmarking also benchmark for decoding the call #9343
Merged
Merged
Changes from 9 commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
775e863
benchmark for decoding of call
gui1117 a09c41e
better names
gui1117 27052d0
Merge branch 'master' of https://github.com/paritytech/substrate into…
0803857
fix benchmarks
gui1117 d49a472
cargo run --quiet --release --features=runtime-benchmarks --manifest-…
647b6f4
cargo run --quiet --release --features=runtime-benchmarks --manifest-…
bd94814
Merge branch 'master' of https://github.com/paritytech/substrate into…
660dc6e
Merge branch 'master' of https://github.com/paritytech/substrate into…
b8bf95b
cargo run --quiet --release --features=runtime-benchmarks --manifest-…
524f5dd
Update frame/system/src/weights.rs
shawntabrizi 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
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 |
|---|---|---|
|
|
@@ -17,8 +17,8 @@ | |
|
|
||
| //! Autogenerated weights for frame_system | ||
| //! | ||
| //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 3.0.0 | ||
| //! DATE: 2021-06-19, STEPS: `[50, ]`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` | ||
| //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev | ||
| //! DATE: 2021-07-20, STEPS: `[50, ]`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` | ||
| //! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 128 | ||
|
|
||
| // Executed Command: | ||
|
|
@@ -55,79 +55,83 @@ pub trait WeightInfo { | |
|
|
||
| /// Weights for frame_system using the Substrate node and recommended hardware. | ||
| pub struct SubstrateWeight<T>(PhantomData<T>); | ||
| impl<T: crate::Config> WeightInfo for SubstrateWeight<T> { | ||
| fn remark(_b: u32, ) -> Weight { | ||
| (1_038_000 as Weight) | ||
| impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> { | ||
| fn remark(b: u32, ) -> Weight { | ||
| (0 as Weight) | ||
| // Standard Error: 0 | ||
| .saturating_add((1_000 as Weight).saturating_mul(b as Weight)) | ||
| } | ||
| fn remark_with_event(b: u32, ) -> Weight { | ||
| (5_246_000 as Weight) | ||
| (16_569_000 as Weight) | ||
| // Standard Error: 0 | ||
| .saturating_add((1_000 as Weight).saturating_mul(b as Weight)) | ||
| .saturating_add((2_000 as Weight).saturating_mul(b as Weight)) | ||
| } | ||
| fn set_heap_pages() -> Weight { | ||
| (1_586_000 as Weight) | ||
| (1_783_000 as Weight) | ||
| .saturating_add(T::DbWeight::get().writes(1 as Weight)) | ||
| } | ||
| fn set_changes_trie_config() -> Weight { | ||
| (7_181_000 as Weight) | ||
| (7_727_000 as Weight) | ||
| .saturating_add(T::DbWeight::get().reads(1 as Weight)) | ||
| .saturating_add(T::DbWeight::get().writes(2 as Weight)) | ||
| } | ||
| fn set_storage(i: u32, ) -> Weight { | ||
| (0 as Weight) | ||
| // Standard Error: 0 | ||
| .saturating_add((568_000 as Weight).saturating_mul(i as Weight)) | ||
| .saturating_add((875_000 as Weight).saturating_mul(i as Weight)) | ||
| .saturating_add(T::DbWeight::get().writes((1 as Weight).saturating_mul(i as Weight))) | ||
| } | ||
| fn kill_storage(i: u32, ) -> Weight { | ||
| (2_278_000 as Weight) | ||
| (4_216_000 as Weight) | ||
| // Standard Error: 0 | ||
| .saturating_add((423_000 as Weight).saturating_mul(i as Weight)) | ||
| .saturating_add((555_000 as Weight).saturating_mul(i as Weight)) | ||
| .saturating_add(T::DbWeight::get().writes((1 as Weight).saturating_mul(i as Weight))) | ||
| } | ||
| fn kill_prefix(p: u32, ) -> Weight { | ||
| (8_243_000 as Weight) | ||
| (14_558_000 as Weight) | ||
| // Standard Error: 1_000 | ||
| .saturating_add((795_000 as Weight).saturating_mul(p as Weight)) | ||
| .saturating_add((781_000 as Weight).saturating_mul(p as Weight)) | ||
| .saturating_add(T::DbWeight::get().writes((1 as Weight).saturating_mul(p as Weight))) | ||
| } | ||
| } | ||
|
|
||
| // For backwards compatibility and tests | ||
| impl WeightInfo for () { | ||
| fn remark(_b: u32, ) -> Weight { | ||
| (1_038_000 as Weight) | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. interesting the weight is now only factor of message length |
||
| fn remark(b: u32, ) -> Weight { | ||
| (0 as Weight) | ||
| // Standard Error: 0 | ||
| .saturating_add((1_000 as Weight).saturating_mul(b as Weight)) | ||
| } | ||
| fn remark_with_event(b: u32, ) -> Weight { | ||
| (5_246_000 as Weight) | ||
| (16_569_000 as Weight) | ||
| // Standard Error: 0 | ||
| .saturating_add((1_000 as Weight).saturating_mul(b as Weight)) | ||
| .saturating_add((2_000 as Weight).saturating_mul(b as Weight)) | ||
| } | ||
| fn set_heap_pages() -> Weight { | ||
| (1_586_000 as Weight) | ||
| (1_783_000 as Weight) | ||
| .saturating_add(RocksDbWeight::get().writes(1 as Weight)) | ||
| } | ||
| fn set_changes_trie_config() -> Weight { | ||
| (7_181_000 as Weight) | ||
| (7_727_000 as Weight) | ||
| .saturating_add(RocksDbWeight::get().reads(1 as Weight)) | ||
| .saturating_add(RocksDbWeight::get().writes(2 as Weight)) | ||
| } | ||
| fn set_storage(i: u32, ) -> Weight { | ||
| (0 as Weight) | ||
| // Standard Error: 0 | ||
| .saturating_add((568_000 as Weight).saturating_mul(i as Weight)) | ||
| .saturating_add((875_000 as Weight).saturating_mul(i as Weight)) | ||
| .saturating_add(RocksDbWeight::get().writes((1 as Weight).saturating_mul(i as Weight))) | ||
| } | ||
| fn kill_storage(i: u32, ) -> Weight { | ||
| (2_278_000 as Weight) | ||
| (4_216_000 as Weight) | ||
| // Standard Error: 0 | ||
| .saturating_add((423_000 as Weight).saturating_mul(i as Weight)) | ||
| .saturating_add((555_000 as Weight).saturating_mul(i as Weight)) | ||
| .saturating_add(RocksDbWeight::get().writes((1 as Weight).saturating_mul(i as Weight))) | ||
| } | ||
| fn kill_prefix(p: u32, ) -> Weight { | ||
| (8_243_000 as Weight) | ||
| (14_558_000 as Weight) | ||
| // Standard Error: 1_000 | ||
| .saturating_add((795_000 as Weight).saturating_mul(p as Weight)) | ||
| .saturating_add((781_000 as Weight).saturating_mul(p as Weight)) | ||
| .saturating_add(RocksDbWeight::get().writes((1 as Weight).saturating_mul(p as Weight))) | ||
| } | ||
| } | ||
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
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.