-
Notifications
You must be signed in to change notification settings - Fork 11
Benchmark all pallets #58
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
Merged
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
57f4e0d
add bennchmark scripts and run benchmarks
clangenb 68c07f5
[GA] update chain-spec name in benchmark scripts
clangenb a8d4bb9
add pallet-scheduler to benchmarks and re-run benchmarks
clangenb 761154f
update frame_system weights
clangenb 4af434e
run rustfmt
clangenb 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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,74 @@ | ||
| //! Autogenerated weights for `frame_system` | ||
| //! | ||
| //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev | ||
| //! DATE: 2021-10-05, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` | ||
| //! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("integritee-solo-fresh"), DB CACHE: 128 | ||
|
|
||
| // Executed Command: | ||
| // ./target/release/integritee-node | ||
| // benchmark | ||
| // --chain=integritee-solo-fresh | ||
| // --steps=50 | ||
| // --repeat=20 | ||
| // --pallet=frame_system | ||
| // --extrinsic=* | ||
| // --execution=wasm | ||
| // --wasm-execution=compiled | ||
| // --heap-pages=4096 | ||
| // --output=./runtime/src/weights/frame_system.rs | ||
|
|
||
|
|
||
| #![cfg_attr(rustfmt, rustfmt_skip)] | ||
| #![allow(unused_parens)] | ||
| #![allow(unused_imports)] | ||
|
|
||
| use frame_support::{traits::Get, weights::Weight}; | ||
| use sp_std::marker::PhantomData; | ||
|
|
||
| /// Weight functions for frame_system. | ||
| pub struct WeightInfo<T>(PhantomData<T>); | ||
| impl<T: frame_system::Config> frame_system::WeightInfo for WeightInfo<T> { | ||
| fn remark(b: u32, ) -> Weight { | ||
| (574_000 as Weight) | ||
| // Standard Error: 0 | ||
| .saturating_add((1_000 as Weight).saturating_mul(b as Weight)) | ||
| } | ||
| fn remark_with_event(b: u32, ) -> Weight { | ||
| (0 as Weight) | ||
| // Standard Error: 0 | ||
| .saturating_add((2_000 as Weight).saturating_mul(b as Weight)) | ||
| } | ||
| // Storage: unknown [0x3a686561707061676573] (r:0 w:1) | ||
| fn set_heap_pages() -> Weight { | ||
| (1_800_000 as Weight) | ||
| .saturating_add(T::DbWeight::get().writes(1 as Weight)) | ||
| } | ||
| // Storage: System Digest (r:1 w:1) | ||
| // Storage: unknown [0x3a6368616e6765735f74726965] (r:0 w:1) | ||
| fn set_changes_trie_config() -> Weight { | ||
| (8_000_000 as Weight) | ||
| .saturating_add(T::DbWeight::get().reads(1 as Weight)) | ||
| .saturating_add(T::DbWeight::get().writes(2 as Weight)) | ||
| } | ||
| // Storage: Skipped Metadata (r:0 w:0) | ||
| fn set_storage(i: u32, ) -> Weight { | ||
| (0 as Weight) | ||
| // Standard Error: 2_000 | ||
| .saturating_add((887_000 as Weight).saturating_mul(i as Weight)) | ||
| .saturating_add(T::DbWeight::get().writes((1 as Weight).saturating_mul(i as Weight))) | ||
| } | ||
| // Storage: Skipped Metadata (r:0 w:0) | ||
| fn kill_storage(i: u32, ) -> Weight { | ||
| (2_052_000 as Weight) | ||
| // Standard Error: 1_000 | ||
| .saturating_add((567_000 as Weight).saturating_mul(i as Weight)) | ||
| .saturating_add(T::DbWeight::get().writes((1 as Weight).saturating_mul(i as Weight))) | ||
| } | ||
| // Storage: Skipped Metadata (r:0 w:0) | ||
| fn kill_prefix(p: u32, ) -> Weight { | ||
| (3_640_000 as Weight) | ||
| // Standard Error: 2_000 | ||
| .saturating_add((799_000 as Weight).saturating_mul(p as Weight)) | ||
| .saturating_add(T::DbWeight::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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,24 @@ | ||
| //! The weights used in the runtime | ||
| //! | ||
| //! The current weights have been obtained with the following reference hardware: | ||
| //! * Core(TM) i7-10875H | ||
| //! * 32GB of RAM | ||
| //! * NVMe SSD | ||
|
|
||
| // the generated files to not pass clippy | ||
| #![allow(clippy::all)] | ||
|
|
||
| // note: Always double check the frame_system generated weights. Sometimes some values are 0, but | ||
| // return ridiculously high weights in another run. When re-running the benchmarks always perform | ||
| // sanity checks with substrate's weight for this module. The close to 0 values seem to be correct. | ||
| // | ||
| // Problematic functions are: `remark`, `remark_with_event`. | ||
| pub mod frame_system; | ||
| pub mod pallet_balances; | ||
| pub mod pallet_multisig; | ||
| pub mod pallet_proxy; | ||
| pub mod pallet_scheduler; | ||
| pub mod pallet_teerex; | ||
| pub mod pallet_timestamp; | ||
| pub mod pallet_treasury; | ||
| pub mod pallet_vesting; |
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,68 @@ | ||
|
|
||
| //! Autogenerated weights for `pallet_balances` | ||
| //! | ||
| //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev | ||
| //! DATE: 2021-10-05, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` | ||
| //! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("integritee-solo-fresh"), DB CACHE: 128 | ||
|
|
||
| // Executed Command: | ||
| // ./target/release/integritee-node | ||
| // benchmark | ||
| // --chain=integritee-solo-fresh | ||
| // --steps=50 | ||
| // --repeat=20 | ||
| // --pallet=pallet_balances | ||
| // --extrinsic=* | ||
| // --execution=wasm | ||
| // --wasm-execution=compiled | ||
| // --heap-pages=4096 | ||
| // --output=./runtime/src/weights/pallet_balances.rs | ||
|
|
||
|
|
||
| #![cfg_attr(rustfmt, rustfmt_skip)] | ||
| #![allow(unused_parens)] | ||
| #![allow(unused_imports)] | ||
|
|
||
| use frame_support::{traits::Get, weights::Weight}; | ||
| use sp_std::marker::PhantomData; | ||
|
|
||
| /// Weight functions for pallet_balances. | ||
| pub struct WeightInfo<T>(PhantomData<T>); | ||
| impl<T: frame_system::Config> pallet_balances::WeightInfo for WeightInfo<T> { | ||
| // Storage: System Account (r:1 w:1) | ||
| fn transfer() -> Weight { | ||
| (72_600_000 as Weight) | ||
| .saturating_add(T::DbWeight::get().reads(1 as Weight)) | ||
| .saturating_add(T::DbWeight::get().writes(1 as Weight)) | ||
| } | ||
| // Storage: System Account (r:1 w:1) | ||
| fn transfer_keep_alive() -> Weight { | ||
| (53_200_000 as Weight) | ||
| .saturating_add(T::DbWeight::get().reads(1 as Weight)) | ||
| .saturating_add(T::DbWeight::get().writes(1 as Weight)) | ||
| } | ||
| // Storage: System Account (r:1 w:1) | ||
| fn set_balance_creating() -> Weight { | ||
| (27_600_000 as Weight) | ||
| .saturating_add(T::DbWeight::get().reads(1 as Weight)) | ||
| .saturating_add(T::DbWeight::get().writes(1 as Weight)) | ||
| } | ||
| // Storage: System Account (r:1 w:1) | ||
| fn set_balance_killing() -> Weight { | ||
| (33_600_000 as Weight) | ||
| .saturating_add(T::DbWeight::get().reads(1 as Weight)) | ||
| .saturating_add(T::DbWeight::get().writes(1 as Weight)) | ||
| } | ||
| // Storage: System Account (r:2 w:2) | ||
| fn force_transfer() -> Weight { | ||
| (69_800_000 as Weight) | ||
| .saturating_add(T::DbWeight::get().reads(2 as Weight)) | ||
| .saturating_add(T::DbWeight::get().writes(2 as Weight)) | ||
| } | ||
| // Storage: System Account (r:1 w:1) | ||
| fn transfer_all() -> Weight { | ||
| (64_000_000 as Weight) | ||
| .saturating_add(T::DbWeight::get().reads(1 as Weight)) | ||
| .saturating_add(T::DbWeight::get().writes(1 as Weight)) | ||
| } | ||
| } |
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.
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.
No longer needed. This is installed by default