Skip to content

Commit

Permalink
feat: backport weights to paseo
Browse files Browse the repository at this point in the history
  • Loading branch information
emmanuelm41 committed Apr 18, 2024
1 parent fd168b6 commit 21e0d61
Show file tree
Hide file tree
Showing 48 changed files with 2,309 additions and 2,325 deletions.
39 changes: 20 additions & 19 deletions relay/paseo/src/weights/frame_benchmarking_baseline.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,26 +13,27 @@
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

//! Autogenerated weights for `frame_benchmarking::baseline`
//!
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0
//! DATE: 2024-03-10, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! DATE: 2024-02-17, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! WORST CASE MAP SIZE: `1000000`
//! HOSTNAME: `ggwpez-ref-hw`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz`
//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("./polkadot-chain-spec.json")`, DB CACHE: 1024
//! HOSTNAME: `p-ch-hmb-vm-vapas-002`, CPU: `Intel(R) Xeon(R) Silver 4314 CPU @ 2.40GHz`
//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("./paseo-chain-spec.json")`, DB CACHE: 1024

// Executed Command:
// ./target/production/polkadot
// benchmark
// pallet
// --chain=./polkadot-chain-spec.json
// --chain=./paseo-chain-spec.json
// --steps=50
// --repeat=20
// --pallet=frame_benchmarking::baseline
// --extrinsic=*
// --wasm-execution=compiled
// --heap-pages=4096
// --output=./polkadot-weights/
// --output=./paseo-weights/
// --header=./file_header.txt

#![cfg_attr(rustfmt, rustfmt_skip)]
Expand All @@ -51,54 +52,54 @@ impl<T: frame_system::Config> frame_benchmarking::baseline::WeightInfo for Weigh
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `0`
// Minimum execution time: 175_000 picoseconds.
Weight::from_parts(214_057, 0)
// Minimum execution time: 220_000 picoseconds.
Weight::from_parts(338_692, 0)
.saturating_add(Weight::from_parts(0, 0))
}
/// The range of component `i` is `[0, 1000000]`.
fn subtraction(_i: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `0`
// Minimum execution time: 178_000 picoseconds.
Weight::from_parts(220_856, 0)
// Minimum execution time: 220_000 picoseconds.
Weight::from_parts(250_372, 0)
.saturating_add(Weight::from_parts(0, 0))
}
/// The range of component `i` is `[0, 1000000]`.
fn multiplication(_i: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `0`
// Minimum execution time: 179_000 picoseconds.
Weight::from_parts(213_271, 0)
// Minimum execution time: 218_000 picoseconds.
Weight::from_parts(274_048, 0)
.saturating_add(Weight::from_parts(0, 0))
}
/// The range of component `i` is `[0, 1000000]`.
fn division(_i: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `0`
// Minimum execution time: 173_000 picoseconds.
Weight::from_parts(206_295, 0)
// Minimum execution time: 213_000 picoseconds.
Weight::from_parts(285_730, 0)
.saturating_add(Weight::from_parts(0, 0))
}
fn hashing() -> Weight {
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `0`
// Minimum execution time: 23_861_476_000 picoseconds.
Weight::from_parts(23_888_047_000, 0)
// Minimum execution time: 28_799_059_000 picoseconds.
Weight::from_parts(29_695_824_000, 0)
.saturating_add(Weight::from_parts(0, 0))
}
/// The range of component `i` is `[0, 100]`.
fn sr25519_verification(i: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `0`
// Minimum execution time: 224_000 picoseconds.
Weight::from_parts(4_903_346, 0)
// Minimum execution time: 280_000 picoseconds.
Weight::from_parts(12_209_807, 0)
.saturating_add(Weight::from_parts(0, 0))
// Standard Error: 9_407
.saturating_add(Weight::from_parts(40_865_071, 0).saturating_mul(i.into()))
// Standard Error: 109_646
.saturating_add(Weight::from_parts(50_662_579, 0).saturating_mul(i.into()))
}
}
35 changes: 18 additions & 17 deletions relay/paseo/src/weights/frame_election_provider_support.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,26 +13,27 @@
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

//! Autogenerated weights for `frame_election_provider_support`
//!
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0
//! DATE: 2024-03-10, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! DATE: 2024-02-17, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! WORST CASE MAP SIZE: `1000000`
//! HOSTNAME: `ggwpez-ref-hw`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz`
//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("./polkadot-chain-spec.json")`, DB CACHE: 1024
//! HOSTNAME: `p-ch-hmb-vm-vapas-002`, CPU: `Intel(R) Xeon(R) Silver 4314 CPU @ 2.40GHz`
//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("./paseo-chain-spec.json")`, DB CACHE: 1024

// Executed Command:
// ./target/production/polkadot
// benchmark
// pallet
// --chain=./polkadot-chain-spec.json
// --chain=./paseo-chain-spec.json
// --steps=50
// --repeat=20
// --pallet=frame_election_provider_support
// --extrinsic=*
// --wasm-execution=compiled
// --heap-pages=4096
// --output=./polkadot-weights/
// --output=./paseo-weights/
// --header=./file_header.txt

#![cfg_attr(rustfmt, rustfmt_skip)]
Expand All @@ -53,13 +54,13 @@ impl<T: frame_system::Config> frame_election_provider_support::WeightInfo for We
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `0`
// Minimum execution time: 7_127_246_000 picoseconds.
Weight::from_parts(7_308_658_000, 0)
// Minimum execution time: 7_708_233_000 picoseconds.
Weight::from_parts(7_801_181_000, 0)
.saturating_add(Weight::from_parts(0, 0))
// Standard Error: 147_084
.saturating_add(Weight::from_parts(6_250_512, 0).saturating_mul(v.into()))
// Standard Error: 15_037_437
.saturating_add(Weight::from_parts(1_448_677_601, 0).saturating_mul(d.into()))
// Standard Error: 165_025
.saturating_add(Weight::from_parts(6_528_087, 0).saturating_mul(v.into()))
// Standard Error: 16_871_577
.saturating_add(Weight::from_parts(1_661_785_177, 0).saturating_mul(d.into()))
}
/// The range of component `v` is `[1000, 2000]`.
/// The range of component `t` is `[500, 1000]`.
Expand All @@ -68,12 +69,12 @@ impl<T: frame_system::Config> frame_election_provider_support::WeightInfo for We
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `0`
// Minimum execution time: 4_860_861_000 picoseconds.
Weight::from_parts(4_942_856_000, 0)
// Minimum execution time: 5_578_287_000 picoseconds.
Weight::from_parts(5_982_833_000, 0)
.saturating_add(Weight::from_parts(0, 0))
// Standard Error: 132_344
.saturating_add(Weight::from_parts(5_166_570, 0).saturating_mul(v.into()))
// Standard Error: 13_530_405
.saturating_add(Weight::from_parts(1_395_319_855, 0).saturating_mul(d.into()))
// Standard Error: 151_733
.saturating_add(Weight::from_parts(5_797_906, 0).saturating_mul(v.into()))
// Standard Error: 15_512_678
.saturating_add(Weight::from_parts(1_576_793_993, 0).saturating_mul(d.into()))
}
}
88 changes: 31 additions & 57 deletions relay/paseo/src/weights/frame_system.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,26 +13,27 @@
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

//! Autogenerated weights for `frame_system`
//!
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0
//! DATE: 2024-03-10, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! DATE: 2024-02-17, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! WORST CASE MAP SIZE: `1000000`
//! HOSTNAME: `ggwpez-ref-hw`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz`
//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("./polkadot-chain-spec.json")`, DB CACHE: 1024
//! HOSTNAME: `p-ch-hmb-vm-vapas-002`, CPU: `Intel(R) Xeon(R) Silver 4314 CPU @ 2.40GHz`
//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("./paseo-chain-spec.json")`, DB CACHE: 1024

// Executed Command:
// ./target/production/polkadot
// benchmark
// pallet
// --chain=./polkadot-chain-spec.json
// --chain=./paseo-chain-spec.json
// --steps=50
// --repeat=20
// --pallet=frame_system
// --extrinsic=*
// --wasm-execution=compiled
// --heap-pages=4096
// --output=./polkadot-weights/
// --output=./paseo-weights/
// --header=./file_header.txt

#![cfg_attr(rustfmt, rustfmt_skip)]
Expand All @@ -51,22 +52,22 @@ impl<T: frame_system::Config> frame_system::WeightInfo for WeightInfo<T> {
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `0`
// Minimum execution time: 1_654_000 picoseconds.
Weight::from_parts(1_692_000, 0)
// Minimum execution time: 1_969_000 picoseconds.
Weight::from_parts(2_011_000, 0)
.saturating_add(Weight::from_parts(0, 0))
// Standard Error: 0
.saturating_add(Weight::from_parts(390, 0).saturating_mul(b.into()))
// Standard Error: 1
.saturating_add(Weight::from_parts(546, 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: 4_879_000 picoseconds.
Weight::from_parts(5_058_000, 0)
// Minimum execution time: 5_620_000 picoseconds.
Weight::from_parts(51_110_255, 0)
.saturating_add(Weight::from_parts(0, 0))
// Standard Error: 5
.saturating_add(Weight::from_parts(1_752, 0).saturating_mul(b.into()))
// Standard Error: 6
.saturating_add(Weight::from_parts(1_858, 0).saturating_mul(b.into()))
}
/// Storage: `System::Digest` (r:1 w:1)
/// Proof: `System::Digest` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
Expand All @@ -76,8 +77,8 @@ impl<T: frame_system::Config> frame_system::WeightInfo for WeightInfo<T> {
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `1485`
// Minimum execution time: 3_054_000 picoseconds.
Weight::from_parts(3_141_000, 0)
// Minimum execution time: 3_527_000 picoseconds.
Weight::from_parts(3_877_000, 0)
.saturating_add(Weight::from_parts(0, 1485))
.saturating_add(T::DbWeight::get().reads(1))
.saturating_add(T::DbWeight::get().writes(2))
Expand All @@ -90,8 +91,8 @@ impl<T: frame_system::Config> frame_system::WeightInfo for WeightInfo<T> {
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `1485`
// Minimum execution time: 96_389_124_000 picoseconds.
Weight::from_parts(98_328_390_000, 0)
// Minimum execution time: 100_955_625_000 picoseconds.
Weight::from_parts(105_325_819_000, 0)
.saturating_add(Weight::from_parts(0, 1485))
.saturating_add(T::DbWeight::get().reads(1))
.saturating_add(T::DbWeight::get().writes(2))
Expand All @@ -103,11 +104,11 @@ impl<T: frame_system::Config> frame_system::WeightInfo for WeightInfo<T> {
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `0`
// Minimum execution time: 1_597_000 picoseconds.
Weight::from_parts(1_651_000, 0)
// Minimum execution time: 2_176_000 picoseconds.
Weight::from_parts(2_406_000, 0)
.saturating_add(Weight::from_parts(0, 0))
// Standard Error: 2_244
.saturating_add(Weight::from_parts(759_502, 0).saturating_mul(i.into()))
// Standard Error: 7_316
.saturating_add(Weight::from_parts(961_397, 0).saturating_mul(i.into()))
.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(i.into())))
}
/// Storage: `Skipped::Metadata` (r:0 w:0)
Expand All @@ -117,54 +118,27 @@ impl<T: frame_system::Config> frame_system::WeightInfo for WeightInfo<T> {
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `0`
// Minimum execution time: 1_597_000 picoseconds.
Weight::from_parts(1_649_000, 0)
// Minimum execution time: 2_076_000 picoseconds.
Weight::from_parts(2_182_000, 0)
.saturating_add(Weight::from_parts(0, 0))
// Standard Error: 1_094
.saturating_add(Weight::from_parts(562_211, 0).saturating_mul(i.into()))
// Standard Error: 2_072
.saturating_add(Weight::from_parts(664_313, 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: `75 + p * (69 ±0)`
// Measured: `78 + p * (69 ±0)`
// Estimated: `79 + p * (70 ±0)`
// Minimum execution time: 3_544_000 picoseconds.
Weight::from_parts(3_596_000, 0)
// Minimum execution time: 4_147_000 picoseconds.
Weight::from_parts(4_331_000, 0)
.saturating_add(Weight::from_parts(0, 79))
// Standard Error: 2_170
.saturating_add(Weight::from_parts(1_193_351, 0).saturating_mul(p.into()))
// Standard Error: 2_058
.saturating_add(Weight::from_parts(1_305_219, 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: 15_463_000 picoseconds.
Weight::from_parts(18_019_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: `System::Digest` (r:1 w:1)
/// Proof: `System::Digest` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// 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: `22`
// Estimated: `1518`
// Minimum execution time: 101_681_977_000 picoseconds.
Weight::from_parts(103_790_208_000, 0)
.saturating_add(Weight::from_parts(0, 1518))
.saturating_add(T::DbWeight::get().reads(2))
.saturating_add(T::DbWeight::get().writes(3))
}
}
2 changes: 2 additions & 0 deletions relay/paseo/src/weights/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ pub mod pallet_conviction_voting;
pub mod pallet_election_provider_multi_phase;
pub mod pallet_fast_unstake;
pub mod pallet_identity;
pub mod pallet_im_online;
pub mod pallet_indices;
pub mod pallet_message_queue;
pub mod pallet_multisig;
Expand All @@ -36,6 +37,7 @@ pub mod pallet_referenda;
pub mod pallet_scheduler;
pub mod pallet_session;
pub mod pallet_staking;
pub mod pallet_sudo;
pub mod pallet_timestamp;
pub mod pallet_treasury;
pub mod pallet_utility;
Expand Down
Loading

0 comments on commit 21e0d61

Please sign in to comment.