Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.

update weights #5361

Merged
merged 4 commits into from
Apr 22, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 15 additions & 18 deletions runtime/kusama/constants/src/weights/block_weights.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
// limitations under the License.

//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
//! DATE: 2022-03-24 (Y/M/D)
//! DATE: 2022-04-20 (Y/M/D)
//!
//! SHORT-NAME: `block`, LONG-NAME: `BlockExecution`, RUNTIME: `Development`
//! WARMUPS: `10`, REPEAT: `100`
Expand All @@ -25,17 +25,14 @@

// Executed Command:
// ./target/production/polkadot
// benchmark-overhead
// --chain
// kusama-dev
// benchmark
// overhead
// --chain=kusama-dev
// --execution=wasm
// --wasm-execution=compiled
// --weight-path
// runtime/kusama/constants/src/weights/
// --warmup
// 10
// --repeat
// 100
// --weight-path=runtime/kusama/constants/src/weights/
// --warmup=10
// --repeat=100

use frame_support::{
parameter_types,
Expand All @@ -47,16 +44,16 @@ parameter_types! {
/// Calculated by multiplying the *Average* with `1` and adding `0`.
///
/// Stats [NS]:
/// Min, Max: 4_118_220, 4_438_558
/// Average: 4_168_174
/// Median: 4_158_502
/// Std-Dev: 47195.34
/// Min, Max: 5_697_206, 6_458_339
/// Average: 5_777_442
/// Median: 5_765_384
/// Std-Dev: 95827.8
///
/// Percentiles [NS]:
/// 99th: 4_279_128
/// 95th: 4_249_714
/// 75th: 4_180_317
pub const BlockExecutionWeight: Weight = 4_168_174 * WEIGHT_PER_NANOS;
/// 99th: 6_235_658
/// 95th: 5_876_325
/// 75th: 5_792_991
pub const BlockExecutionWeight: Weight = 5_777_442 * WEIGHT_PER_NANOS;
}

#[cfg(test)]
Expand Down
33 changes: 15 additions & 18 deletions runtime/kusama/constants/src/weights/extrinsic_weights.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
// limitations under the License.

//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
//! DATE: 2022-03-24 (Y/M/D)
//! DATE: 2022-04-20 (Y/M/D)
//!
//! SHORT-NAME: `extrinsic`, LONG-NAME: `ExtrinsicBase`, RUNTIME: `Development`
//! WARMUPS: `10`, REPEAT: `100`
Expand All @@ -25,17 +25,14 @@

// Executed Command:
// ./target/production/polkadot
// benchmark-overhead
// --chain
// kusama-dev
// benchmark
// overhead
// --chain=kusama-dev
// --execution=wasm
// --wasm-execution=compiled
// --weight-path
// runtime/kusama/constants/src/weights/
// --warmup
// 10
// --repeat
// 100
// --weight-path=runtime/kusama/constants/src/weights/
// --warmup=10
// --repeat=100

use frame_support::{
parameter_types,
Expand All @@ -47,16 +44,16 @@ parameter_types! {
/// Calculated by multiplying the *Average* with `1` and adding `0`.
///
/// Stats [NS]:
/// Min, Max: 80_176, 81_558
/// Average: 80_350
/// Median: 80_335
/// Std-Dev: 136.56
/// Min, Max: 85_946, 88_408
/// Average: 86_309
/// Median: 86_213
/// Std-Dev: 345.03
///
/// Percentiles [NS]:
/// 99th: 80_492
/// 95th: 80_459
/// 75th: 80_377
pub const ExtrinsicBaseWeight: Weight = 80_350 * WEIGHT_PER_NANOS;
/// 99th: 87_527
/// 95th: 86_901
/// 75th: 86_308
pub const ExtrinsicBaseWeight: Weight = 86_309 * WEIGHT_PER_NANOS;
}

#[cfg(test)]
Expand Down
25 changes: 14 additions & 11 deletions runtime/kusama/src/weights/frame_benchmarking_baseline.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,13 @@
//! Autogenerated weights for `frame_benchmarking::baseline`
//!
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
//! DATE: 2022-03-15, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! DATE: 2022-04-20, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("kusama-dev"), DB CACHE: 1024

// Executed Command:
// ./target/production/polkadot
// benchmark
// pallet
// --chain=kusama-dev
// --steps=50
// --repeat=20
Expand All @@ -44,37 +45,39 @@ use sp_std::marker::PhantomData;
pub struct WeightInfo<T>(PhantomData<T>);
impl<T: frame_system::Config> frame_benchmarking::baseline::WeightInfo for WeightInfo<T> {
fn addition(_i: u32, ) -> Weight {
(114_000 as Weight)
(116_000 as Weight)
}
fn subtraction(_i: u32, ) -> Weight {
(108_000 as Weight)
}
fn multiplication(_i: u32, ) -> Weight {
(113_000 as Weight)
(108_000 as Weight)
}
fn division(_i: u32, ) -> Weight {
(111_000 as Weight)
(110_000 as Weight)
}
fn hashing(_i: u32, ) -> Weight {
(19_085_634_000 as Weight)
fn hashing(i: u32, ) -> Weight {
(19_463_794_000 as Weight)
// Standard Error: 114_000
.saturating_add((283_000 as Weight).saturating_mul(i as Weight))
}
fn sr25519_verification(i: u32, ) -> Weight {
(0 as Weight)
// Standard Error: 14_000
.saturating_add((47_267_000 as Weight).saturating_mul(i as Weight))
// Standard Error: 17_000
.saturating_add((47_425_000 as Weight).saturating_mul(i as Weight))
}
// Storage: Skipped Metadata (r:0 w:0)
fn storage_read(i: u32, ) -> Weight {
(0 as Weight)
// Standard Error: 4_000
.saturating_add((1_988_000 as Weight).saturating_mul(i as Weight))
// Standard Error: 3_000
.saturating_add((1_991_000 as Weight).saturating_mul(i as Weight))
.saturating_add(T::DbWeight::get().reads((1 as Weight).saturating_mul(i as Weight)))
}
// Storage: Skipped Metadata (r:0 w:0)
fn storage_write(i: u32, ) -> Weight {
(0 as Weight)
// Standard Error: 0
.saturating_add((320_000 as Weight).saturating_mul(i as Weight))
.saturating_add((323_000 as Weight).saturating_mul(i as Weight))
.saturating_add(T::DbWeight::get().writes((1 as Weight).saturating_mul(i as Weight)))
}
}
18 changes: 9 additions & 9 deletions runtime/kusama/src/weights/frame_election_provider_support.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@
//! Autogenerated weights for `frame_election_provider_support`
//!
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
//! DATE: 2022-04-15, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! DATE: 2022-04-20, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("kusama-dev"), DB CACHE: 1024

// Executed Command:
// target/production/polkadot
// ./target/production/polkadot
// benchmark
// pallet
// --chain=kusama-dev
Expand All @@ -32,7 +32,7 @@
// --wasm-execution=compiled
// --heap-pages=4096
// --header=./file_header.txt
// --output=./runtime/kusama/src/weights/
// --output=./runtime/kusama/src/weights/frame_election_provider_support.rs

#![cfg_attr(rustfmt, rustfmt_skip)]
#![allow(unused_parens)]
Expand All @@ -47,15 +47,15 @@ impl<T: frame_system::Config> frame_election_provider_support::WeightInfo for We
fn phragmen(v: u32, _t: u32, d: u32, ) -> Weight {
(0 as Weight)
// Standard Error: 51_000
.saturating_add((18_247_000 as Weight).saturating_mul(v as Weight))
// Standard Error: 7_075_000
.saturating_add((2_979_831_000 as Weight).saturating_mul(d as Weight))
.saturating_add((19_067_000 as Weight).saturating_mul(v as Weight))
// Standard Error: 7_112_000
.saturating_add((3_057_203_000 as Weight).saturating_mul(d as Weight))
}
fn phragmms(v: u32, _t: u32, d: u32, ) -> Weight {
(0 as Weight)
// Standard Error: 49_000
.saturating_add((16_045_000 as Weight).saturating_mul(v as Weight))
// Standard Error: 6_844_000
.saturating_add((2_712_807_000 as Weight).saturating_mul(d as Weight))
.saturating_add((16_494_000 as Weight).saturating_mul(v as Weight))
// Standard Error: 6_861_000
.saturating_add((2_761_930_000 as Weight).saturating_mul(d as Weight))
}
}
19 changes: 11 additions & 8 deletions runtime/kusama/src/weights/frame_system.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,13 @@
//! Autogenerated weights for `frame_system`
//!
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
//! DATE: 2022-03-16, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! DATE: 2022-04-20, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("kusama-dev"), DB CACHE: 1024

// Executed Command:
// target/production/polkadot
// ./target/production/polkadot
// benchmark
// pallet
// --chain=kusama-dev
// --steps=50
// --repeat=20
Expand All @@ -31,7 +32,7 @@
// --wasm-execution=compiled
// --heap-pages=4096
// --header=./file_header.txt
// --output=./runtime/kusama/src/weights/
// --output=./runtime/kusama/src/weights/frame_system.rs

#![cfg_attr(rustfmt, rustfmt_skip)]
#![allow(unused_parens)]
Expand All @@ -43,8 +44,10 @@ 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 {
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 {
(0 as Weight)
Expand All @@ -54,29 +57,29 @@ impl<T: frame_system::Config> frame_system::WeightInfo for WeightInfo<T> {
// Storage: System Digest (r:1 w:1)
// Storage: unknown [0x3a686561707061676573] (r:0 w:1)
fn set_heap_pages() -> Weight {
(2_293_000 as Weight)
(2_444_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: 0
.saturating_add((329_000 as Weight).saturating_mul(i as Weight))
.saturating_add((345_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 {
(0 as Weight)
// Standard Error: 0
.saturating_add((238_000 as Weight).saturating_mul(i as Weight))
.saturating_add((246_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 {
(0 as Weight)
// Standard Error: 0
.saturating_add((593_000 as Weight).saturating_mul(p as Weight))
.saturating_add((582_000 as Weight).saturating_mul(p as Weight))
.saturating_add(T::DbWeight::get().writes((1 as Weight).saturating_mul(p as Weight)))
}
}
9 changes: 5 additions & 4 deletions runtime/kusama/src/weights/pallet_bags_list.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,13 @@
//! Autogenerated weights for `pallet_bags_list`
//!
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
//! DATE: 2022-03-15, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! DATE: 2022-04-20, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("kusama-dev"), DB CACHE: 1024

// Executed Command:
// ./target/production/polkadot
// benchmark
// pallet
// --chain=kusama-dev
// --steps=50
// --repeat=20
Expand All @@ -48,7 +49,7 @@ impl<T: frame_system::Config> pallet_bags_list::WeightInfo for WeightInfo<T> {
// Storage: BagsList ListNodes (r:4 w:4)
// Storage: BagsList ListBags (r:1 w:1)
fn rebag_non_terminal() -> Weight {
(38_665_000 as Weight)
(40_709_000 as Weight)
.saturating_add(T::DbWeight::get().reads(7 as Weight))
.saturating_add(T::DbWeight::get().writes(5 as Weight))
}
Expand All @@ -57,7 +58,7 @@ impl<T: frame_system::Config> pallet_bags_list::WeightInfo for WeightInfo<T> {
// Storage: BagsList ListNodes (r:3 w:3)
// Storage: BagsList ListBags (r:2 w:2)
fn rebag_terminal() -> Weight {
(38_388_000 as Weight)
(39_744_000 as Weight)
.saturating_add(T::DbWeight::get().reads(7 as Weight))
.saturating_add(T::DbWeight::get().writes(5 as Weight))
}
Expand All @@ -67,7 +68,7 @@ impl<T: frame_system::Config> pallet_bags_list::WeightInfo for WeightInfo<T> {
// Storage: BagsList CounterForListNodes (r:1 w:1)
// Storage: BagsList ListBags (r:1 w:1)
fn put_in_front_of() -> Weight {
(43_827_000 as Weight)
(46_075_000 as Weight)
.saturating_add(T::DbWeight::get().reads(10 as Weight))
.saturating_add(T::DbWeight::get().writes(6 as Weight))
}
Expand Down
Loading