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

Commit 6476ab8

Browse files
coderobeshawntabriziggwpez
authored
update weights, attempt two (0.9.31) (#6189)
* westend: update weights * rococo: update weights * kusama: update weights * polkadot: update weights * add deps fix compilation Co-authored-by: Shawn Tabrizi <[email protected]> * bump substrate * Co #12558: Update `pallet-multisig` benches (#6188) * Typo Signed-off-by: Oliver Tale-Yazdi <[email protected]> * Add multisig weights Signed-off-by: Oliver Tale-Yazdi <[email protected]> * Update multisig weights Signed-off-by: Oliver Tale-Yazdi <[email protected]> * update lockfile for {"substrate"} Signed-off-by: Oliver Tale-Yazdi <[email protected]> Co-authored-by: parity-processbot <> Signed-off-by: Oliver Tale-Yazdi <[email protected]> Co-authored-by: Shawn Tabrizi <[email protected]> Co-authored-by: Oliver Tale-Yazdi <[email protected]>
1 parent e269a0a commit 6476ab8

File tree

167 files changed

+5256
-4143
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

167 files changed

+5256
-4143
lines changed

Cargo.lock

Lines changed: 190 additions & 180 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

runtime/kusama/constants/Cargo.toml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,14 @@ smallvec = "1.8.0"
1010
frame-support = { git = "https://github.com/paritytech/substrate", default-features = false , branch = "polkadot-v0.9.31" }
1111
primitives = { package = "polkadot-primitives", path = "../../../primitives", default-features = false }
1212
runtime-common = { package = "polkadot-runtime-common", path = "../../common", default-features = false }
13-
sp-runtime = { git = "https://github.com/paritytech/substrate", default-features = false , branch = "polkadot-v0.9.31" }
13+
sp-runtime = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.31", default-features = false }
14+
sp-weights = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.31", default-features = false }
15+
sp-core = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.31", default-features = false }
1416

1517
[features]
1618
default = ["std"]
1719
std = [
18-
"sp-runtime/std"
20+
"sp-core/std",
21+
"sp-runtime/std",
22+
"sp-weights/std"
1923
]

runtime/kusama/constants/src/weights/block_weights.rs

Lines changed: 27 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,26 @@
1-
// This file is part of Substrate.
1+
// Copyright 2017-2022 Parity Technologies (UK) Ltd.
2+
// This file is part of Polkadot.
23

3-
// Copyright (C) 2022 Parity Technologies (UK) Ltd.
4-
// SPDX-License-Identifier: Apache-2.0
4+
// Polkadot is free software: you can redistribute it and/or modify
5+
// it under the terms of the GNU General Public License as published by
6+
// the Free Software Foundation, either version 3 of the License, or
7+
// (at your option) any later version.
58

6-
// Licensed under the Apache License, Version 2.0 (the "License");
7-
// you may not use this file except in compliance with the License.
8-
// You may obtain a copy of the License at
9-
//
10-
// http://www.apache.org/licenses/LICENSE-2.0
11-
//
12-
// Unless required by applicable law or agreed to in writing, software
13-
// distributed under the License is distributed on an "AS IS" BASIS,
14-
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15-
// See the License for the specific language governing permissions and
16-
// limitations under the License.
9+
// Polkadot is distributed in the hope that it will be useful,
10+
// but WITHOUT ANY WARRANTY; without even the implied warranty of
11+
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12+
// GNU General Public License for more details.
1713

14+
// You should have received a copy of the GNU General Public License
15+
// along with Polkadot. If not, see <http://www.gnu.org/licenses/>.
1816
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
19-
//! DATE: 2022-08-19 (Y/M/D)
17+
//! DATE: 2022-10-25 (Y/M/D)
2018
//! HOSTNAME: `bm4`, CPU: `Intel(R) Core(TM) i7-7700K CPU @ 4.20GHz`
2119
//!
2220
//! SHORT-NAME: `block`, LONG-NAME: `BlockExecution`, RUNTIME: `Development`
2321
//! WARMUPS: `10`, REPEAT: `100`
2422
//! WEIGHT-PATH: `runtime/kusama/constants/src/weights/`
25-
//! WEIGHT-METRIC: `Average`, WEIGHT-MUL: `1`, WEIGHT-ADD: `0`
23+
//! WEIGHT-METRIC: `Average`, WEIGHT-MUL: `1.0`, WEIGHT-ADD: `0`
2624
2725
// Executed Command:
2826
// ./target/production/polkadot
@@ -34,32 +32,31 @@
3432
// --weight-path=runtime/kusama/constants/src/weights/
3533
// --warmup=10
3634
// --repeat=100
35+
// --header=./file_header.txt
3736

38-
use frame_support::{
39-
parameter_types,
40-
weights::{constants::WEIGHT_PER_NANOS, Weight},
41-
};
37+
use sp_core::parameter_types;
38+
use sp_weights::{constants::WEIGHT_PER_NANOS, Weight};
4239

4340
parameter_types! {
4441
/// Time to execute an empty block.
45-
/// Calculated by multiplying the *Average* with `1` and adding `0`.
42+
/// Calculated by multiplying the *Average* with `1.0` and adding `0`.
4643
///
4744
/// Stats nanoseconds:
48-
/// Min, Max: 6_094_385, 6_351_993
49-
/// Average: 6_192_341
50-
/// Median: 6_193_838
51-
/// Std-Dev: 63893.84
45+
/// Min, Max: 6_336_696, 6_629_376
46+
/// Average: 6_435_161
47+
/// Median: 6_432_853
48+
/// Std-Dev: 60191.34
5249
///
5350
/// Percentiles nanoseconds:
54-
/// 99th: 6_332_047
55-
/// 95th: 6_308_225
56-
/// 75th: 6_236_204
57-
pub const BlockExecutionWeight: Weight = WEIGHT_PER_NANOS.saturating_mul(6_192_341);
51+
/// 99th: 6_588_459
52+
/// 95th: 6_521_973
53+
/// 75th: 6_477_748
54+
pub const BlockExecutionWeight: Weight = WEIGHT_PER_NANOS.saturating_mul(6_435_161);
5855
}
5956

6057
#[cfg(test)]
6158
mod test_weights {
62-
use frame_support::weights::constants;
59+
use sp_weights::constants;
6360

6461
/// Checks that the weight exists and is sane.
6562
// NOTE: If this test fails but you are sure that the generated values are fine,

runtime/kusama/constants/src/weights/extrinsic_weights.rs

Lines changed: 30 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,26 @@
1-
// This file is part of Substrate.
1+
// Copyright 2017-2022 Parity Technologies (UK) Ltd.
2+
// This file is part of Polkadot.
23

3-
// Copyright (C) 2022 Parity Technologies (UK) Ltd.
4-
// SPDX-License-Identifier: Apache-2.0
4+
// Polkadot is free software: you can redistribute it and/or modify
5+
// it under the terms of the GNU General Public License as published by
6+
// the Free Software Foundation, either version 3 of the License, or
7+
// (at your option) any later version.
58

6-
// Licensed under the Apache License, Version 2.0 (the "License");
7-
// you may not use this file except in compliance with the License.
8-
// You may obtain a copy of the License at
9-
//
10-
// http://www.apache.org/licenses/LICENSE-2.0
11-
//
12-
// Unless required by applicable law or agreed to in writing, software
13-
// distributed under the License is distributed on an "AS IS" BASIS,
14-
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15-
// See the License for the specific language governing permissions and
16-
// limitations under the License.
9+
// Polkadot is distributed in the hope that it will be useful,
10+
// but WITHOUT ANY WARRANTY; without even the implied warranty of
11+
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12+
// GNU General Public License for more details.
1713

14+
// You should have received a copy of the GNU General Public License
15+
// along with Polkadot. If not, see <http://www.gnu.org/licenses/>.
1816
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
19-
//! DATE: 2022-04-20 (Y/M/D)
17+
//! DATE: 2022-10-25 (Y/M/D)
18+
//! HOSTNAME: `bm4`, CPU: `Intel(R) Core(TM) i7-7700K CPU @ 4.20GHz`
2019
//!
2120
//! SHORT-NAME: `extrinsic`, LONG-NAME: `ExtrinsicBase`, RUNTIME: `Development`
2221
//! WARMUPS: `10`, REPEAT: `100`
2322
//! WEIGHT-PATH: `runtime/kusama/constants/src/weights/`
24-
//! WEIGHT-METRIC: `Average`, WEIGHT-MUL: `1`, WEIGHT-ADD: `0`
23+
//! WEIGHT-METRIC: `Average`, WEIGHT-MUL: `1.0`, WEIGHT-ADD: `0`
2524
2625
// Executed Command:
2726
// ./target/production/polkadot
@@ -33,32 +32,31 @@
3332
// --weight-path=runtime/kusama/constants/src/weights/
3433
// --warmup=10
3534
// --repeat=100
35+
// --header=./file_header.txt
3636

37-
use frame_support::{
38-
parameter_types,
39-
weights::{constants::WEIGHT_PER_NANOS, Weight},
40-
};
37+
use sp_core::parameter_types;
38+
use sp_weights::{constants::WEIGHT_PER_NANOS, Weight};
4139

4240
parameter_types! {
4341
/// Time to execute a NO-OP extrinsic, for example `System::remark`.
44-
/// Calculated by multiplying the *Average* with `1` and adding `0`.
42+
/// Calculated by multiplying the *Average* with `1.0` and adding `0`.
4543
///
46-
/// Stats [NS]:
47-
/// Min, Max: 85_946, 88_408
48-
/// Average: 86_309
49-
/// Median: 86_213
50-
/// Std-Dev: 345.03
44+
/// Stats nanoseconds:
45+
/// Min, Max: 95_139, 96_661
46+
/// Average: 95_578
47+
/// Median: 95_507
48+
/// Std-Dev: 279.89
5149
///
52-
/// Percentiles [NS]:
53-
/// 99th: 87_527
54-
/// 95th: 86_901
55-
/// 75th: 86_308
56-
pub const ExtrinsicBaseWeight: Weight = WEIGHT_PER_NANOS.saturating_mul(86_309);
50+
/// Percentiles nanoseconds:
51+
/// 99th: 96_641
52+
/// 95th: 96_239
53+
/// 75th: 95_630
54+
pub const ExtrinsicBaseWeight: Weight = WEIGHT_PER_NANOS.saturating_mul(95_578);
5755
}
5856

5957
#[cfg(test)]
6058
mod test_weights {
61-
use frame_support::weights::constants;
59+
use sp_weights::constants;
6260

6361
/// Checks that the weight exists and is sane.
6462
// NOTE: If this test fails but you are sure that the generated values are fine,

runtime/kusama/src/weights/frame_benchmarking_baseline.rs

Lines changed: 27 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
//! Autogenerated weights for `frame_benchmarking::baseline`
1717
//!
1818
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
19-
//! DATE: 2022-09-08, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
19+
//! DATE: 2022-10-24, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
2020
//! HOSTNAME: `bm4`, CPU: `Intel(R) Core(TM) i7-7700K CPU @ 4.20GHz`
2121
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("kusama-dev"), DB CACHE: 1024
2222
@@ -38,54 +38,62 @@
3838
#![allow(unused_parens)]
3939
#![allow(unused_imports)]
4040

41-
use frame_support::{traits::Get, weights::{Weight}};
41+
use frame_support::{traits::Get, weights::Weight};
4242
use sp_std::marker::PhantomData;
4343

4444
/// Weight functions for `frame_benchmarking::baseline`.
4545
pub struct WeightInfo<T>(PhantomData<T>);
4646
impl<T: frame_system::Config> frame_benchmarking::baseline::WeightInfo for WeightInfo<T> {
4747
/// The range of component `i` is `[0, 1000000]`.
4848
fn addition(_i: u32, ) -> Weight {
49-
Weight::from_ref_time(114_000 as u64)
49+
// Minimum execution time: 86 nanoseconds.
50+
Weight::from_ref_time(102_920 as u64)
5051
}
5152
/// The range of component `i` is `[0, 1000000]`.
5253
fn subtraction(_i: u32, ) -> Weight {
53-
Weight::from_ref_time(125_000 as u64)
54+
// Minimum execution time: 93 nanoseconds.
55+
Weight::from_ref_time(110_716 as u64)
5456
}
5557
/// The range of component `i` is `[0, 1000000]`.
5658
fn multiplication(_i: u32, ) -> Weight {
57-
Weight::from_ref_time(116_000 as u64)
59+
// Minimum execution time: 97 nanoseconds.
60+
Weight::from_ref_time(121_613 as u64)
5861
}
5962
/// The range of component `i` is `[0, 1000000]`.
6063
fn division(_i: u32, ) -> Weight {
61-
Weight::from_ref_time(115_000 as u64)
64+
// Minimum execution time: 85 nanoseconds.
65+
Weight::from_ref_time(108_770 as u64)
6266
}
6367
/// The range of component `i` is `[0, 100]`.
6468
fn hashing(i: u32, ) -> Weight {
65-
Weight::from_ref_time(19_441_790_000 as u64)
66-
// Standard Error: 126_000
67-
.saturating_add(Weight::from_ref_time(115_000 as u64).saturating_mul(i as u64))
69+
// Minimum execution time: 19_096_918 nanoseconds.
70+
Weight::from_ref_time(19_341_958_891 as u64)
71+
// Standard Error: 136_508
72+
.saturating_add(Weight::from_ref_time(347_531 as u64).saturating_mul(i as u64))
6873
}
69-
/// The range of component `i` is `[1, 100]`.
74+
/// The range of component `i` is `[0, 100]`.
7075
fn sr25519_verification(i: u32, ) -> Weight {
71-
Weight::from_ref_time(0 as u64)
72-
// Standard Error: 35_000
73-
.saturating_add(Weight::from_ref_time(47_909_000 as u64).saturating_mul(i as u64))
76+
// Minimum execution time: 111 nanoseconds.
77+
Weight::from_ref_time(118_000 as u64)
78+
// Standard Error: 16_773
79+
.saturating_add(Weight::from_ref_time(47_757_384 as u64).saturating_mul(i as u64))
7480
}
7581
// Storage: Skipped Metadata (r:0 w:0)
7682
/// The range of component `i` is `[0, 1000]`.
7783
fn storage_read(i: u32, ) -> Weight {
78-
Weight::from_ref_time(0 as u64)
79-
// Standard Error: 7_000
80-
.saturating_add(Weight::from_ref_time(1_998_000 as u64).saturating_mul(i as u64))
84+
// Minimum execution time: 94 nanoseconds.
85+
Weight::from_ref_time(97_000 as u64)
86+
// Standard Error: 3_564
87+
.saturating_add(Weight::from_ref_time(1_832_717 as u64).saturating_mul(i as u64))
8188
.saturating_add(T::DbWeight::get().reads((1 as u64).saturating_mul(i as u64)))
8289
}
8390
// Storage: Skipped Metadata (r:0 w:0)
8491
/// The range of component `i` is `[0, 1000]`.
8592
fn storage_write(i: u32, ) -> Weight {
86-
Weight::from_ref_time(0 as u64)
87-
// Standard Error: 0
88-
.saturating_add(Weight::from_ref_time(338_000 as u64).saturating_mul(i as u64))
93+
// Minimum execution time: 111 nanoseconds.
94+
Weight::from_ref_time(119_000 as u64)
95+
// Standard Error: 812
96+
.saturating_add(Weight::from_ref_time(320_377 as u64).saturating_mul(i as u64))
8997
.saturating_add(T::DbWeight::get().writes((1 as u64).saturating_mul(i as u64)))
9098
}
9199
}

runtime/kusama/src/weights/frame_election_provider_support.rs

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
//! Autogenerated weights for `frame_election_provider_support`
1717
//!
1818
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
19-
//! DATE: 2022-09-08, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
19+
//! DATE: 2022-10-24, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
2020
//! HOSTNAME: `bm4`, CPU: `Intel(R) Core(TM) i7-7700K CPU @ 4.20GHz`
2121
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("kusama-dev"), DB CACHE: 1024
2222
@@ -38,7 +38,7 @@
3838
#![allow(unused_parens)]
3939
#![allow(unused_imports)]
4040

41-
use frame_support::{traits::Get, weights::{Weight}};
41+
use frame_support::{traits::Get, weights::Weight};
4242
use sp_std::marker::PhantomData;
4343

4444
/// Weight functions for `frame_election_provider_support`.
@@ -48,20 +48,22 @@ impl<T: frame_system::Config> frame_election_provider_support::WeightInfo for We
4848
/// The range of component `t` is `[500, 1000]`.
4949
/// The range of component `d` is `[5, 16]`.
5050
fn phragmen(v: u32, _t: u32, d: u32, ) -> Weight {
51-
Weight::from_ref_time(0 as u64)
52-
// Standard Error: 56_000
53-
.saturating_add(Weight::from_ref_time(13_944_000 as u64).saturating_mul(v as u64))
54-
// Standard Error: 4_876_000
55-
.saturating_add(Weight::from_ref_time(2_223_649_000 as u64).saturating_mul(d as u64))
51+
// Minimum execution time: 5_442_855 nanoseconds.
52+
Weight::from_ref_time(5_493_581_000 as u64)
53+
// Standard Error: 137_072
54+
.saturating_add(Weight::from_ref_time(5_644_474 as u64).saturating_mul(v as u64))
55+
// Standard Error: 14_013_799
56+
.saturating_add(Weight::from_ref_time(1_560_631_740 as u64).saturating_mul(d as u64))
5657
}
5758
/// The range of component `v` is `[1000, 2000]`.
5859
/// The range of component `t` is `[500, 1000]`.
5960
/// The range of component `d` is `[5, 16]`.
6061
fn phragmms(v: u32, _t: u32, d: u32, ) -> Weight {
61-
Weight::from_ref_time(0 as u64)
62-
// Standard Error: 79_000
63-
.saturating_add(Weight::from_ref_time(14_480_000 as u64).saturating_mul(v as u64))
64-
// Standard Error: 6_844_000
65-
.saturating_add(Weight::from_ref_time(2_525_332_000 as u64).saturating_mul(d as u64))
62+
// Minimum execution time: 4_312_432 nanoseconds.
63+
Weight::from_ref_time(4_352_242_000 as u64)
64+
// Standard Error: 147_368
65+
.saturating_add(Weight::from_ref_time(5_532_148 as u64).saturating_mul(v as u64))
66+
// Standard Error: 15_066_445
67+
.saturating_add(Weight::from_ref_time(1_788_360_934 as u64).saturating_mul(d as u64))
6668
}
6769
}

0 commit comments

Comments
 (0)