mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-26 22:47:56 +00:00
New Weights for All Pallets (#12325)
* new weights for everything * fix * fmt * new batch * fmt * new batch * Update run_all_benchmarks.sh * add headers * update weights * Update lib.rs * block and extrinsic weight
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS,
|
||||
@@ -18,24 +18,24 @@
|
||||
//! Autogenerated weights for pallet_assets
|
||||
//!
|
||||
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
|
||||
//! DATE: 2022-10-20, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
||||
//! HOSTNAME: `bm3`, CPU: `Intel(R) Core(TM) i7-7700K CPU @ 4.20GHz`
|
||||
//! DATE: 2022-11-07, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
||||
//! HOSTNAME: `bm2`, CPU: `Intel(R) Core(TM) i7-7700K CPU @ 4.20GHz`
|
||||
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024
|
||||
|
||||
// Executed Command:
|
||||
// /home/benchbot/cargo_target_dir/production/substrate
|
||||
// ./target/production/substrate
|
||||
// benchmark
|
||||
// pallet
|
||||
// --chain=dev
|
||||
// --steps=50
|
||||
// --repeat=20
|
||||
// --pallet=pallet_assets
|
||||
// --extrinsic=*
|
||||
// --execution=wasm
|
||||
// --wasm-execution=compiled
|
||||
// --heap-pages=4096
|
||||
// --json-file=/var/lib/gitlab-runner/builds/zyw4fam_/0/parity/mirrors/substrate/.git/.artifacts/bench.json
|
||||
// --pallet=pallet_assets
|
||||
// --chain=dev
|
||||
// --output=./frame/assets/src/weights.rs
|
||||
// --header=./HEADER-APACHE2
|
||||
// --template=./.maintain/frame-weight-template.hbs
|
||||
|
||||
#![cfg_attr(rustfmt, rustfmt_skip)]
|
||||
@@ -77,15 +77,15 @@ pub struct SubstrateWeight<T>(PhantomData<T>);
|
||||
impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Storage: Assets Asset (r:1 w:1)
|
||||
fn create() -> Weight {
|
||||
// Minimum execution time: 32_200 nanoseconds.
|
||||
Weight::from_ref_time(32_739_000 as u64)
|
||||
// Minimum execution time: 33_241 nanoseconds.
|
||||
Weight::from_ref_time(33_873_000 as u64)
|
||||
.saturating_add(T::DbWeight::get().reads(1 as u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1 as u64))
|
||||
}
|
||||
// Storage: Assets Asset (r:1 w:1)
|
||||
fn force_create() -> Weight {
|
||||
// Minimum execution time: 19_192 nanoseconds.
|
||||
Weight::from_ref_time(19_615_000 as u64)
|
||||
// Minimum execution time: 19_883 nanoseconds.
|
||||
Weight::from_ref_time(20_651_000 as u64)
|
||||
.saturating_add(T::DbWeight::get().reads(1 as u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1 as u64))
|
||||
}
|
||||
@@ -98,12 +98,12 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
/// The range of component `s` is `[0, 5000]`.
|
||||
/// The range of component `a` is `[0, 500]`.
|
||||
fn destroy(c: u32, s: u32, a: u32, ) -> Weight {
|
||||
// Minimum execution time: 75_299_531 nanoseconds.
|
||||
Weight::from_ref_time(75_567_795_000 as u64)
|
||||
// Standard Error: 126_181
|
||||
.saturating_add(Weight::from_ref_time(8_378_363 as u64).saturating_mul(c as u64))
|
||||
// Standard Error: 126_181
|
||||
.saturating_add(Weight::from_ref_time(10_950_076 as u64).saturating_mul(s as u64))
|
||||
// Minimum execution time: 76_222_544 nanoseconds.
|
||||
Weight::from_ref_time(76_864_587_000 as u64)
|
||||
// Standard Error: 127_086
|
||||
.saturating_add(Weight::from_ref_time(8_645_143 as u64).saturating_mul(c as u64))
|
||||
// Standard Error: 127_086
|
||||
.saturating_add(Weight::from_ref_time(11_281_301 as u64).saturating_mul(s as u64))
|
||||
.saturating_add(T::DbWeight::get().reads(5 as u64))
|
||||
.saturating_add(T::DbWeight::get().reads((2 as u64).saturating_mul(c as u64)))
|
||||
.saturating_add(T::DbWeight::get().reads((2 as u64).saturating_mul(s as u64)))
|
||||
@@ -116,16 +116,16 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Storage: Assets Asset (r:1 w:1)
|
||||
// Storage: Assets Account (r:1 w:1)
|
||||
fn mint() -> Weight {
|
||||
// Minimum execution time: 35_066 nanoseconds.
|
||||
Weight::from_ref_time(36_217_000 as u64)
|
||||
// Minimum execution time: 36_782 nanoseconds.
|
||||
Weight::from_ref_time(37_340_000 as u64)
|
||||
.saturating_add(T::DbWeight::get().reads(2 as u64))
|
||||
.saturating_add(T::DbWeight::get().writes(2 as u64))
|
||||
}
|
||||
// Storage: Assets Asset (r:1 w:1)
|
||||
// Storage: Assets Account (r:1 w:1)
|
||||
fn burn() -> Weight {
|
||||
// Minimum execution time: 44_915 nanoseconds.
|
||||
Weight::from_ref_time(45_807_000 as u64)
|
||||
// Minimum execution time: 44_425 nanoseconds.
|
||||
Weight::from_ref_time(45_485_000 as u64)
|
||||
.saturating_add(T::DbWeight::get().reads(2 as u64))
|
||||
.saturating_add(T::DbWeight::get().writes(2 as u64))
|
||||
}
|
||||
@@ -133,8 +133,8 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Storage: Assets Account (r:2 w:2)
|
||||
// Storage: System Account (r:1 w:1)
|
||||
fn transfer() -> Weight {
|
||||
// Minimum execution time: 57_245 nanoseconds.
|
||||
Weight::from_ref_time(58_179_000 as u64)
|
||||
// Minimum execution time: 58_294 nanoseconds.
|
||||
Weight::from_ref_time(59_447_000 as u64)
|
||||
.saturating_add(T::DbWeight::get().reads(4 as u64))
|
||||
.saturating_add(T::DbWeight::get().writes(4 as u64))
|
||||
}
|
||||
@@ -142,8 +142,8 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Storage: Assets Account (r:2 w:2)
|
||||
// Storage: System Account (r:1 w:1)
|
||||
fn transfer_keep_alive() -> Weight {
|
||||
// Minimum execution time: 47_028 nanoseconds.
|
||||
Weight::from_ref_time(47_571_000 as u64)
|
||||
// Minimum execution time: 46_704 nanoseconds.
|
||||
Weight::from_ref_time(47_521_000 as u64)
|
||||
.saturating_add(T::DbWeight::get().reads(4 as u64))
|
||||
.saturating_add(T::DbWeight::get().writes(4 as u64))
|
||||
}
|
||||
@@ -151,53 +151,53 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Storage: Assets Account (r:2 w:2)
|
||||
// Storage: System Account (r:1 w:1)
|
||||
fn force_transfer() -> Weight {
|
||||
// Minimum execution time: 57_069 nanoseconds.
|
||||
Weight::from_ref_time(58_245_000 as u64)
|
||||
// Minimum execution time: 57_647 nanoseconds.
|
||||
Weight::from_ref_time(58_417_000 as u64)
|
||||
.saturating_add(T::DbWeight::get().reads(4 as u64))
|
||||
.saturating_add(T::DbWeight::get().writes(4 as u64))
|
||||
}
|
||||
// Storage: Assets Asset (r:1 w:0)
|
||||
// Storage: Assets Account (r:1 w:1)
|
||||
fn freeze() -> Weight {
|
||||
// Minimum execution time: 26_823 nanoseconds.
|
||||
Weight::from_ref_time(27_689_000 as u64)
|
||||
// Minimum execution time: 26_827 nanoseconds.
|
||||
Weight::from_ref_time(27_373_000 as u64)
|
||||
.saturating_add(T::DbWeight::get().reads(2 as u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1 as u64))
|
||||
}
|
||||
// Storage: Assets Asset (r:1 w:0)
|
||||
// Storage: Assets Account (r:1 w:1)
|
||||
fn thaw() -> Weight {
|
||||
// Minimum execution time: 26_984 nanoseconds.
|
||||
Weight::from_ref_time(27_591_000 as u64)
|
||||
// Minimum execution time: 26_291 nanoseconds.
|
||||
Weight::from_ref_time(26_854_000 as u64)
|
||||
.saturating_add(T::DbWeight::get().reads(2 as u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1 as u64))
|
||||
}
|
||||
// Storage: Assets Asset (r:1 w:1)
|
||||
fn freeze_asset() -> Weight {
|
||||
// Minimum execution time: 23_803 nanoseconds.
|
||||
Weight::from_ref_time(24_269_000 as u64)
|
||||
// Minimum execution time: 22_694 nanoseconds.
|
||||
Weight::from_ref_time(23_613_000 as u64)
|
||||
.saturating_add(T::DbWeight::get().reads(1 as u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1 as u64))
|
||||
}
|
||||
// Storage: Assets Asset (r:1 w:1)
|
||||
fn thaw_asset() -> Weight {
|
||||
// Minimum execution time: 22_977 nanoseconds.
|
||||
Weight::from_ref_time(23_527_000 as u64)
|
||||
// Minimum execution time: 22_572 nanoseconds.
|
||||
Weight::from_ref_time(24_121_000 as u64)
|
||||
.saturating_add(T::DbWeight::get().reads(1 as u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1 as u64))
|
||||
}
|
||||
// Storage: Assets Asset (r:1 w:1)
|
||||
// Storage: Assets Metadata (r:1 w:0)
|
||||
fn transfer_ownership() -> Weight {
|
||||
// Minimum execution time: 23_815 nanoseconds.
|
||||
Weight::from_ref_time(24_597_000 as u64)
|
||||
// Minimum execution time: 23_949 nanoseconds.
|
||||
Weight::from_ref_time(24_347_000 as u64)
|
||||
.saturating_add(T::DbWeight::get().reads(2 as u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1 as u64))
|
||||
}
|
||||
// Storage: Assets Asset (r:1 w:1)
|
||||
fn set_team() -> Weight {
|
||||
// Minimum execution time: 22_691 nanoseconds.
|
||||
Weight::from_ref_time(23_173_000 as u64)
|
||||
// Minimum execution time: 23_102 nanoseconds.
|
||||
Weight::from_ref_time(23_518_000 as u64)
|
||||
.saturating_add(T::DbWeight::get().reads(1 as u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1 as u64))
|
||||
}
|
||||
@@ -205,17 +205,19 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Storage: Assets Metadata (r:1 w:1)
|
||||
/// The range of component `n` is `[0, 50]`.
|
||||
/// The range of component `s` is `[0, 50]`.
|
||||
fn set_metadata(_n: u32, _s: u32, ) -> Weight {
|
||||
// Minimum execution time: 40_675 nanoseconds.
|
||||
Weight::from_ref_time(42_869_113 as u64)
|
||||
fn set_metadata(_n: u32, s: u32, ) -> Weight {
|
||||
// Minimum execution time: 41_032 nanoseconds.
|
||||
Weight::from_ref_time(42_845_624 as u64)
|
||||
// Standard Error: 1_274
|
||||
.saturating_add(Weight::from_ref_time(1_875 as u64).saturating_mul(s as u64))
|
||||
.saturating_add(T::DbWeight::get().reads(2 as u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1 as u64))
|
||||
}
|
||||
// Storage: Assets Asset (r:1 w:0)
|
||||
// Storage: Assets Metadata (r:1 w:1)
|
||||
fn clear_metadata() -> Weight {
|
||||
// Minimum execution time: 42_361 nanoseconds.
|
||||
Weight::from_ref_time(42_912_000 as u64)
|
||||
// Minimum execution time: 42_570 nanoseconds.
|
||||
Weight::from_ref_time(42_957_000 as u64)
|
||||
.saturating_add(T::DbWeight::get().reads(2 as u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1 as u64))
|
||||
}
|
||||
@@ -224,35 +226,35 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
/// The range of component `n` is `[0, 50]`.
|
||||
/// The range of component `s` is `[0, 50]`.
|
||||
fn force_set_metadata(n: u32, s: u32, ) -> Weight {
|
||||
// Minimum execution time: 22_998 nanoseconds.
|
||||
Weight::from_ref_time(23_844_675 as u64)
|
||||
// Standard Error: 506
|
||||
.saturating_add(Weight::from_ref_time(2_874 as u64).saturating_mul(n as u64))
|
||||
// Standard Error: 506
|
||||
.saturating_add(Weight::from_ref_time(3_817 as u64).saturating_mul(s as u64))
|
||||
// Minimum execution time: 22_768 nanoseconds.
|
||||
Weight::from_ref_time(23_868_816 as u64)
|
||||
// Standard Error: 612
|
||||
.saturating_add(Weight::from_ref_time(1_602 as u64).saturating_mul(n as u64))
|
||||
// Standard Error: 612
|
||||
.saturating_add(Weight::from_ref_time(2_097 as u64).saturating_mul(s as u64))
|
||||
.saturating_add(T::DbWeight::get().reads(2 as u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1 as u64))
|
||||
}
|
||||
// Storage: Assets Asset (r:1 w:0)
|
||||
// Storage: Assets Metadata (r:1 w:1)
|
||||
fn force_clear_metadata() -> Weight {
|
||||
// Minimum execution time: 42_305 nanoseconds.
|
||||
Weight::from_ref_time(42_678_000 as u64)
|
||||
// Minimum execution time: 41_863 nanoseconds.
|
||||
Weight::from_ref_time(42_643_000 as u64)
|
||||
.saturating_add(T::DbWeight::get().reads(2 as u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1 as u64))
|
||||
}
|
||||
// Storage: Assets Asset (r:1 w:1)
|
||||
fn force_asset_status() -> Weight {
|
||||
// Minimum execution time: 22_052 nanoseconds.
|
||||
Weight::from_ref_time(22_610_000 as u64)
|
||||
// Minimum execution time: 21_747 nanoseconds.
|
||||
Weight::from_ref_time(22_595_000 as u64)
|
||||
.saturating_add(T::DbWeight::get().reads(1 as u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1 as u64))
|
||||
}
|
||||
// Storage: Assets Asset (r:1 w:1)
|
||||
// Storage: Assets Approvals (r:1 w:1)
|
||||
fn approve_transfer() -> Weight {
|
||||
// Minimum execution time: 44_900 nanoseconds.
|
||||
Weight::from_ref_time(46_032_000 as u64)
|
||||
// Minimum execution time: 45_602 nanoseconds.
|
||||
Weight::from_ref_time(46_004_000 as u64)
|
||||
.saturating_add(T::DbWeight::get().reads(2 as u64))
|
||||
.saturating_add(T::DbWeight::get().writes(2 as u64))
|
||||
}
|
||||
@@ -261,24 +263,24 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Storage: Assets Account (r:2 w:2)
|
||||
// Storage: System Account (r:1 w:1)
|
||||
fn transfer_approved() -> Weight {
|
||||
// Minimum execution time: 72_261 nanoseconds.
|
||||
Weight::from_ref_time(73_186_000 as u64)
|
||||
// Minimum execution time: 70_944 nanoseconds.
|
||||
Weight::from_ref_time(71_722_000 as u64)
|
||||
.saturating_add(T::DbWeight::get().reads(5 as u64))
|
||||
.saturating_add(T::DbWeight::get().writes(5 as u64))
|
||||
}
|
||||
// Storage: Assets Asset (r:1 w:1)
|
||||
// Storage: Assets Approvals (r:1 w:1)
|
||||
fn cancel_approval() -> Weight {
|
||||
// Minimum execution time: 47_268 nanoseconds.
|
||||
Weight::from_ref_time(47_712_000 as u64)
|
||||
// Minimum execution time: 46_316 nanoseconds.
|
||||
Weight::from_ref_time(46_910_000 as u64)
|
||||
.saturating_add(T::DbWeight::get().reads(2 as u64))
|
||||
.saturating_add(T::DbWeight::get().writes(2 as u64))
|
||||
}
|
||||
// Storage: Assets Asset (r:1 w:1)
|
||||
// Storage: Assets Approvals (r:1 w:1)
|
||||
fn force_cancel_approval() -> Weight {
|
||||
// Minimum execution time: 47_363 nanoseconds.
|
||||
Weight::from_ref_time(48_696_000 as u64)
|
||||
// Minimum execution time: 47_145 nanoseconds.
|
||||
Weight::from_ref_time(47_611_000 as u64)
|
||||
.saturating_add(T::DbWeight::get().reads(2 as u64))
|
||||
.saturating_add(T::DbWeight::get().writes(2 as u64))
|
||||
}
|
||||
@@ -288,15 +290,15 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
impl WeightInfo for () {
|
||||
// Storage: Assets Asset (r:1 w:1)
|
||||
fn create() -> Weight {
|
||||
// Minimum execution time: 32_200 nanoseconds.
|
||||
Weight::from_ref_time(32_739_000 as u64)
|
||||
// Minimum execution time: 33_241 nanoseconds.
|
||||
Weight::from_ref_time(33_873_000 as u64)
|
||||
.saturating_add(RocksDbWeight::get().reads(1 as u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1 as u64))
|
||||
}
|
||||
// Storage: Assets Asset (r:1 w:1)
|
||||
fn force_create() -> Weight {
|
||||
// Minimum execution time: 19_192 nanoseconds.
|
||||
Weight::from_ref_time(19_615_000 as u64)
|
||||
// Minimum execution time: 19_883 nanoseconds.
|
||||
Weight::from_ref_time(20_651_000 as u64)
|
||||
.saturating_add(RocksDbWeight::get().reads(1 as u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1 as u64))
|
||||
}
|
||||
@@ -309,12 +311,12 @@ impl WeightInfo for () {
|
||||
/// The range of component `s` is `[0, 5000]`.
|
||||
/// The range of component `a` is `[0, 500]`.
|
||||
fn destroy(c: u32, s: u32, a: u32, ) -> Weight {
|
||||
// Minimum execution time: 75_299_531 nanoseconds.
|
||||
Weight::from_ref_time(75_567_795_000 as u64)
|
||||
// Standard Error: 126_181
|
||||
.saturating_add(Weight::from_ref_time(8_378_363 as u64).saturating_mul(c as u64))
|
||||
// Standard Error: 126_181
|
||||
.saturating_add(Weight::from_ref_time(10_950_076 as u64).saturating_mul(s as u64))
|
||||
// Minimum execution time: 76_222_544 nanoseconds.
|
||||
Weight::from_ref_time(76_864_587_000 as u64)
|
||||
// Standard Error: 127_086
|
||||
.saturating_add(Weight::from_ref_time(8_645_143 as u64).saturating_mul(c as u64))
|
||||
// Standard Error: 127_086
|
||||
.saturating_add(Weight::from_ref_time(11_281_301 as u64).saturating_mul(s as u64))
|
||||
.saturating_add(RocksDbWeight::get().reads(5 as u64))
|
||||
.saturating_add(RocksDbWeight::get().reads((2 as u64).saturating_mul(c as u64)))
|
||||
.saturating_add(RocksDbWeight::get().reads((2 as u64).saturating_mul(s as u64)))
|
||||
@@ -327,16 +329,16 @@ impl WeightInfo for () {
|
||||
// Storage: Assets Asset (r:1 w:1)
|
||||
// Storage: Assets Account (r:1 w:1)
|
||||
fn mint() -> Weight {
|
||||
// Minimum execution time: 35_066 nanoseconds.
|
||||
Weight::from_ref_time(36_217_000 as u64)
|
||||
// Minimum execution time: 36_782 nanoseconds.
|
||||
Weight::from_ref_time(37_340_000 as u64)
|
||||
.saturating_add(RocksDbWeight::get().reads(2 as u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(2 as u64))
|
||||
}
|
||||
// Storage: Assets Asset (r:1 w:1)
|
||||
// Storage: Assets Account (r:1 w:1)
|
||||
fn burn() -> Weight {
|
||||
// Minimum execution time: 44_915 nanoseconds.
|
||||
Weight::from_ref_time(45_807_000 as u64)
|
||||
// Minimum execution time: 44_425 nanoseconds.
|
||||
Weight::from_ref_time(45_485_000 as u64)
|
||||
.saturating_add(RocksDbWeight::get().reads(2 as u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(2 as u64))
|
||||
}
|
||||
@@ -344,8 +346,8 @@ impl WeightInfo for () {
|
||||
// Storage: Assets Account (r:2 w:2)
|
||||
// Storage: System Account (r:1 w:1)
|
||||
fn transfer() -> Weight {
|
||||
// Minimum execution time: 57_245 nanoseconds.
|
||||
Weight::from_ref_time(58_179_000 as u64)
|
||||
// Minimum execution time: 58_294 nanoseconds.
|
||||
Weight::from_ref_time(59_447_000 as u64)
|
||||
.saturating_add(RocksDbWeight::get().reads(4 as u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(4 as u64))
|
||||
}
|
||||
@@ -353,8 +355,8 @@ impl WeightInfo for () {
|
||||
// Storage: Assets Account (r:2 w:2)
|
||||
// Storage: System Account (r:1 w:1)
|
||||
fn transfer_keep_alive() -> Weight {
|
||||
// Minimum execution time: 47_028 nanoseconds.
|
||||
Weight::from_ref_time(47_571_000 as u64)
|
||||
// Minimum execution time: 46_704 nanoseconds.
|
||||
Weight::from_ref_time(47_521_000 as u64)
|
||||
.saturating_add(RocksDbWeight::get().reads(4 as u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(4 as u64))
|
||||
}
|
||||
@@ -362,53 +364,53 @@ impl WeightInfo for () {
|
||||
// Storage: Assets Account (r:2 w:2)
|
||||
// Storage: System Account (r:1 w:1)
|
||||
fn force_transfer() -> Weight {
|
||||
// Minimum execution time: 57_069 nanoseconds.
|
||||
Weight::from_ref_time(58_245_000 as u64)
|
||||
// Minimum execution time: 57_647 nanoseconds.
|
||||
Weight::from_ref_time(58_417_000 as u64)
|
||||
.saturating_add(RocksDbWeight::get().reads(4 as u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(4 as u64))
|
||||
}
|
||||
// Storage: Assets Asset (r:1 w:0)
|
||||
// Storage: Assets Account (r:1 w:1)
|
||||
fn freeze() -> Weight {
|
||||
// Minimum execution time: 26_823 nanoseconds.
|
||||
Weight::from_ref_time(27_689_000 as u64)
|
||||
// Minimum execution time: 26_827 nanoseconds.
|
||||
Weight::from_ref_time(27_373_000 as u64)
|
||||
.saturating_add(RocksDbWeight::get().reads(2 as u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1 as u64))
|
||||
}
|
||||
// Storage: Assets Asset (r:1 w:0)
|
||||
// Storage: Assets Account (r:1 w:1)
|
||||
fn thaw() -> Weight {
|
||||
// Minimum execution time: 26_984 nanoseconds.
|
||||
Weight::from_ref_time(27_591_000 as u64)
|
||||
// Minimum execution time: 26_291 nanoseconds.
|
||||
Weight::from_ref_time(26_854_000 as u64)
|
||||
.saturating_add(RocksDbWeight::get().reads(2 as u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1 as u64))
|
||||
}
|
||||
// Storage: Assets Asset (r:1 w:1)
|
||||
fn freeze_asset() -> Weight {
|
||||
// Minimum execution time: 23_803 nanoseconds.
|
||||
Weight::from_ref_time(24_269_000 as u64)
|
||||
// Minimum execution time: 22_694 nanoseconds.
|
||||
Weight::from_ref_time(23_613_000 as u64)
|
||||
.saturating_add(RocksDbWeight::get().reads(1 as u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1 as u64))
|
||||
}
|
||||
// Storage: Assets Asset (r:1 w:1)
|
||||
fn thaw_asset() -> Weight {
|
||||
// Minimum execution time: 22_977 nanoseconds.
|
||||
Weight::from_ref_time(23_527_000 as u64)
|
||||
// Minimum execution time: 22_572 nanoseconds.
|
||||
Weight::from_ref_time(24_121_000 as u64)
|
||||
.saturating_add(RocksDbWeight::get().reads(1 as u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1 as u64))
|
||||
}
|
||||
// Storage: Assets Asset (r:1 w:1)
|
||||
// Storage: Assets Metadata (r:1 w:0)
|
||||
fn transfer_ownership() -> Weight {
|
||||
// Minimum execution time: 23_815 nanoseconds.
|
||||
Weight::from_ref_time(24_597_000 as u64)
|
||||
// Minimum execution time: 23_949 nanoseconds.
|
||||
Weight::from_ref_time(24_347_000 as u64)
|
||||
.saturating_add(RocksDbWeight::get().reads(2 as u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1 as u64))
|
||||
}
|
||||
// Storage: Assets Asset (r:1 w:1)
|
||||
fn set_team() -> Weight {
|
||||
// Minimum execution time: 22_691 nanoseconds.
|
||||
Weight::from_ref_time(23_173_000 as u64)
|
||||
// Minimum execution time: 23_102 nanoseconds.
|
||||
Weight::from_ref_time(23_518_000 as u64)
|
||||
.saturating_add(RocksDbWeight::get().reads(1 as u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1 as u64))
|
||||
}
|
||||
@@ -416,17 +418,19 @@ impl WeightInfo for () {
|
||||
// Storage: Assets Metadata (r:1 w:1)
|
||||
/// The range of component `n` is `[0, 50]`.
|
||||
/// The range of component `s` is `[0, 50]`.
|
||||
fn set_metadata(_n: u32, _s: u32, ) -> Weight {
|
||||
// Minimum execution time: 40_675 nanoseconds.
|
||||
Weight::from_ref_time(42_869_113 as u64)
|
||||
fn set_metadata(_n: u32, s: u32, ) -> Weight {
|
||||
// Minimum execution time: 41_032 nanoseconds.
|
||||
Weight::from_ref_time(42_845_624 as u64)
|
||||
// Standard Error: 1_274
|
||||
.saturating_add(Weight::from_ref_time(1_875 as u64).saturating_mul(s as u64))
|
||||
.saturating_add(RocksDbWeight::get().reads(2 as u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1 as u64))
|
||||
}
|
||||
// Storage: Assets Asset (r:1 w:0)
|
||||
// Storage: Assets Metadata (r:1 w:1)
|
||||
fn clear_metadata() -> Weight {
|
||||
// Minimum execution time: 42_361 nanoseconds.
|
||||
Weight::from_ref_time(42_912_000 as u64)
|
||||
// Minimum execution time: 42_570 nanoseconds.
|
||||
Weight::from_ref_time(42_957_000 as u64)
|
||||
.saturating_add(RocksDbWeight::get().reads(2 as u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1 as u64))
|
||||
}
|
||||
@@ -435,35 +439,35 @@ impl WeightInfo for () {
|
||||
/// The range of component `n` is `[0, 50]`.
|
||||
/// The range of component `s` is `[0, 50]`.
|
||||
fn force_set_metadata(n: u32, s: u32, ) -> Weight {
|
||||
// Minimum execution time: 22_998 nanoseconds.
|
||||
Weight::from_ref_time(23_844_675 as u64)
|
||||
// Standard Error: 506
|
||||
.saturating_add(Weight::from_ref_time(2_874 as u64).saturating_mul(n as u64))
|
||||
// Standard Error: 506
|
||||
.saturating_add(Weight::from_ref_time(3_817 as u64).saturating_mul(s as u64))
|
||||
// Minimum execution time: 22_768 nanoseconds.
|
||||
Weight::from_ref_time(23_868_816 as u64)
|
||||
// Standard Error: 612
|
||||
.saturating_add(Weight::from_ref_time(1_602 as u64).saturating_mul(n as u64))
|
||||
// Standard Error: 612
|
||||
.saturating_add(Weight::from_ref_time(2_097 as u64).saturating_mul(s as u64))
|
||||
.saturating_add(RocksDbWeight::get().reads(2 as u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1 as u64))
|
||||
}
|
||||
// Storage: Assets Asset (r:1 w:0)
|
||||
// Storage: Assets Metadata (r:1 w:1)
|
||||
fn force_clear_metadata() -> Weight {
|
||||
// Minimum execution time: 42_305 nanoseconds.
|
||||
Weight::from_ref_time(42_678_000 as u64)
|
||||
// Minimum execution time: 41_863 nanoseconds.
|
||||
Weight::from_ref_time(42_643_000 as u64)
|
||||
.saturating_add(RocksDbWeight::get().reads(2 as u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1 as u64))
|
||||
}
|
||||
// Storage: Assets Asset (r:1 w:1)
|
||||
fn force_asset_status() -> Weight {
|
||||
// Minimum execution time: 22_052 nanoseconds.
|
||||
Weight::from_ref_time(22_610_000 as u64)
|
||||
// Minimum execution time: 21_747 nanoseconds.
|
||||
Weight::from_ref_time(22_595_000 as u64)
|
||||
.saturating_add(RocksDbWeight::get().reads(1 as u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1 as u64))
|
||||
}
|
||||
// Storage: Assets Asset (r:1 w:1)
|
||||
// Storage: Assets Approvals (r:1 w:1)
|
||||
fn approve_transfer() -> Weight {
|
||||
// Minimum execution time: 44_900 nanoseconds.
|
||||
Weight::from_ref_time(46_032_000 as u64)
|
||||
// Minimum execution time: 45_602 nanoseconds.
|
||||
Weight::from_ref_time(46_004_000 as u64)
|
||||
.saturating_add(RocksDbWeight::get().reads(2 as u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(2 as u64))
|
||||
}
|
||||
@@ -472,24 +476,24 @@ impl WeightInfo for () {
|
||||
// Storage: Assets Account (r:2 w:2)
|
||||
// Storage: System Account (r:1 w:1)
|
||||
fn transfer_approved() -> Weight {
|
||||
// Minimum execution time: 72_261 nanoseconds.
|
||||
Weight::from_ref_time(73_186_000 as u64)
|
||||
// Minimum execution time: 70_944 nanoseconds.
|
||||
Weight::from_ref_time(71_722_000 as u64)
|
||||
.saturating_add(RocksDbWeight::get().reads(5 as u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(5 as u64))
|
||||
}
|
||||
// Storage: Assets Asset (r:1 w:1)
|
||||
// Storage: Assets Approvals (r:1 w:1)
|
||||
fn cancel_approval() -> Weight {
|
||||
// Minimum execution time: 47_268 nanoseconds.
|
||||
Weight::from_ref_time(47_712_000 as u64)
|
||||
// Minimum execution time: 46_316 nanoseconds.
|
||||
Weight::from_ref_time(46_910_000 as u64)
|
||||
.saturating_add(RocksDbWeight::get().reads(2 as u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(2 as u64))
|
||||
}
|
||||
// Storage: Assets Asset (r:1 w:1)
|
||||
// Storage: Assets Approvals (r:1 w:1)
|
||||
fn force_cancel_approval() -> Weight {
|
||||
// Minimum execution time: 47_363 nanoseconds.
|
||||
Weight::from_ref_time(48_696_000 as u64)
|
||||
// Minimum execution time: 47_145 nanoseconds.
|
||||
Weight::from_ref_time(47_611_000 as u64)
|
||||
.saturating_add(RocksDbWeight::get().reads(2 as u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(2 as u64))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user