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

Commit

Permalink
New runners for weights and new weights (#6508)
Browse files Browse the repository at this point in the history
* [DO NOT MERGE] test new vm runner for weights 2

* add image

* fix merge conflict

* apply weights

* new weights

Co-authored-by: parity-processbot <>
  • Loading branch information
alvicsam authored Jan 24, 2023
1 parent e50e057 commit b81ae47
Show file tree
Hide file tree
Showing 166 changed files with 4,585 additions and 4,550 deletions.
20 changes: 10 additions & 10 deletions runtime/kusama/constants/src/weights/block_weights.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
// You should have received a copy of the GNU General Public License
// along with Polkadot. If not, see <http://www.gnu.org/licenses/>.
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
//! DATE: 2023-01-11 (Y/M/D)
//! HOSTNAME: `bm5`, CPU: `Intel(R) Core(TM) i7-7700K CPU @ 4.20GHz`
//! DATE: 2023-01-24 (Y/M/D)
//! HOSTNAME: `runner-b3zmxxc-project-163-concurrent-0`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz`
//!
//! SHORT-NAME: `block`, LONG-NAME: `BlockExecution`, RUNTIME: `Development`
//! WARMUPS: `10`, REPEAT: `100`
Expand All @@ -42,17 +42,17 @@ parameter_types! {
/// Calculated by multiplying the *Average* with `1.0` and adding `0`.
///
/// Stats nanoseconds:
/// Min, Max: 8_872_656, 9_367_064
/// Average: 9_022_244
/// Median: 9_011_014
/// Std-Dev: 77136.86
/// Min, Max: 11_101_648, 11_377_824
/// Average: 11_158_208
/// Median: 11_134_153
/// Std-Dev: 62437.99
///
/// Percentiles nanoseconds:
/// 99th: 9_180_045
/// 95th: 9_153_403
/// 75th: 9_060_940
/// 99th: 11_368_494
/// 95th: 11_302_388
/// 75th: 11_151_929
pub const BlockExecutionWeight: Weight =
Weight::from_ref_time(WEIGHT_REF_TIME_PER_NANOS.saturating_mul(9_022_244));
Weight::from_ref_time(WEIGHT_REF_TIME_PER_NANOS.saturating_mul(11_158_208));
}

#[cfg(test)]
Expand Down
20 changes: 10 additions & 10 deletions runtime/kusama/constants/src/weights/extrinsic_weights.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
// You should have received a copy of the GNU General Public License
// along with Polkadot. If not, see <http://www.gnu.org/licenses/>.
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
//! DATE: 2023-01-11 (Y/M/D)
//! HOSTNAME: `bm5`, CPU: `Intel(R) Core(TM) i7-7700K CPU @ 4.20GHz`
//! DATE: 2023-01-24 (Y/M/D)
//! HOSTNAME: `runner-b3zmxxc-project-163-concurrent-0`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz`
//!
//! SHORT-NAME: `extrinsic`, LONG-NAME: `ExtrinsicBase`, RUNTIME: `Development`
//! WARMUPS: `10`, REPEAT: `100`
Expand All @@ -42,17 +42,17 @@ parameter_types! {
/// Calculated by multiplying the *Average* with `1.0` and adding `0`.
///
/// Stats nanoseconds:
/// Min, Max: 94_526, 96_991
/// Average: 95_108
/// Median: 95_054
/// Std-Dev: 353.12
/// Min, Max: 109_996, 111_665
/// Average: 110_575
/// Median: 110_568
/// Std-Dev: 245.27
///
/// Percentiles nanoseconds:
/// 99th: 96_446
/// 95th: 95_798
/// 75th: 95_212
/// 99th: 111_123
/// 95th: 110_957
/// 75th: 110_703
pub const ExtrinsicBaseWeight: Weight =
Weight::from_ref_time(WEIGHT_REF_TIME_PER_NANOS.saturating_mul(95_108));
Weight::from_ref_time(WEIGHT_REF_TIME_PER_NANOS.saturating_mul(110_575));
}

#[cfg(test)]
Expand Down
52 changes: 25 additions & 27 deletions runtime/kusama/src/weights/frame_benchmarking_baseline.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
//! Autogenerated weights for `frame_benchmarking::baseline`
//!
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
//! DATE: 2023-01-11, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! HOSTNAME: `bm5`, CPU: `Intel(R) Core(TM) i7-7700K CPU @ 4.20GHz`
//! DATE: 2023-01-23, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! HOSTNAME: `runner-b3zmxxc-project-163-concurrent-0`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz`
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("kusama-dev"), DB CACHE: 1024
// Executed Command:
Expand Down Expand Up @@ -46,54 +46,52 @@ pub struct WeightInfo<T>(PhantomData<T>);
impl<T: frame_system::Config> frame_benchmarking::baseline::WeightInfo for WeightInfo<T> {
/// The range of component `i` is `[0, 1000000]`.
fn addition(_i: u32, ) -> Weight {
// Minimum execution time: 99 nanoseconds.
Weight::from_ref_time(132_705)
// Minimum execution time: 116 nanoseconds.
Weight::from_ref_time(148_551)
}
/// The range of component `i` is `[0, 1000000]`.
fn subtraction(_i: u32, ) -> Weight {
// Minimum execution time: 102 nanoseconds.
Weight::from_ref_time(136_587)
// Minimum execution time: 116 nanoseconds.
Weight::from_ref_time(146_564)
}
/// The range of component `i` is `[0, 1000000]`.
fn multiplication(_i: u32, ) -> Weight {
// Minimum execution time: 117 nanoseconds.
Weight::from_ref_time(144_223)
// Minimum execution time: 113 nanoseconds.
Weight::from_ref_time(147_394)
}
/// The range of component `i` is `[0, 1000000]`.
fn division(_i: u32, ) -> Weight {
// Minimum execution time: 101 nanoseconds.
Weight::from_ref_time(128_859)
// Minimum execution time: 115 nanoseconds.
Weight::from_ref_time(147_033)
}
/// The range of component `i` is `[0, 100]`.
fn hashing(i: u32, ) -> Weight {
// Minimum execution time: 20_008_796 nanoseconds.
Weight::from_ref_time(20_231_830_334)
// Standard Error: 222_061
.saturating_add(Weight::from_ref_time(414_640).saturating_mul(i.into()))
fn hashing(_i: u32, ) -> Weight {
// Minimum execution time: 23_983_154 nanoseconds.
Weight::from_ref_time(24_070_029_392)
}
/// The range of component `i` is `[0, 100]`.
fn sr25519_verification(i: u32, ) -> Weight {
// Minimum execution time: 142 nanoseconds.
Weight::from_ref_time(156_000)
// Standard Error: 19_463
.saturating_add(Weight::from_ref_time(47_363_986).saturating_mul(i.into()))
// Minimum execution time: 130 nanoseconds.
Weight::from_ref_time(1_606_463)
// Standard Error: 5_589
.saturating_add(Weight::from_ref_time(55_538_842).saturating_mul(i.into()))
}
// Storage: Skipped Metadata (r:0 w:0)
/// The range of component `i` is `[0, 1000]`.
fn storage_read(i: u32, ) -> Weight {
// Minimum execution time: 124 nanoseconds.
Weight::from_ref_time(133_000)
// Standard Error: 3_395
.saturating_add(Weight::from_ref_time(1_924_310).saturating_mul(i.into()))
// Minimum execution time: 118 nanoseconds.
Weight::from_ref_time(136_000)
// Standard Error: 2_899
.saturating_add(Weight::from_ref_time(2_363_633).saturating_mul(i.into()))
.saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(i.into())))
}
// Storage: Skipped Metadata (r:0 w:0)
/// The range of component `i` is `[0, 1000]`.
fn storage_write(i: u32, ) -> Weight {
// Minimum execution time: 108 nanoseconds.
Weight::from_ref_time(115_000)
// Standard Error: 831
.saturating_add(Weight::from_ref_time(334_597).saturating_mul(i.into()))
// Minimum execution time: 119 nanoseconds.
Weight::from_ref_time(141_000)
// Standard Error: 923
.saturating_add(Weight::from_ref_time(386_949).saturating_mul(i.into()))
.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(i.into())))
}
}
28 changes: 14 additions & 14 deletions runtime/kusama/src/weights/frame_election_provider_support.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
//! Autogenerated weights for `frame_election_provider_support`
//!
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
//! DATE: 2023-01-11, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! HOSTNAME: `bm5`, CPU: `Intel(R) Core(TM) i7-7700K CPU @ 4.20GHz`
//! DATE: 2023-01-23, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! HOSTNAME: `runner-b3zmxxc-project-163-concurrent-0`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz`
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("kusama-dev"), DB CACHE: 1024
// Executed Command:
Expand Down Expand Up @@ -48,22 +48,22 @@ impl<T: frame_system::Config> frame_election_provider_support::WeightInfo for We
/// The range of component `t` is `[500, 1000]`.
/// The range of component `d` is `[5, 16]`.
fn phragmen(v: u32, _t: u32, d: u32, ) -> Weight {
// Minimum execution time: 5_575_729 nanoseconds.
Weight::from_ref_time(5_635_611_000)
// Standard Error: 137_628
.saturating_add(Weight::from_ref_time(5_613_642).saturating_mul(v.into()))
// Standard Error: 14_070_666
.saturating_add(Weight::from_ref_time(1_547_260_145).saturating_mul(d.into()))
// Minimum execution time: 5_668_576 nanoseconds.
Weight::from_ref_time(5_712_755_000)
// Standard Error: 133_923
.saturating_add(Weight::from_ref_time(5_516_772).saturating_mul(v.into()))
// Standard Error: 13_691_904
.saturating_add(Weight::from_ref_time(1_483_939_563).saturating_mul(d.into()))
}
/// The range of component `v` is `[1000, 2000]`.
/// The range of component `t` is `[500, 1000]`.
/// The range of component `d` is `[5, 16]`.
fn phragmms(v: u32, _t: u32, d: u32, ) -> Weight {
// Minimum execution time: 4_382_327 nanoseconds.
Weight::from_ref_time(4_421_862_000)
// Standard Error: 146_518
.saturating_add(Weight::from_ref_time(5_556_127).saturating_mul(v.into()))
// Standard Error: 14_979_514
.saturating_add(Weight::from_ref_time(1_762_291_888).saturating_mul(d.into()))
// Minimum execution time: 3_905_717 nanoseconds.
Weight::from_ref_time(3_950_012_000)
// Standard Error: 121_037
.saturating_add(Weight::from_ref_time(4_593_528).saturating_mul(v.into()))
// Standard Error: 12_374_443
.saturating_add(Weight::from_ref_time(1_416_607_758).saturating_mul(d.into()))
}
}
46 changes: 23 additions & 23 deletions runtime/kusama/src/weights/frame_system.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
//! Autogenerated weights for `frame_system`
//!
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
//! DATE: 2023-01-11, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! HOSTNAME: `bm5`, CPU: `Intel(R) Core(TM) i7-7700K CPU @ 4.20GHz`
//! DATE: 2023-01-23, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! HOSTNAME: `runner-b3zmxxc-project-163-concurrent-0`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz`
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("kusama-dev"), DB CACHE: 1024
// Executed Command:
Expand Down Expand Up @@ -46,51 +46,51 @@ 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 {
// Minimum execution time: 3_354 nanoseconds.
Weight::from_ref_time(3_423_000)
// Minimum execution time: 3_479 nanoseconds.
Weight::from_ref_time(3_232_796)
// Standard Error: 0
.saturating_add(Weight::from_ref_time(412).saturating_mul(b.into()))
.saturating_add(Weight::from_ref_time(539).saturating_mul(b.into()))
}
/// The range of component `b` is `[0, 3932160]`.
fn remark_with_event(b: u32, ) -> Weight {
// Minimum execution time: 12_040 nanoseconds.
Weight::from_ref_time(12_231_000)
// Standard Error: 0
.saturating_add(Weight::from_ref_time(1_769).saturating_mul(b.into()))
// Minimum execution time: 13_120 nanoseconds.
Weight::from_ref_time(176_550_818)
// Standard Error: 5
.saturating_add(Weight::from_ref_time(1_915).saturating_mul(b.into()))
}
// Storage: System Digest (r:1 w:1)
// Storage: unknown [0x3a686561707061676573] (r:0 w:1)
fn set_heap_pages() -> Weight {
// Minimum execution time: 8_135 nanoseconds.
Weight::from_ref_time(8_306_000)
// Minimum execution time: 8_452 nanoseconds.
Weight::from_ref_time(8_855_000)
.saturating_add(T::DbWeight::get().reads(1))
.saturating_add(T::DbWeight::get().writes(2))
}
// Storage: Skipped Metadata (r:0 w:0)
/// The range of component `i` is `[0, 1000]`.
fn set_storage(i: u32, ) -> Weight {
// Minimum execution time: 3_380 nanoseconds.
Weight::from_ref_time(3_431_000)
// Standard Error: 2_049
.saturating_add(Weight::from_ref_time(621_323).saturating_mul(i.into()))
// Minimum execution time: 3_536 nanoseconds.
Weight::from_ref_time(3_673_000)
// Standard Error: 2_059
.saturating_add(Weight::from_ref_time(678_301).saturating_mul(i.into()))
.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(i.into())))
}
// Storage: Skipped Metadata (r:0 w:0)
/// The range of component `i` is `[0, 1000]`.
fn kill_storage(i: u32, ) -> Weight {
// Minimum execution time: 3_352 nanoseconds.
Weight::from_ref_time(3_440_000)
// Standard Error: 1_087
.saturating_add(Weight::from_ref_time(452_199).saturating_mul(i.into()))
// Minimum execution time: 3_390 nanoseconds.
Weight::from_ref_time(3_504_000)
// Standard Error: 890
.saturating_add(Weight::from_ref_time(509_654).saturating_mul(i.into()))
.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(i.into())))
}
// Storage: Skipped Metadata (r:0 w:0)
/// The range of component `p` is `[0, 1000]`.
fn kill_prefix(p: u32, ) -> Weight {
// Minimum execution time: 4_688 nanoseconds.
Weight::from_ref_time(4_799_000)
// Standard Error: 1_287
.saturating_add(Weight::from_ref_time(973_968).saturating_mul(p.into()))
// Minimum execution time: 5_185 nanoseconds.
Weight::from_ref_time(5_253_000)
// Standard Error: 1_170
.saturating_add(Weight::from_ref_time(1_152_577).saturating_mul(p.into()))
.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(p.into())))
}
}
16 changes: 8 additions & 8 deletions runtime/kusama/src/weights/pallet_bags_list.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
//! Autogenerated weights for `pallet_bags_list`
//!
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
//! DATE: 2023-01-11, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! HOSTNAME: `bm5`, CPU: `Intel(R) Core(TM) i7-7700K CPU @ 4.20GHz`
//! DATE: 2023-01-23, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! HOSTNAME: `runner-b3zmxxc-project-163-concurrent-0`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz`
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("kusama-dev"), DB CACHE: 1024
// Executed Command:
Expand Down Expand Up @@ -49,8 +49,8 @@ impl<T: frame_system::Config> pallet_bags_list::WeightInfo for WeightInfo<T> {
// Storage: VoterList ListNodes (r:4 w:4)
// Storage: VoterList ListBags (r:1 w:1)
fn rebag_non_terminal() -> Weight {
// Minimum execution time: 61_115 nanoseconds.
Weight::from_ref_time(61_942_000)
// Minimum execution time: 64_102 nanoseconds.
Weight::from_ref_time(66_882_000)
.saturating_add(T::DbWeight::get().reads(7))
.saturating_add(T::DbWeight::get().writes(5))
}
Expand All @@ -59,8 +59,8 @@ impl<T: frame_system::Config> pallet_bags_list::WeightInfo for WeightInfo<T> {
// Storage: VoterList ListNodes (r:3 w:3)
// Storage: VoterList ListBags (r:2 w:2)
fn rebag_terminal() -> Weight {
// Minimum execution time: 61_773 nanoseconds.
Weight::from_ref_time(62_467_000)
// Minimum execution time: 63_969 nanoseconds.
Weight::from_ref_time(65_863_000)
.saturating_add(T::DbWeight::get().reads(7))
.saturating_add(T::DbWeight::get().writes(5))
}
Expand All @@ -70,8 +70,8 @@ impl<T: frame_system::Config> pallet_bags_list::WeightInfo for WeightInfo<T> {
// Storage: VoterList CounterForListNodes (r:1 w:1)
// Storage: VoterList ListBags (r:1 w:1)
fn put_in_front_of() -> Weight {
// Minimum execution time: 60_847 nanoseconds.
Weight::from_ref_time(61_824_000)
// Minimum execution time: 63_120 nanoseconds.
Weight::from_ref_time(64_737_000)
.saturating_add(T::DbWeight::get().reads(10))
.saturating_add(T::DbWeight::get().writes(6))
}
Expand Down
Loading

0 comments on commit b81ae47

Please sign in to comment.