transfer ownership of uniques looks cheaper. (#1302)

batch all now looking a bit expensive compared to batch. no big changes.
This commit is contained in:
Squirrel
2022-05-27 11:49:55 +01:00
committed by GitHub
parent 37db8aec2d
commit 586ba3b26b
33 changed files with 630 additions and 619 deletions
@@ -17,12 +17,13 @@
//! Autogenerated weights for `pallet_utility`
//!
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
//! DATE: 2022-03-28, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! DATE: 2022-05-25, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("statemine-dev"), DB CACHE: 1024
// Executed Command:
// ./target/production/polkadot-collator
// ./target/production/polkadot-parachain
// benchmark
// pallet
// --chain=statemine-dev
// --execution=wasm
// --wasm-execution=compiled
@@ -32,7 +33,7 @@
// --repeat=20
// --json-file=./bench-statemine.json
// --header=./file_header.txt
// --output=./polkadot-parachains/statemine/src/weights
// --output=./parachains/runtimes/assets/statemine/src/weights
#![cfg_attr(rustfmt, rustfmt_skip)]
#![allow(unused_parens)]
@@ -45,26 +46,24 @@ use sp_std::marker::PhantomData;
pub struct WeightInfo<T>(PhantomData<T>);
impl<T: frame_system::Config> pallet_utility::WeightInfo for WeightInfo<T> {
fn batch(c: u32, ) -> Weight {
(15_856_000 as Weight)
// Standard Error: 2_000
.saturating_add((3_602_000 as Weight).saturating_mul(c as Weight))
(13_031_000 as Weight)
// Standard Error: 1_000
.saturating_add((2_829_000 as Weight).saturating_mul(c as Weight))
}
fn as_derivative() -> Weight {
(2_394_000 as Weight)
(1_740_000 as Weight)
}
fn batch_all(c: u32, ) -> Weight {
(18_190_000 as Weight)
(17_846_000 as Weight)
// Standard Error: 2_000
.saturating_add((3_901_000 as Weight).saturating_mul(c as Weight))
.saturating_add((3_074_000 as Weight).saturating_mul(c as Weight))
}
fn dispatch_as() -> Weight {
(8_310_000 as Weight)
(8_741_000 as Weight)
}
fn force_batch(c: u32, ) -> Weight {
(13_470_000 as Weight)
(11_543_000 as Weight)
// Standard Error: 1_000
.saturating_add((4_229_000 as Weight).saturating_mul(c as Weight))
.saturating_add(T::DbWeight::get().reads(1 as Weight))
.saturating_add(T::DbWeight::get().writes(1 as Weight))
.saturating_add((2_832_000 as Weight).saturating_mul(c as Weight))
}
}