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 c326bf329a
commit 1fe20e9022
33 changed files with 630 additions and 619 deletions
@@ -17,12 +17,13 @@
//! Autogenerated weights for `pallet_proxy`
//!
//! 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("statemint-dev"), DB CACHE: 1024
// Executed Command:
// ./target/production/polkadot-collator
// ./target/production/polkadot-parachain
// benchmark
// pallet
// --chain=statemint-dev
// --execution=wasm
// --wasm-execution=compiled
@@ -32,7 +33,7 @@
// --repeat=20
// --json-file=./bench-statemint.json
// --header=./file_header.txt
// --output=./polkadot-parachains/statemint/src/weights
// --output=./parachains/runtimes/assets/statemint/src/weights
#![cfg_attr(rustfmt, rustfmt_skip)]
#![allow(unused_parens)]
@@ -46,42 +47,42 @@ pub struct WeightInfo<T>(PhantomData<T>);
impl<T: frame_system::Config> pallet_proxy::WeightInfo for WeightInfo<T> {
// Storage: Proxy Proxies (r:1 w:0)
fn proxy(p: u32, ) -> Weight {
(13_697_000 as Weight)
(13_319_000 as Weight)
// Standard Error: 1_000
.saturating_add((92_000 as Weight).saturating_mul(p as Weight))
.saturating_add((74_000 as Weight).saturating_mul(p as Weight))
.saturating_add(T::DbWeight::get().reads(1 as Weight))
}
// Storage: Proxy Proxies (r:1 w:0)
// Storage: Proxy Announcements (r:1 w:1)
// Storage: System Account (r:1 w:1)
fn proxy_announced(a: u32, p: u32, ) -> Weight {
(29_761_000 as Weight)
(29_744_000 as Weight)
// Standard Error: 1_000
.saturating_add((225_000 as Weight).saturating_mul(a as Weight))
.saturating_add((151_000 as Weight).saturating_mul(a as Weight))
// Standard Error: 1_000
.saturating_add((90_000 as Weight).saturating_mul(p as Weight))
.saturating_add((71_000 as Weight).saturating_mul(p as Weight))
.saturating_add(T::DbWeight::get().reads(3 as Weight))
.saturating_add(T::DbWeight::get().writes(2 as Weight))
}
// Storage: Proxy Announcements (r:1 w:1)
// Storage: System Account (r:1 w:1)
fn remove_announcement(a: u32, p: u32, ) -> Weight {
(20_197_000 as Weight)
(20_491_000 as Weight)
// Standard Error: 1_000
.saturating_add((235_000 as Weight).saturating_mul(a as Weight))
.saturating_add((167_000 as Weight).saturating_mul(a as Weight))
// Standard Error: 1_000
.saturating_add((13_000 as Weight).saturating_mul(p as Weight))
.saturating_add((20_000 as Weight).saturating_mul(p as Weight))
.saturating_add(T::DbWeight::get().reads(2 as Weight))
.saturating_add(T::DbWeight::get().writes(2 as Weight))
}
// Storage: Proxy Announcements (r:1 w:1)
// Storage: System Account (r:1 w:1)
fn reject_announcement(a: u32, p: u32, ) -> Weight {
(20_483_000 as Weight)
(20_322_000 as Weight)
// Standard Error: 1_000
.saturating_add((227_000 as Weight).saturating_mul(a as Weight))
.saturating_add((168_000 as Weight).saturating_mul(a as Weight))
// Standard Error: 1_000
.saturating_add((10_000 as Weight).saturating_mul(p as Weight))
.saturating_add((23_000 as Weight).saturating_mul(p as Weight))
.saturating_add(T::DbWeight::get().reads(2 as Weight))
.saturating_add(T::DbWeight::get().writes(2 as Weight))
}
@@ -89,52 +90,52 @@ impl<T: frame_system::Config> pallet_proxy::WeightInfo for WeightInfo<T> {
// Storage: Proxy Announcements (r:1 w:1)
// Storage: System Account (r:1 w:1)
fn announce(a: u32, p: u32, ) -> Weight {
(27_439_000 as Weight)
(27_196_000 as Weight)
// Standard Error: 2_000
.saturating_add((222_000 as Weight).saturating_mul(a as Weight))
.saturating_add((165_000 as Weight).saturating_mul(a as Weight))
// Standard Error: 2_000
.saturating_add((98_000 as Weight).saturating_mul(p as Weight))
.saturating_add((82_000 as Weight).saturating_mul(p as Weight))
.saturating_add(T::DbWeight::get().reads(3 as Weight))
.saturating_add(T::DbWeight::get().writes(2 as Weight))
}
// Storage: Proxy Proxies (r:1 w:1)
fn add_proxy(p: u32, ) -> Weight {
(22_789_000 as Weight)
// Standard Error: 2_000
.saturating_add((148_000 as Weight).saturating_mul(p as Weight))
(22_891_000 as Weight)
// Standard Error: 3_000
.saturating_add((112_000 as Weight).saturating_mul(p as Weight))
.saturating_add(T::DbWeight::get().reads(1 as Weight))
.saturating_add(T::DbWeight::get().writes(1 as Weight))
}
// Storage: Proxy Proxies (r:1 w:1)
fn remove_proxy(p: u32, ) -> Weight {
(19_009_000 as Weight)
// Standard Error: 2_000
.saturating_add((163_000 as Weight).saturating_mul(p as Weight))
(22_819_000 as Weight)
// Standard Error: 3_000
.saturating_add((123_000 as Weight).saturating_mul(p as Weight))
.saturating_add(T::DbWeight::get().reads(1 as Weight))
.saturating_add(T::DbWeight::get().writes(1 as Weight))
}
// Storage: Proxy Proxies (r:1 w:1)
fn remove_proxies(p: u32, ) -> Weight {
(18_810_000 as Weight)
(19_067_000 as Weight)
// Standard Error: 1_000
.saturating_add((102_000 as Weight).saturating_mul(p as Weight))
.saturating_add((75_000 as Weight).saturating_mul(p as Weight))
.saturating_add(T::DbWeight::get().reads(1 as Weight))
.saturating_add(T::DbWeight::get().writes(1 as Weight))
}
// Storage: unknown [0x3a65787472696e7369635f696e646578] (r:1 w:0)
// Storage: Proxy Proxies (r:1 w:1)
fn anonymous(p: u32, ) -> Weight {
(25_779_000 as Weight)
// Standard Error: 1_000
.saturating_add((33_000 as Weight).saturating_mul(p as Weight))
(25_335_000 as Weight)
// Standard Error: 2_000
.saturating_add((35_000 as Weight).saturating_mul(p as Weight))
.saturating_add(T::DbWeight::get().reads(2 as Weight))
.saturating_add(T::DbWeight::get().writes(1 as Weight))
}
// Storage: Proxy Proxies (r:1 w:1)
fn kill_anonymous(p: u32, ) -> Weight {
(19_961_000 as Weight)
(20_262_000 as Weight)
// Standard Error: 2_000
.saturating_add((90_000 as Weight).saturating_mul(p as Weight))
.saturating_add((70_000 as Weight).saturating_mul(p as Weight))
.saturating_add(T::DbWeight::get().reads(1 as Weight))
.saturating_add(T::DbWeight::get().writes(1 as Weight))
}