[WIP] Update weights in prep for v0.8.27 (#2097)

* Update weights for polkadot

* add Kusama weights

* add westend weights

* remove claims weight files

claims still uses in-line weights which is fine cause it is a polkadot specific pallet

Co-authored-by: Parity Benchmarking Bot <admin@parity.io>
Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com>
This commit is contained in:
Martin Pugh
2020-12-10 10:13:40 +01:00
committed by GitHub
parent 0e885a3a71
commit 418f38c335
44 changed files with 1293 additions and 931 deletions
@@ -13,16 +13,16 @@
// You should have received a copy of the GNU General Public License
// along with Polkadot. If not, see <http://www.gnu.org/licenses/>.
//! Weights for pallet_collective
//! Autogenerated weights for pallet_collective
//!
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 2.0.0
//! DATE: 2020-10-30, STEPS: [50, ], REPEAT: 20, LOW RANGE: [], HIGH RANGE: []
//! DATE: 2020-12-09, STEPS: [50, ], REPEAT: 20, LOW RANGE: [], HIGH RANGE: []
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("kusama-dev"), DB CACHE: 128
// Executed Command:
// ./target/release/polkadot
// target/release/polkadot
// benchmark
// --chain
// kusama-dev
// --chain=kusama-dev
// --steps=50
// --repeat=20
// --pallet=pallet_collective
@@ -30,8 +30,7 @@
// --execution=wasm
// --wasm-execution=compiled
// --heap-pages=4096
// --header
// ./file_header.txt
// --header=./file_header.txt
// --output=./runtime/kusama/src/weights/
@@ -46,73 +45,95 @@ pub struct WeightInfo<T>(PhantomData<T>);
impl<T: frame_system::Config> pallet_collective::WeightInfo for WeightInfo<T> {
fn set_members(m: u32, n: u32, p: u32, ) -> Weight {
(0 as Weight)
.saturating_add((20_744_000 as Weight).saturating_mul(m as Weight))
.saturating_add((71_000 as Weight).saturating_mul(n as Weight))
.saturating_add((27_804_000 as Weight).saturating_mul(p as Weight))
// Standard Error: 9_000
.saturating_add((20_739_000 as Weight).saturating_mul(m as Weight))
// Standard Error: 9_000
.saturating_add((50_000 as Weight).saturating_mul(n as Weight))
// Standard Error: 9_000
.saturating_add((28_199_000 as Weight).saturating_mul(p as Weight))
.saturating_add(T::DbWeight::get().reads(2 as Weight))
.saturating_add(T::DbWeight::get().reads((1 as Weight).saturating_mul(p as Weight)))
.saturating_add(T::DbWeight::get().writes(2 as Weight))
.saturating_add(T::DbWeight::get().writes((1 as Weight).saturating_mul(p as Weight)))
}
fn execute(b: u32, m: u32, ) -> Weight {
(29_512_000 as Weight)
.saturating_add((4_000 as Weight).saturating_mul(b as Weight))
.saturating_add((112_000 as Weight).saturating_mul(m as Weight))
(30_949_000 as Weight)
// Standard Error: 0
.saturating_add((3_000 as Weight).saturating_mul(b as Weight))
// Standard Error: 0
.saturating_add((111_000 as Weight).saturating_mul(m as Weight))
.saturating_add(T::DbWeight::get().reads(1 as Weight))
}
fn propose_execute(b: u32, m: u32, ) -> Weight {
(36_554_000 as Weight)
(37_904_000 as Weight)
// Standard Error: 0
.saturating_add((4_000 as Weight).saturating_mul(b as Weight))
// Standard Error: 0
.saturating_add((220_000 as Weight).saturating_mul(m as Weight))
.saturating_add(T::DbWeight::get().reads(2 as Weight))
}
fn propose_proposed(b: u32, m: u32, p: u32, ) -> Weight {
(60_010_000 as Weight)
(62_075_000 as Weight)
// Standard Error: 0
.saturating_add((5_000 as Weight).saturating_mul(b as Weight))
// Standard Error: 0
.saturating_add((115_000 as Weight).saturating_mul(m as Weight))
.saturating_add((565_000 as Weight).saturating_mul(p as Weight))
// Standard Error: 0
.saturating_add((588_000 as Weight).saturating_mul(p as Weight))
.saturating_add(T::DbWeight::get().reads(4 as Weight))
.saturating_add(T::DbWeight::get().writes(4 as Weight))
}
fn vote(m: u32, ) -> Weight {
(43_161_000 as Weight)
.saturating_add((277_000 as Weight).saturating_mul(m as Weight))
(43_811_000 as Weight)
// Standard Error: 0
.saturating_add((281_000 as Weight).saturating_mul(m as Weight))
.saturating_add(T::DbWeight::get().reads(2 as Weight))
.saturating_add(T::DbWeight::get().writes(1 as Weight))
}
fn close_early_disapproved(m: u32, p: u32, ) -> Weight {
(57_179_000 as Weight)
.saturating_add((215_000 as Weight).saturating_mul(m as Weight))
.saturating_add((527_000 as Weight).saturating_mul(p as Weight))
(59_086_000 as Weight)
// Standard Error: 1_000
.saturating_add((222_000 as Weight).saturating_mul(m as Weight))
// Standard Error: 1_000
.saturating_add((542_000 as Weight).saturating_mul(p as Weight))
.saturating_add(T::DbWeight::get().reads(3 as Weight))
.saturating_add(T::DbWeight::get().writes(3 as Weight))
}
fn close_early_approved(b: u32, m: u32, p: u32, ) -> Weight {
(82_532_000 as Weight)
(84_535_000 as Weight)
// Standard Error: 0
.saturating_add((3_000 as Weight).saturating_mul(b as Weight))
.saturating_add((220_000 as Weight).saturating_mul(m as Weight))
.saturating_add((532_000 as Weight).saturating_mul(p as Weight))
// Standard Error: 0
.saturating_add((221_000 as Weight).saturating_mul(m as Weight))
// Standard Error: 0
.saturating_add((557_000 as Weight).saturating_mul(p as Weight))
.saturating_add(T::DbWeight::get().reads(4 as Weight))
.saturating_add(T::DbWeight::get().writes(3 as Weight))
}
fn close_disapproved(m: u32, p: u32, ) -> Weight {
(63_597_000 as Weight)
.saturating_add((219_000 as Weight).saturating_mul(m as Weight))
.saturating_add((526_000 as Weight).saturating_mul(p as Weight))
(65_098_000 as Weight)
// Standard Error: 0
.saturating_add((221_000 as Weight).saturating_mul(m as Weight))
// Standard Error: 0
.saturating_add((552_000 as Weight).saturating_mul(p as Weight))
.saturating_add(T::DbWeight::get().reads(4 as Weight))
.saturating_add(T::DbWeight::get().writes(3 as Weight))
}
fn close_approved(b: u32, m: u32, p: u32, ) -> Weight {
(88_919_000 as Weight)
.saturating_add((3_000 as Weight).saturating_mul(b as Weight))
.saturating_add((220_000 as Weight).saturating_mul(m as Weight))
.saturating_add((532_000 as Weight).saturating_mul(p as Weight))
(90_884_000 as Weight)
// Standard Error: 0
.saturating_add((4_000 as Weight).saturating_mul(b as Weight))
// Standard Error: 0
.saturating_add((221_000 as Weight).saturating_mul(m as Weight))
// Standard Error: 0
.saturating_add((558_000 as Weight).saturating_mul(p as Weight))
.saturating_add(T::DbWeight::get().reads(5 as Weight))
.saturating_add(T::DbWeight::get().writes(3 as Weight))
}
fn disapprove_proposal(p: u32, ) -> Weight {
(33_674_000 as Weight)
.saturating_add((527_000 as Weight).saturating_mul(p as Weight))
(34_674_000 as Weight)
// Standard Error: 0
.saturating_add((552_000 as Weight).saturating_mul(p as Weight))
.saturating_add(T::DbWeight::get().reads(1 as Weight))
.saturating_add(T::DbWeight::get().writes(3 as Weight))
}