Remove a max supply record on collection's destruction (#11593)

* Remove a max supply record on collection's destruction

* cargo run --quiet --profile=production  --features=runtime-benchmarks --manifest-path=bin/node/cli/Cargo.toml -- benchmark pallet --chain=dev --steps=50 --repeat=20 --pallet=pallet_utility --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./frame/utility/src/weights.rs --template=./.maintain/frame-weight-template.hbs

* cargo run --quiet --profile=production  --features=runtime-benchmarks --manifest-path=bin/node/cli/Cargo.toml -- benchmark pallet --chain=dev --steps=50 --repeat=20 --pallet=pallet_uniques --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./frame/uniques/src/weights.rs --template=./.maintain/frame-weight-template.hbs

* cargo run --quiet --profile=production  --features=runtime-benchmarks --manifest-path=bin/node/cli/Cargo.toml -- benchmark pallet --chain=dev --steps=50 --repeat=20 --pallet=pallet_uniques --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./frame/uniques/src/weights.rs --template=./.maintain/frame-weight-template.hbs

Co-authored-by: Parity Bot <admin@parity.io>
This commit is contained in:
Jegor Sidorenko
2022-06-07 11:08:58 +01:00
committed by GitHub
parent a8c1d430ef
commit 7b712fa4ff
4 changed files with 117 additions and 88 deletions
+31 -23
View File
@@ -18,11 +18,12 @@
//! Autogenerated weights for pallet_utility
//!
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
//! DATE: 2022-05-24, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! DATE: 2022-06-03, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! HOSTNAME: `bm3`, CPU: `Intel(R) Core(TM) i7-7700K CPU @ 4.20GHz`
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024
// Executed Command:
// ./target/production/substrate
// target/production/substrate
// benchmark
// pallet
// --chain=dev
@@ -32,8 +33,9 @@
// --extrinsic=*
// --execution=wasm
// --wasm-execution=compiled
// --template=./.maintain/frame-weight-template.hbs
// --heap-pages=4096
// --output=./frame/utility/src/weights.rs
// --template=./.maintain/frame-weight-template.hbs
#![cfg_attr(rustfmt, rustfmt_skip)]
#![allow(unused_parens)]
@@ -54,50 +56,56 @@ pub trait WeightInfo {
/// Weights for pallet_utility using the Substrate node and recommended hardware.
pub struct SubstrateWeight<T>(PhantomData<T>);
impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
/// The range of component `c` is `[0, 1000]`.
fn batch(c: u32, ) -> Weight {
(20_307_000 as Weight)
// Standard Error: 1_000
(23_113_000 as Weight)
// Standard Error: 2_000
.saturating_add((2_701_000 as Weight).saturating_mul(c as Weight))
}
fn as_derivative() -> Weight {
(4_082_000 as Weight)
(4_182_000 as Weight)
}
/// The range of component `c` is `[0, 1000]`.
fn batch_all(c: u32, ) -> Weight {
(3_087_000 as Weight)
// Standard Error: 2_000
.saturating_add((2_842_000 as Weight).saturating_mul(c as Weight))
(18_682_000 as Weight)
// Standard Error: 1_000
.saturating_add((2_794_000 as Weight).saturating_mul(c as Weight))
}
fn dispatch_as() -> Weight {
(11_832_000 as Weight)
(12_049_000 as Weight)
}
/// The range of component `c` is `[0, 1000]`.
fn force_batch(c: u32, ) -> Weight {
(19_750_000 as Weight)
// Standard Error: 1_000
.saturating_add((2_715_000 as Weight).saturating_mul(c as Weight))
(19_136_000 as Weight)
// Standard Error: 2_000
.saturating_add((2_697_000 as Weight).saturating_mul(c as Weight))
}
}
// For backwards compatibility and tests
impl WeightInfo for () {
/// The range of component `c` is `[0, 1000]`.
fn batch(c: u32, ) -> Weight {
(20_307_000 as Weight)
// Standard Error: 1_000
(23_113_000 as Weight)
// Standard Error: 2_000
.saturating_add((2_701_000 as Weight).saturating_mul(c as Weight))
}
fn as_derivative() -> Weight {
(4_082_000 as Weight)
(4_182_000 as Weight)
}
/// The range of component `c` is `[0, 1000]`.
fn batch_all(c: u32, ) -> Weight {
(3_087_000 as Weight)
// Standard Error: 2_000
.saturating_add((2_842_000 as Weight).saturating_mul(c as Weight))
(18_682_000 as Weight)
// Standard Error: 1_000
.saturating_add((2_794_000 as Weight).saturating_mul(c as Weight))
}
fn dispatch_as() -> Weight {
(11_832_000 as Weight)
(12_049_000 as Weight)
}
/// The range of component `c` is `[0, 1000]`.
fn force_batch(c: u32, ) -> Weight {
(19_750_000 as Weight)
// Standard Error: 1_000
.saturating_add((2_715_000 as Weight).saturating_mul(c as Weight))
(19_136_000 as Weight)
// Standard Error: 2_000
.saturating_add((2_697_000 as Weight).saturating_mul(c as Weight))
}
}