-
Notifications
You must be signed in to change notification settings - Fork 256
Update production runtime weight #3578
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 1 commit
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
d38f0ca
Fix broken benchmarks in pallet-transporter and pallet-messenger
NingLin-P 6f4464f
Update weight of the unlock_funds benchmark in pallet-domains
NingLin-P 87e0e4b
Add benchmark for XDM between domains in the pallet-messenger extension
NingLin-P ee7ba9f
Update pallet-messenger extension SubstrateWeight type
NingLin-P c977079
Export pallet WeightInfo trait
NingLin-P 86dd424
Add more (mostly upstream) pallets to runtime benchmark list
NingLin-P a6e2670
Init weights files structure in the runtime
NingLin-P 1a273f9
Add and run scripte to generate weight files
NingLin-P df64e4a
Recorrect the WeightInfo trait for the extension weight files
NingLin-P 3c79afe
Apply weight to the production runtime
NingLin-P 4933789
Fix clippy & update runtime-benchmark.sh
NingLin-P 11623ab
Merge branch 'main' of github.com:subspace/subspace into update-weight
NingLin-P 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,148 @@ | ||
|
|
||
| //! Autogenerated weights for `frame_system` | ||
| //! | ||
| //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 46.2.0 | ||
| //! DATE: 2025-06-12, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` | ||
| //! WORST CASE MAP SIZE: `1000000` | ||
| //! HOSTNAME: `protocol-team-testing`, CPU: `AMD Ryzen 5 3600 6-Core Processor` | ||
| //! WASM-EXECUTION: `Compiled`, CHAIN: `None`, DB CACHE: 1024 | ||
|
|
||
| // Executed Command: | ||
| // ./target/release/subspace-node | ||
| // benchmark | ||
| // pallet | ||
| // --runtime=./target/release/wbuild/subspace-runtime/subspace_runtime.compact.compressed.wasm | ||
| // --genesis-builder=none | ||
| // --steps=50 | ||
| // --repeat=20 | ||
| // --pallet=frame_system | ||
| // --extrinsic=* | ||
| // --wasm-execution=compiled | ||
| // --heap-pages=4096 | ||
| // --output=./crates/subspace-runtime/src/weights-tmp/frame_system.rs | ||
|
|
||
| #![cfg_attr(rustfmt, rustfmt_skip)] | ||
| #![allow(unused_parens)] | ||
| #![allow(unused_imports)] | ||
| #![allow(missing_docs)] | ||
|
|
||
| use frame_support::{traits::Get, weights::Weight}; | ||
| use core::marker::PhantomData; | ||
|
|
||
| /// Weight functions for `frame_system`. | ||
| pub struct WeightInfo<T>(PhantomData<T>); | ||
| impl<T: frame_system::Config> frame_system::WeightInfo for WeightInfo<T> { | ||
| /// The range of component `b` is `[0, 3932160]`. | ||
| fn remark(b: u32, ) -> Weight { | ||
| // Proof Size summary in bytes: | ||
| // Measured: `0` | ||
| // Estimated: `0` | ||
| // Minimum execution time: 2_670_000 picoseconds. | ||
| Weight::from_parts(2_730_000, 0) | ||
| .saturating_add(Weight::from_parts(0, 0)) | ||
| // Standard Error: 1 | ||
| .saturating_add(Weight::from_parts(321, 0).saturating_mul(b.into())) | ||
| } | ||
| /// The range of component `b` is `[0, 3932160]`. | ||
| fn remark_with_event(b: u32, ) -> Weight { | ||
| // Proof Size summary in bytes: | ||
| // Measured: `0` | ||
| // Estimated: `0` | ||
| // Minimum execution time: 6_589_000 picoseconds. | ||
| Weight::from_parts(6_670_000, 0) | ||
| .saturating_add(Weight::from_parts(0, 0)) | ||
| // Standard Error: 0 | ||
| .saturating_add(Weight::from_parts(1_089, 0).saturating_mul(b.into())) | ||
| } | ||
| /// Storage: UNKNOWN KEY `0x3a686561707061676573` (r:0 w:1) | ||
| /// Proof: UNKNOWN KEY `0x3a686561707061676573` (r:0 w:1) | ||
| fn set_heap_pages() -> Weight { | ||
| // Proof Size summary in bytes: | ||
| // Measured: `0` | ||
| // Estimated: `0` | ||
| // Minimum execution time: 4_330_000 picoseconds. | ||
| Weight::from_parts(4_520_000, 0) | ||
| .saturating_add(Weight::from_parts(0, 0)) | ||
| .saturating_add(T::DbWeight::get().writes(1)) | ||
| } | ||
| /// Storage: UNKNOWN KEY `0x3a636f6465` (r:0 w:1) | ||
| /// Proof: UNKNOWN KEY `0x3a636f6465` (r:0 w:1) | ||
| fn set_code() -> Weight { | ||
| // Proof Size summary in bytes: | ||
| // Measured: `0` | ||
| // Estimated: `0` | ||
| // Minimum execution time: 120_649_686_000 picoseconds. | ||
| Weight::from_parts(145_558_145_000, 0) | ||
| .saturating_add(Weight::from_parts(0, 0)) | ||
| .saturating_add(T::DbWeight::get().writes(1)) | ||
| } | ||
| /// Storage: `Skipped::Metadata` (r:0 w:0) | ||
| /// Proof: `Skipped::Metadata` (`max_values`: None, `max_size`: None, mode: `Measured`) | ||
| /// The range of component `i` is `[0, 1000]`. | ||
| fn set_storage(i: u32, ) -> Weight { | ||
| // Proof Size summary in bytes: | ||
| // Measured: `0` | ||
| // Estimated: `0` | ||
| // Minimum execution time: 2_660_000 picoseconds. | ||
| Weight::from_parts(2_690_000, 0) | ||
| .saturating_add(Weight::from_parts(0, 0)) | ||
| // Standard Error: 717 | ||
| .saturating_add(Weight::from_parts(800_027, 0).saturating_mul(i.into())) | ||
| .saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(i.into()))) | ||
| } | ||
| /// Storage: `Skipped::Metadata` (r:0 w:0) | ||
| /// Proof: `Skipped::Metadata` (`max_values`: None, `max_size`: None, mode: `Measured`) | ||
| /// The range of component `i` is `[0, 1000]`. | ||
| fn kill_storage(i: u32, ) -> Weight { | ||
| // Proof Size summary in bytes: | ||
| // Measured: `0` | ||
| // Estimated: `0` | ||
| // Minimum execution time: 2_770_000 picoseconds. | ||
| Weight::from_parts(2_790_000, 0) | ||
| .saturating_add(Weight::from_parts(0, 0)) | ||
| // Standard Error: 701 | ||
| .saturating_add(Weight::from_parts(601_642, 0).saturating_mul(i.into())) | ||
| .saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(i.into()))) | ||
| } | ||
| /// Storage: `Skipped::Metadata` (r:0 w:0) | ||
| /// Proof: `Skipped::Metadata` (`max_values`: None, `max_size`: None, mode: `Measured`) | ||
| /// The range of component `p` is `[0, 1000]`. | ||
| fn kill_prefix(p: u32, ) -> Weight { | ||
| // Proof Size summary in bytes: | ||
| // Measured: `17 + p * (69 ±0)` | ||
| // Estimated: `0 + p * (70 ±0)` | ||
| // Minimum execution time: 4_330_000 picoseconds. | ||
| Weight::from_parts(4_400_000, 0) | ||
| .saturating_add(Weight::from_parts(0, 0)) | ||
| // Standard Error: 954 | ||
| .saturating_add(Weight::from_parts(1_199_247, 0).saturating_mul(p.into())) | ||
| .saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(p.into()))) | ||
| .saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(p.into()))) | ||
| .saturating_add(Weight::from_parts(0, 70).saturating_mul(p.into())) | ||
| } | ||
| /// Storage: `System::AuthorizedUpgrade` (r:0 w:1) | ||
| /// Proof: `System::AuthorizedUpgrade` (`max_values`: Some(1), `max_size`: Some(33), added: 528, mode: `MaxEncodedLen`) | ||
| fn authorize_upgrade() -> Weight { | ||
| // Proof Size summary in bytes: | ||
| // Measured: `0` | ||
| // Estimated: `0` | ||
| // Minimum execution time: 10_800_000 picoseconds. | ||
| Weight::from_parts(12_140_000, 0) | ||
| .saturating_add(Weight::from_parts(0, 0)) | ||
| .saturating_add(T::DbWeight::get().writes(1)) | ||
| } | ||
| /// Storage: `System::AuthorizedUpgrade` (r:1 w:1) | ||
| /// Proof: `System::AuthorizedUpgrade` (`max_values`: Some(1), `max_size`: Some(33), added: 528, mode: `MaxEncodedLen`) | ||
| /// Storage: UNKNOWN KEY `0x3a636f6465` (r:0 w:1) | ||
| /// Proof: UNKNOWN KEY `0x3a636f6465` (r:0 w:1) | ||
| fn apply_authorized_upgrade() -> Weight { | ||
| // Proof Size summary in bytes: | ||
| // Measured: `21` | ||
| // Estimated: `1518` | ||
| // Minimum execution time: 141_109_060_000 picoseconds. | ||
| Weight::from_parts(146_311_089_000, 0) | ||
| .saturating_add(Weight::from_parts(0, 1518)) | ||
| .saturating_add(T::DbWeight::get().reads(1)) | ||
| .saturating_add(T::DbWeight::get().writes(2)) | ||
| } | ||
| } | ||
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,159 @@ | ||
|
|
||
| //! Autogenerated weights for `pallet_balances` | ||
| //! | ||
| //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 46.2.0 | ||
| //! DATE: 2025-06-12, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` | ||
| //! WORST CASE MAP SIZE: `1000000` | ||
| //! HOSTNAME: `protocol-team-testing`, CPU: `AMD Ryzen 5 3600 6-Core Processor` | ||
| //! WASM-EXECUTION: `Compiled`, CHAIN: `None`, DB CACHE: 1024 | ||
|
|
||
| // Executed Command: | ||
| // ./target/release/subspace-node | ||
| // benchmark | ||
| // pallet | ||
| // --runtime=./target/release/wbuild/subspace-runtime/subspace_runtime.compact.compressed.wasm | ||
| // --genesis-builder=none | ||
| // --steps=50 | ||
| // --repeat=20 | ||
| // --pallet=pallet_balances | ||
| // --extrinsic=* | ||
| // --wasm-execution=compiled | ||
| // --heap-pages=4096 | ||
| // --output=./crates/subspace-runtime/src/weights-tmp/pallet_balances.rs | ||
|
|
||
| #![cfg_attr(rustfmt, rustfmt_skip)] | ||
| #![allow(unused_parens)] | ||
| #![allow(unused_imports)] | ||
| #![allow(missing_docs)] | ||
|
|
||
| use frame_support::{traits::Get, weights::Weight}; | ||
| use core::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) | ||
| /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) | ||
| fn transfer_allow_death() -> Weight { | ||
| // Proof Size summary in bytes: | ||
| // Measured: `0` | ||
| // Estimated: `3593` | ||
| // Minimum execution time: 66_449_000 picoseconds. | ||
| Weight::from_parts(67_359_000, 0) | ||
| .saturating_add(Weight::from_parts(0, 3593)) | ||
| .saturating_add(T::DbWeight::get().reads(1)) | ||
| .saturating_add(T::DbWeight::get().writes(1)) | ||
| } | ||
| /// Storage: `System::Account` (r:1 w:1) | ||
| /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) | ||
| fn transfer_keep_alive() -> Weight { | ||
| // Proof Size summary in bytes: | ||
| // Measured: `0` | ||
| // Estimated: `3593` | ||
| // Minimum execution time: 53_219_000 picoseconds. | ||
| Weight::from_parts(53_629_000, 0) | ||
| .saturating_add(Weight::from_parts(0, 3593)) | ||
| .saturating_add(T::DbWeight::get().reads(1)) | ||
| .saturating_add(T::DbWeight::get().writes(1)) | ||
| } | ||
| /// Storage: `System::Account` (r:1 w:1) | ||
| /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) | ||
| fn force_set_balance_creating() -> Weight { | ||
| // Proof Size summary in bytes: | ||
| // Measured: `52` | ||
| // Estimated: `3593` | ||
| // Minimum execution time: 17_370_000 picoseconds. | ||
| Weight::from_parts(17_599_000, 0) | ||
| .saturating_add(Weight::from_parts(0, 3593)) | ||
| .saturating_add(T::DbWeight::get().reads(1)) | ||
| .saturating_add(T::DbWeight::get().writes(1)) | ||
| } | ||
| /// Storage: `System::Account` (r:1 w:1) | ||
| /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) | ||
| fn force_set_balance_killing() -> Weight { | ||
| // Proof Size summary in bytes: | ||
| // Measured: `52` | ||
| // Estimated: `3593` | ||
| // Minimum execution time: 26_879_000 picoseconds. | ||
| Weight::from_parts(27_179_000, 0) | ||
| .saturating_add(Weight::from_parts(0, 3593)) | ||
| .saturating_add(T::DbWeight::get().reads(1)) | ||
| .saturating_add(T::DbWeight::get().writes(1)) | ||
| } | ||
| /// Storage: `System::Account` (r:2 w:2) | ||
| /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) | ||
| fn force_transfer() -> Weight { | ||
| // Proof Size summary in bytes: | ||
| // Measured: `52` | ||
| // Estimated: `6196` | ||
| // Minimum execution time: 68_189_000 picoseconds. | ||
| Weight::from_parts(68_628_000, 0) | ||
| .saturating_add(Weight::from_parts(0, 6196)) | ||
| .saturating_add(T::DbWeight::get().reads(2)) | ||
| .saturating_add(T::DbWeight::get().writes(2)) | ||
| } | ||
| /// Storage: `System::Account` (r:1 w:1) | ||
| /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) | ||
| fn transfer_all() -> Weight { | ||
| // Proof Size summary in bytes: | ||
| // Measured: `0` | ||
| // Estimated: `3593` | ||
| // Minimum execution time: 66_268_000 picoseconds. | ||
| Weight::from_parts(67_059_000, 0) | ||
| .saturating_add(Weight::from_parts(0, 3593)) | ||
| .saturating_add(T::DbWeight::get().reads(1)) | ||
| .saturating_add(T::DbWeight::get().writes(1)) | ||
| } | ||
| /// Storage: `System::Account` (r:1 w:1) | ||
| /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) | ||
| fn force_unreserve() -> Weight { | ||
| // Proof Size summary in bytes: | ||
| // Measured: `52` | ||
| // Estimated: `3593` | ||
| // Minimum execution time: 21_000_000 picoseconds. | ||
| Weight::from_parts(21_170_000, 0) | ||
| .saturating_add(Weight::from_parts(0, 3593)) | ||
| .saturating_add(T::DbWeight::get().reads(1)) | ||
| .saturating_add(T::DbWeight::get().writes(1)) | ||
| } | ||
| /// Storage: `System::Account` (r:999 w:999) | ||
| /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) | ||
| /// The range of component `u` is `[1, 1000]`. | ||
| fn upgrade_accounts(u: u32, ) -> Weight { | ||
| // Proof Size summary in bytes: | ||
| // Measured: `0 + u * (136 ±0)` | ||
| // Estimated: `990 + u * (2603 ±0)` | ||
| // Minimum execution time: 20_320_000 picoseconds. | ||
| Weight::from_parts(20_450_000, 0) | ||
| .saturating_add(Weight::from_parts(0, 990)) | ||
| // Standard Error: 10_380 | ||
| .saturating_add(Weight::from_parts(17_592_764, 0).saturating_mul(u.into())) | ||
| .saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(u.into()))) | ||
| .saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(u.into()))) | ||
| .saturating_add(Weight::from_parts(0, 2603).saturating_mul(u.into())) | ||
| } | ||
| fn force_adjust_total_issuance() -> Weight { | ||
| // Proof Size summary in bytes: | ||
| // Measured: `0` | ||
| // Estimated: `0` | ||
| // Minimum execution time: 7_180_000 picoseconds. | ||
| Weight::from_parts(7_370_000, 0) | ||
| .saturating_add(Weight::from_parts(0, 0)) | ||
| } | ||
| fn burn_allow_death() -> Weight { | ||
| // Proof Size summary in bytes: | ||
| // Measured: `0` | ||
| // Estimated: `0` | ||
| // Minimum execution time: 39_059_000 picoseconds. | ||
| Weight::from_parts(39_559_000, 0) | ||
| .saturating_add(Weight::from_parts(0, 0)) | ||
| } | ||
| fn burn_keep_alive() -> Weight { | ||
| // Proof Size summary in bytes: | ||
| // Measured: `0` | ||
| // Estimated: `0` | ||
| // Minimum execution time: 26_150_000 picoseconds. | ||
| Weight::from_parts(26_330_000, 0) | ||
| .saturating_add(Weight::from_parts(0, 0)) | ||
| } | ||
| } |
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.
This "UNKNOWN KEY" comment looks like an error, does it impact the result of the benchmark?
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.
I think this represents the direct storage access with raw storage key in
frame-system, this also exists in the upstream weight and should not affect the benchmark result.