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

Commit

Permalink
Revert back to bare metal runners for weights generation (#6762)
Browse files Browse the repository at this point in the history
* Revert back to bare metal runners for weights generation

* new old weights

---------

Co-authored-by: alvicsam <alvicsam@gmail.com>
  • Loading branch information
mateo-moon and alvicsam authored Feb 23, 2023
1 parent 48f41dd commit e7127f9
Show file tree
Hide file tree
Showing 132 changed files with 15,142 additions and 7,183 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-24 (Y/M/D)
//! HOSTNAME: `runner-b3zmxxc-project-163-concurrent-0`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz`
//! DATE: 2023-02-23 (Y/M/D)
//! HOSTNAME: `bm5`, CPU: `Intel(R) Core(TM) i7-7700K CPU @ 4.20GHz`
//!
//! 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: 11_101_648, 11_377_824
/// Average: 11_158_208
/// Median: 11_134_153
/// Std-Dev: 62437.99
/// Min, Max: 9_063_597, 9_605_760
/// Average: 9_225_024
/// Median: 9_197_375
/// Std-Dev: 83325.89
///
/// Percentiles nanoseconds:
/// 99th: 11_368_494
/// 95th: 11_302_388
/// 75th: 11_151_929
/// 99th: 9_437_618
/// 95th: 9_402_155
/// 75th: 9_250_717
pub const BlockExecutionWeight: Weight =
Weight::from_ref_time(WEIGHT_REF_TIME_PER_NANOS.saturating_mul(11_158_208));
Weight::from_ref_time(WEIGHT_REF_TIME_PER_NANOS.saturating_mul(9_225_024));
}

#[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-24 (Y/M/D)
//! HOSTNAME: `runner-b3zmxxc-project-163-concurrent-0`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz`
//! DATE: 2023-02-23 (Y/M/D)
//! HOSTNAME: `bm5`, CPU: `Intel(R) Core(TM) i7-7700K CPU @ 4.20GHz`
//!
//! 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: 109_996, 111_665
/// Average: 110_575
/// Median: 110_568
/// Std-Dev: 245.27
/// Min, Max: 99_280, 101_585
/// Average: 99_912
/// Median: 99_844
/// Std-Dev: 361.48
///
/// Percentiles nanoseconds:
/// 99th: 111_123
/// 95th: 110_957
/// 75th: 110_703
/// 99th: 101_439
/// 95th: 100_633
/// 75th: 99_966
pub const ExtrinsicBaseWeight: Weight =
Weight::from_ref_time(WEIGHT_REF_TIME_PER_NANOS.saturating_mul(110_575));
Weight::from_ref_time(WEIGHT_REF_TIME_PER_NANOS.saturating_mul(99_912));
}

#[cfg(test)]
Expand Down
78 changes: 42 additions & 36 deletions runtime/kusama/src/weights/frame_benchmarking_baseline.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,9 @@
//! Autogenerated weights for `frame_benchmarking::baseline`
//!
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
//! 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`
//! DATE: 2023-02-22, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! WORST CASE MAP SIZE: `1000000`
//! HOSTNAME: `bm5`, CPU: `Intel(R) Core(TM) i7-7700K CPU @ 4.20GHz`
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("kusama-dev"), DB CACHE: 1024
// Executed Command:
Expand Down Expand Up @@ -46,52 +47,57 @@ 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: 116 nanoseconds.
Weight::from_ref_time(148_551)
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `0`
// Minimum execution time: 115 nanoseconds.
Weight::from_ref_time(156_869)
.saturating_add(Weight::from_proof_size(0))
}
/// The range of component `i` is `[0, 1000000]`.
fn subtraction(_i: u32, ) -> Weight {
// Minimum execution time: 116 nanoseconds.
Weight::from_ref_time(146_564)
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `0`
// Minimum execution time: 126 nanoseconds.
Weight::from_ref_time(163_413)
.saturating_add(Weight::from_proof_size(0))
}
/// The range of component `i` is `[0, 1000000]`.
fn multiplication(_i: u32, ) -> Weight {
// Minimum execution time: 113 nanoseconds.
Weight::from_ref_time(147_394)
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `0`
// Minimum execution time: 125 nanoseconds.
Weight::from_ref_time(165_700)
.saturating_add(Weight::from_proof_size(0))
}
/// The range of component `i` is `[0, 1000000]`.
fn division(_i: u32, ) -> Weight {
// Minimum execution time: 115 nanoseconds.
Weight::from_ref_time(147_033)
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `0`
// Minimum execution time: 114 nanoseconds.
Weight::from_ref_time(160_757)
.saturating_add(Weight::from_proof_size(0))
}
/// The range of component `i` is `[0, 100]`.
fn hashing(_i: u32, ) -> Weight {
// Minimum execution time: 23_983_154 nanoseconds.
Weight::from_ref_time(24_070_029_392)
fn hashing() -> Weight {
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `0`
// Minimum execution time: 20_199_657 nanoseconds.
Weight::from_ref_time(20_348_638_000)
.saturating_add(Weight::from_proof_size(0))
}
/// The range of component `i` is `[0, 100]`.
fn sr25519_verification(i: u32, ) -> Weight {
// 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: 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: 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())))
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `0`
// Minimum execution time: 146 nanoseconds.
Weight::from_ref_time(181_000)
.saturating_add(Weight::from_proof_size(0))
// Standard Error: 18_837
.saturating_add(Weight::from_ref_time(47_289_133).saturating_mul(i.into()))
}
}
37 changes: 23 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,9 @@
//! 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-23, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! HOSTNAME: `runner-b3zmxxc-project-163-concurrent-0`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz`
//! DATE: 2023-02-22, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! WORST CASE MAP SIZE: `1000000`
//! HOSTNAME: `bm5`, CPU: `Intel(R) Core(TM) i7-7700K CPU @ 4.20GHz`
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("kusama-dev"), DB CACHE: 1024
// Executed Command:
Expand Down Expand Up @@ -48,22 +49,30 @@ 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_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()))
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `0`
// Minimum execution time: 5_806_565 nanoseconds.
Weight::from_ref_time(5_866_482_000)
.saturating_add(Weight::from_proof_size(0))
// Standard Error: 138_296
.saturating_add(Weight::from_ref_time(5_701_761).saturating_mul(v.into()))
// Standard Error: 14_138_940
.saturating_add(Weight::from_ref_time(1_548_790_171).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: 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()))
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `0`
// Minimum execution time: 4_595_992 nanoseconds.
Weight::from_ref_time(4_626_336_000)
.saturating_add(Weight::from_proof_size(0))
// Standard Error: 149_717
.saturating_add(Weight::from_ref_time(5_673_749).saturating_mul(v.into()))
// Standard Error: 15_306_572
.saturating_add(Weight::from_ref_time(1_806_945_095).saturating_mul(d.into()))
}
}
88 changes: 60 additions & 28 deletions runtime/kusama/src/weights/frame_system.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,9 @@
//! Autogenerated weights for `frame_system`
//!
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
//! 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`
//! DATE: 2023-02-22, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! WORST CASE MAP SIZE: `1000000`
//! HOSTNAME: `bm5`, CPU: `Intel(R) Core(TM) i7-7700K CPU @ 4.20GHz`
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("kusama-dev"), DB CACHE: 1024
// Executed Command:
Expand Down Expand Up @@ -46,51 +47,82 @@ 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_479 nanoseconds.
Weight::from_ref_time(3_232_796)
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `0`
// Minimum execution time: 1_670 nanoseconds.
Weight::from_ref_time(1_704_000)
.saturating_add(Weight::from_proof_size(0))
// Standard Error: 0
.saturating_add(Weight::from_ref_time(539).saturating_mul(b.into()))
.saturating_add(Weight::from_ref_time(415).saturating_mul(b.into()))
}
/// The range of component `b` is `[0, 3932160]`.
fn remark_with_event(b: u32, ) -> Weight {
// 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()))
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `0`
// Minimum execution time: 6_327 nanoseconds.
Weight::from_ref_time(6_508_000)
.saturating_add(Weight::from_proof_size(0))
// Standard Error: 0
.saturating_add(Weight::from_ref_time(1_777).saturating_mul(b.into()))
}
// Storage: System Digest (r:1 w:1)
// Storage: unknown [0x3a686561707061676573] (r:0 w:1)
/// Storage: System Digest (r:1 w:1)
/// Proof Skipped: System Digest (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: unknown `0x3a686561707061676573` (r:0 w:1)
/// Proof Skipped: unknown `0x3a686561707061676573` (r:0 w:1)
fn set_heap_pages() -> Weight {
// Minimum execution time: 8_452 nanoseconds.
Weight::from_ref_time(8_855_000)
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `495`
// Minimum execution time: 3_621 nanoseconds.
Weight::from_ref_time(3_764_000)
.saturating_add(Weight::from_proof_size(495))
.saturating_add(T::DbWeight::get().reads(1))
.saturating_add(T::DbWeight::get().writes(2))
}
// Storage: Skipped Metadata (r:0 w:0)
/// Storage: Skipped Metadata (r:0 w:0)
/// Proof Skipped: Skipped Metadata (max_values: None, max_size: None, mode: Measured)
/// The range of component `i` is `[0, 1000]`.
fn set_storage(i: u32, ) -> Weight {
// 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()))
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `0`
// Minimum execution time: 1_680 nanoseconds.
Weight::from_ref_time(1_735_000)
.saturating_add(Weight::from_proof_size(0))
// Standard Error: 1_838
.saturating_add(Weight::from_ref_time(587_349).saturating_mul(i.into()))
.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(i.into())))
}
// Storage: Skipped Metadata (r:0 w:0)
/// Storage: Skipped Metadata (r:0 w:0)
/// Proof Skipped: Skipped Metadata (max_values: None, max_size: None, mode: Measured)
/// The range of component `i` is `[0, 1000]`.
fn kill_storage(i: u32, ) -> Weight {
// 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()))
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `0`
// Minimum execution time: 1_693 nanoseconds.
Weight::from_ref_time(1_742_000)
.saturating_add(Weight::from_proof_size(0))
// Standard Error: 858
.saturating_add(Weight::from_ref_time(446_600).saturating_mul(i.into()))
.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(i.into())))
}
// Storage: Skipped Metadata (r:0 w:0)
/// Storage: Skipped Metadata (r:0 w:0)
/// Proof Skipped: Skipped Metadata (max_values: None, max_size: None, mode: Measured)
/// The range of component `p` is `[0, 1000]`.
fn kill_prefix(p: u32, ) -> Weight {
// 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()))
// Proof Size summary in bytes:
// Measured: `120 + p * (69 ±0)`
// Estimated: `121 + p * (70 ±0)`
// Minimum execution time: 3_458 nanoseconds.
Weight::from_ref_time(3_578_000)
.saturating_add(Weight::from_proof_size(121))
// Standard Error: 1_106
.saturating_add(Weight::from_ref_time(990_233).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_proof_size(70).saturating_mul(p.into()))
}
}
Loading

0 comments on commit e7127f9

Please sign in to comment.