From 3230c03734a0407c5a033ca44c2768ba628435c5 Mon Sep 17 00:00:00 2001 From: Alexander Kalankhodzhaev Date: Tue, 13 Jun 2023 20:05:25 +0700 Subject: [PATCH] Redirect pallets weights generated by benchmarking in runtime (#195) [#180] Redirect pallets weights generated by benchmarking in runtime --- runtime/trappist/src/contracts.rs | 17 +- runtime/trappist/src/lib.rs | 86 +- runtime/trappist/src/weights/block_weights.rs | 26 +- .../src/weights/cumulus_pallet_xcmp_queue.rs | 66 + .../trappist/src/weights/extrinsic_weights.rs | 26 +- runtime/trappist/src/weights/frame_system.rs | 101 ++ runtime/trappist/src/weights/mod.rs | 20 + .../src/weights/pallet_asset_registry.rs | 69 + runtime/trappist/src/weights/pallet_assets.rs | 280 ++++ .../trappist/src/weights/pallet_balances.rs | 101 ++ .../src/weights/pallet_collator_selection.rs | 127 ++ .../trappist/src/weights/pallet_collective.rs | 215 +++ .../trappist/src/weights/pallet_contracts.rs | 1323 +++++++++++++++++ .../trappist/src/weights/pallet_democracy.rs | 267 ++++ runtime/trappist/src/weights/pallet_dex.rs | 111 ++ .../trappist/src/weights/pallet_identity.rs | 258 ++++ .../src/weights/pallet_lockdown_mode.rs | 68 + .../trappist/src/weights/pallet_multisig.rs | 134 ++ .../trappist/src/weights/pallet_preimage.rs | 151 ++ .../trappist/src/weights/pallet_scheduler.rs | 147 ++ .../trappist/src/weights/pallet_session.rs | 68 + .../trappist/src/weights/pallet_timestamp.rs | 64 + .../trappist/src/weights/pallet_treasury.rs | 106 ++ .../trappist/src/weights/pallet_uniques.rs | 291 ++++ .../trappist/src/weights/pallet_utility.rs | 89 ++ .../weights/trappist_runtime_benchmarks.rs | 44 +- .../xcm/pallet_xcm_benchmarks_fungible.rs | 61 +- .../xcm/pallet_xcm_benchmarks_generic.rs | 77 +- runtime/trappist/src/xcm_config.rs | 5 +- 29 files changed, 4213 insertions(+), 185 deletions(-) create mode 100644 runtime/trappist/src/weights/cumulus_pallet_xcmp_queue.rs create mode 100644 runtime/trappist/src/weights/frame_system.rs create mode 100644 runtime/trappist/src/weights/pallet_asset_registry.rs create mode 100644 runtime/trappist/src/weights/pallet_assets.rs create mode 100644 runtime/trappist/src/weights/pallet_balances.rs create mode 100644 runtime/trappist/src/weights/pallet_collator_selection.rs create mode 100644 runtime/trappist/src/weights/pallet_collective.rs create mode 100644 runtime/trappist/src/weights/pallet_contracts.rs create mode 100644 runtime/trappist/src/weights/pallet_democracy.rs create mode 100644 runtime/trappist/src/weights/pallet_dex.rs create mode 100644 runtime/trappist/src/weights/pallet_identity.rs create mode 100644 runtime/trappist/src/weights/pallet_lockdown_mode.rs create mode 100644 runtime/trappist/src/weights/pallet_multisig.rs create mode 100644 runtime/trappist/src/weights/pallet_preimage.rs create mode 100644 runtime/trappist/src/weights/pallet_scheduler.rs create mode 100644 runtime/trappist/src/weights/pallet_session.rs create mode 100644 runtime/trappist/src/weights/pallet_timestamp.rs create mode 100644 runtime/trappist/src/weights/pallet_treasury.rs create mode 100644 runtime/trappist/src/weights/pallet_uniques.rs create mode 100644 runtime/trappist/src/weights/pallet_utility.rs diff --git a/runtime/trappist/src/contracts.rs b/runtime/trappist/src/contracts.rs index f74ffd35..ab69ea8e 100644 --- a/runtime/trappist/src/contracts.rs +++ b/runtime/trappist/src/contracts.rs @@ -16,7 +16,7 @@ // limitations under the License. use crate::{ - constants::currency::deposit, Balance, Balances, RandomnessCollectiveFlip, Runtime, + constants::currency::deposit, weights, Balance, Balances, RandomnessCollectiveFlip, Runtime, RuntimeBlockWeights, RuntimeCall, RuntimeEvent, Timestamp, }; use frame_support::{ @@ -24,10 +24,7 @@ use frame_support::{ traits::{ConstBool, ConstU32, Nothing}, weights::Weight, }; -use pallet_contracts::{ - weights::{SubstrateWeight, WeightInfo}, - Config, DefaultAddressGenerator, Frame, Schedule, -}; +use pallet_contracts::{weights::WeightInfo, Config, DefaultAddressGenerator, Frame, Schedule}; pub use parachains_common::AVERAGE_ON_INITIALIZE_RATIO; // Prints debug output of the `contracts` pallet to stdout if the node is @@ -62,15 +59,15 @@ impl Config for Runtime { /// change because that would break already deployed contracts. The `Call` structure itself /// is not allowed to change the indices of existing pallets, too. type CallFilter = Nothing; - type DepositPerItem = DepositPerItem; - type DepositPerByte = DepositPerByte; type WeightPrice = pallet_transaction_payment::Pallet; - type WeightInfo = SubstrateWeight; + type WeightInfo = weights::pallet_contracts::WeightInfo; type ChainExtension = (); - type DeletionQueueDepth = DeletionQueueDepth; - type DeletionWeightLimit = DeletionWeightLimit; type Schedule = MySchedule; type CallStack = [Frame; 31]; + type DeletionQueueDepth = DeletionQueueDepth; + type DeletionWeightLimit = DeletionWeightLimit; + type DepositPerByte = DepositPerByte; + type DepositPerItem = DepositPerItem; type AddressGenerator = DefaultAddressGenerator; type MaxCodeLen = ConstU32<{ 128 * 1024 }>; type MaxStorageKeyLen = ConstU32<128>; diff --git a/runtime/trappist/src/lib.rs b/runtime/trappist/src/lib.rs index f58736e9..4b77ab5c 100644 --- a/runtime/trappist/src/lib.rs +++ b/runtime/trappist/src/lib.rs @@ -175,24 +175,24 @@ impl frame_system::Config for Runtime { type BaseCallFilter = LockdownMode; type BlockWeights = RuntimeBlockWeights; type BlockLength = RuntimeBlockLength; - type AccountId = AccountId; + type RuntimeOrigin = RuntimeOrigin; type RuntimeCall = RuntimeCall; - type Lookup = AccountIdLookup; type Index = Index; type BlockNumber = BlockNumber; type Hash = Hash; type Hashing = BlakeTwo256; + type AccountId = AccountId; + type Lookup = AccountIdLookup; type Header = Header; type RuntimeEvent = RuntimeEvent; - type RuntimeOrigin = RuntimeOrigin; type BlockHashCount = BlockHashCount; type DbWeight = RocksDbWeight; type Version = Version; type PalletInfo = PalletInfo; + type AccountData = pallet_balances::AccountData; type OnNewAccount = (); type OnKilledAccount = (); - type AccountData = pallet_balances::AccountData; - type SystemWeightInfo = frame_system::weights::SubstrateWeight; + type SystemWeightInfo = weights::frame_system::WeightInfo; type SS58Prefix = ConstU16<42>; type OnSetCode = cumulus_pallet_parachain_system::ParachainSetCode; type MaxConsumers = ConstU32<16>; @@ -203,7 +203,7 @@ impl pallet_timestamp::Config for Runtime { type Moment = u64; type OnTimestampSet = Aura; type MinimumPeriod = ConstU64<{ SLOT_DURATION / 2 }>; - type WeightInfo = pallet_timestamp::weights::SubstrateWeight; + type WeightInfo = weights::pallet_timestamp::WeightInfo; } impl pallet_authorship::Config for Runtime { @@ -214,15 +214,15 @@ impl pallet_authorship::Config for Runtime { } impl pallet_balances::Config for Runtime { - type MaxLocks = ConstU32<50>; /// The type for recording an account's balance. type Balance = Balance; + type DustRemoval = (); /// The ubiquitous event type. type RuntimeEvent = RuntimeEvent; - type DustRemoval = (); type ExistentialDeposit = ConstU128; type AccountStore = System; - type WeightInfo = pallet_balances::weights::SubstrateWeight; + type WeightInfo = weights::pallet_balances::WeightInfo; + type MaxLocks = ConstU32<50>; type MaxReserves = ConstU32<50>; type ReserveIdentifier = [u8; 8]; } @@ -236,11 +236,11 @@ impl pallet_transaction_payment::Config for Runtime { type RuntimeEvent = RuntimeEvent; type OnChargeTransaction = pallet_transaction_payment::CurrencyAdapter>; + type OperationalFeeMultiplier = ConstU8<5>; /// Relay Chain `TransactionByteFee` / 10 type WeightToFee = WeightToFee; type LengthToFee = ConstantMultiplier; type FeeMultiplierUpdate = SlowAdjustingFeeUpdate; - type OperationalFeeMultiplier = ConstU8<5>; } impl pallet_asset_tx_payment::Config for Runtime { @@ -266,14 +266,14 @@ impl pallet_multisig::Config for Runtime { type DepositBase = DepositBase; type DepositFactor = DepositFactor; type MaxSignatories = ConstU32<100>; - type WeightInfo = pallet_multisig::weights::SubstrateWeight; + type WeightInfo = weights::pallet_multisig::WeightInfo; } impl pallet_utility::Config for Runtime { type RuntimeEvent = RuntimeEvent; type RuntimeCall = RuntimeCall; type PalletsOrigin = OriginCaller; - type WeightInfo = pallet_utility::weights::SubstrateWeight; + type WeightInfo = weights::pallet_utility::WeightInfo; } parameter_types! { @@ -285,9 +285,9 @@ impl cumulus_pallet_parachain_system::Config for Runtime { type RuntimeEvent = RuntimeEvent; type OnSystemEvent = (); type SelfParaId = parachain_info::Pallet; + type OutboundXcmpMessageSource = XcmpQueue; type DmpMessageHandler = LockdownMode; type ReservedDmpWeight = ReservedDmpWeight; - type OutboundXcmpMessageSource = XcmpQueue; type XcmpMessageHandler = XcmpQueue; type ReservedXcmpWeight = ReservedXcmpWeight; type CheckAssociatedRelayNumber = RelayNumberStrictlyIncreases; @@ -315,13 +315,13 @@ impl pallet_session::Config for Runtime { // Essentially just Aura, but lets be pedantic. type SessionHandler = ::KeyTypeIdProviders; type Keys = SessionKeys; - type WeightInfo = pallet_session::weights::SubstrateWeight; + type WeightInfo = weights::pallet_session::WeightInfo; } impl pallet_aura::Config for Runtime { type AuthorityId = AuraId; - type DisabledValidators = (); type MaxAuthorities = ConstU32<100_000>; + type DisabledValidators = (); } parameter_types! { @@ -341,12 +341,12 @@ impl pallet_collator_selection::Config for Runtime { type ValidatorId = ::AccountId; type ValidatorIdOf = pallet_collator_selection::IdentityCollator; type ValidatorRegistration = Session; - type WeightInfo = pallet_collator_selection::weights::SubstrateWeight; + type WeightInfo = weights::pallet_collator_selection::WeightInfo; } impl pallet_sudo::Config for Runtime { - type RuntimeCall = RuntimeCall; type RuntimeEvent = RuntimeEvent; + type RuntimeCall = RuntimeCall; } parameter_types! { @@ -363,24 +363,24 @@ pub type AssetBalance = Balance; impl pallet_assets::Config for Runtime { type RuntimeEvent = RuntimeEvent; type Balance = AssetBalance; + type RemoveItemsLimit = ConstU32<1000>; type AssetId = AssetId; type AssetIdParameter = parity_scale_codec::Compact; type Currency = Balances; type CreateOrigin = AsEnsureOriginWithArg>; type ForceOrigin = AssetsForceOrigin; type AssetDeposit = ConstU128<{ UNITS }>; + type AssetAccountDeposit = ConstU128<{ UNITS }>; type MetadataDepositBase = ConstU128<{ UNITS }>; type MetadataDepositPerByte = ConstU128<{ 10 * CENTS }>; type ApprovalDeposit = ConstU128<{ 10 * CENTS }>; type StringLimit = ConstU32<50>; type Freezer = (); type Extra = (); - type WeightInfo = pallet_assets::weights::SubstrateWeight; - type AssetAccountDeposit = ConstU128<{ UNITS }>; - type RemoveItemsLimit = ConstU32<1000>; + type CallbackHandle = (); + type WeightInfo = weights::pallet_assets::WeightInfo; #[cfg(feature = "runtime-benchmarks")] type BenchmarkHelper = (); - type CallbackHandle = (); } type CouncilCollective = pallet_collective::Instance1; @@ -392,7 +392,7 @@ impl pallet_collective::Config for Runtime { type MaxProposals = ConstU32<100>; type MaxMembers = ConstU32<100>; type DefaultVote = pallet_collective::PrimeDefaultVote; - type WeightInfo = pallet_collective::weights::SubstrateWeight; + type WeightInfo = weights::pallet_collective::WeightInfo; } type EnsureRootOrHalfCouncil = EitherOfDiverse< @@ -418,7 +418,7 @@ impl pallet_identity::Config for Runtime { type Slashed = (); type ForceOrigin = EnsureRootOrHalfCouncil; type RegistrarOrigin = EnsureRootOrHalfCouncil; - type WeightInfo = (); + type WeightInfo = weights::pallet_identity::WeightInfo; } parameter_types! { @@ -438,6 +438,8 @@ impl pallet_uniques::Config for Runtime { type ItemId = u32; type Currency = Balances; type ForceOrigin = frame_system::EnsureRoot; + type CreateOrigin = AsEnsureOriginWithArg>; + type Locker = (); type CollectionDeposit = CollectionDeposit; type ItemDeposit = ItemDeposit; type MetadataDepositBase = UniquesMetadataDepositBase; @@ -446,11 +448,9 @@ impl pallet_uniques::Config for Runtime { type StringLimit = StringLimit; type KeyLimit = KeyLimit; type ValueLimit = ValueLimit; - type WeightInfo = pallet_uniques::weights::SubstrateWeight; #[cfg(feature = "runtime-benchmarks")] type Helper = (); - type CreateOrigin = AsEnsureOriginWithArg>; - type Locker = (); + type WeightInfo = weights::pallet_uniques::WeightInfo; } parameter_types! { @@ -465,9 +465,9 @@ impl pallet_scheduler::Config for Runtime { type RuntimeCall = RuntimeCall; type MaximumWeight = MaximumSchedulerWeight; type ScheduleOrigin = frame_system::EnsureRoot; - type MaxScheduledPerBlock = ConstU32<512>; - type WeightInfo = pallet_scheduler::weights::SubstrateWeight; type OriginPrivilegeCmp = EqualPrivilegeOnly; + type MaxScheduledPerBlock = ConstU32<512>; + type WeightInfo = weights::pallet_scheduler::WeightInfo; type Preimages = Preimage; } @@ -477,8 +477,8 @@ parameter_types! { } impl pallet_preimage::Config for Runtime { - type WeightInfo = pallet_preimage::weights::SubstrateWeight; type RuntimeEvent = RuntimeEvent; + type WeightInfo = weights::pallet_preimage::WeightInfo; type Currency = Balances; type ManagerOrigin = EnsureRoot; type BaseDeposit = PreimageBaseDeposit; @@ -498,25 +498,24 @@ parameter_types! { } impl pallet_democracy::Config for Runtime { - type WeightInfo = pallet_democracy::weights::SubstrateWeight; + type WeightInfo = weights::pallet_democracy::WeightInfo; type RuntimeEvent = RuntimeEvent; type Scheduler = Scheduler; type Preimages = Preimage; type Currency = Balances; - type MinimumDeposit = MinimumDeposit; - type InstantAllowed = InstantAllowed; - type MaxVotes = MaxVotes; - type MaxProposals = MaxProposals; - type MaxDeposits = ConstU32<100>; - type MaxBlacklisted = ConstU32<100>; - type Slash = Treasury; //Periods type EnactmentPeriod = EnactmentPeriod; type LaunchPeriod = LaunchPeriod; type VotingPeriod = VotingPeriod; type VoteLockingPeriod = EnactmentPeriod; + type MinimumDeposit = MinimumDeposit; + type InstantAllowed = InstantAllowed; type FastTrackVotingPeriod = FastTrackVotingPeriod; type CooloffPeriod = CooloffPeriod; + type MaxVotes = MaxVotes; + type MaxProposals = MaxProposals; + type MaxDeposits = ConstU32<100>; + type MaxBlacklisted = ConstU32<100>; //Origins //Council mayority can make proposal into referendum type ExternalOrigin = @@ -540,6 +539,7 @@ impl pallet_democracy::Config for Runtime { >; type VetoOrigin = pallet_collective::EnsureMember; type PalletsOrigin = OriginCaller; + type Slash = Treasury; } parameter_types! { @@ -556,7 +556,7 @@ impl pallet_dex::Config for Runtime { type AssetId = AssetId; type Assets = Assets; type AssetRegistry = Assets; - type WeightInfo = pallet_dex::weights::SubstrateWeight; + type WeightInfo = weights::pallet_dex::WeightInfo; type ProviderFeeNumerator = ConstU128<3>; type ProviderFeeDenominator = ConstU128<1000>; type MinDeposit = ConstU128<{ UNITS }>; @@ -583,7 +583,7 @@ impl pallet_asset_registry::Config for Runtime { type RuntimeEvent = RuntimeEvent; type ReserveAssetModifierOrigin = frame_system::EnsureRoot; type Assets = Assets; - type WeightInfo = pallet_asset_registry::weights::SubstrateWeight; + type WeightInfo = weights::pallet_asset_registry::WeightInfo; #[cfg(feature = "runtime-benchmarks")] type BenchmarkHelper = AssetRegistryBenchmarkHelper; } @@ -612,7 +612,6 @@ parameter_types! { } impl pallet_treasury::Config for Runtime { - type PalletId = TreasuryPalletId; type Currency = Balances; type ApproveOrigin = TreasuryApproveCancelOrigin; type RejectOrigin = TreasuryApproveCancelOrigin; @@ -623,10 +622,11 @@ impl pallet_treasury::Config for Runtime { type ProposalBondMaximum = ProposalBondMaximum; type SpendPeriod = SpendPeriod; type Burn = (); + type PalletId = TreasuryPalletId; type BurnDestination = (); - type MaxApprovals = MaxApprovals; - type WeightInfo = pallet_treasury::weights::SubstrateWeight; + type WeightInfo = weights::pallet_treasury::WeightInfo; type SpendFunds = (); + type MaxApprovals = MaxApprovals; type SpendOrigin = frame_support::traits::NeverEnsureOrigin; } @@ -636,7 +636,7 @@ impl pallet_lockdown_mode::Config for Runtime { type BlackListedCalls = RuntimeBlackListedCalls; type LockdownDmpHandler = LockdownDmpHandler; type XcmExecutorManager = XcmExecutionManager; - type WeightInfo = pallet_lockdown_mode::weights::SubstrateWeight; + type WeightInfo = weights::pallet_lockdown_mode::WeightInfo; } // Create the runtime by composing the FRAME pallets that were previously configured. diff --git a/runtime/trappist/src/weights/block_weights.rs b/runtime/trappist/src/weights/block_weights.rs index b3a67e8c..09d169a2 100644 --- a/runtime/trappist/src/weights/block_weights.rs +++ b/runtime/trappist/src/weights/block_weights.rs @@ -16,22 +16,22 @@ // limitations under the License. //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev -//! DATE: 2023-06-09 (Y/M/D) -//! HOSTNAME: `kalan-x1x`, CPU: `12th Gen Intel(R) Core(TM) i7-12800H` +//! DATE: 2023-06-13 (Y/M/D) +//! HOSTNAME: `runner--ss9ysm1-project-647-concurrent-0`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz` //! //! SHORT-NAME: `block`, LONG-NAME: `BlockExecution`, RUNTIME: `Trappist Development` //! WARMUPS: `10`, REPEAT: `100` -//! WEIGHT-PATH: `./runtime/trappist/src/weights` +//! WEIGHT-PATH: `./runtime/trappist/src/weights/` //! WEIGHT-METRIC: `Average`, WEIGHT-MUL: `1.0`, WEIGHT-ADD: `0` // Executed Command: -// target/debug/trappist-node +// ./target/production/trappist-node // benchmark // overhead // --chain=trappist-dev // --execution=wasm // --wasm-execution=compiled -// --weight-path=./runtime/trappist/src/weights +// --weight-path=./runtime/trappist/src/weights/ // --warmup=10 // --repeat=100 // --header=./templates/file_header.txt @@ -44,17 +44,17 @@ parameter_types! { /// Calculated by multiplying the *Average* with `1.0` and adding `0`. /// /// Stats nanoseconds: - /// Min, Max: 3_950_018, 4_495_760 - /// Average: 4_098_356 - /// Median: 4_070_795 - /// Std-Dev: 83926.18 + /// Min, Max: 431_595, 483_704 + /// Average: 446_171 + /// Median: 443_429 + /// Std-Dev: 10122.1 /// /// Percentiles nanoseconds: - /// 99th: 4_389_302 - /// 95th: 4_241_334 - /// 75th: 4_137_615 + /// 99th: 473_739 + /// 95th: 465_709 + /// 75th: 451_482 pub const BlockExecutionWeight: Weight = - Weight::from_ref_time(WEIGHT_REF_TIME_PER_NANOS.saturating_mul(4_098_356)); + Weight::from_ref_time(WEIGHT_REF_TIME_PER_NANOS.saturating_mul(446_171)); } #[cfg(test)] diff --git a/runtime/trappist/src/weights/cumulus_pallet_xcmp_queue.rs b/runtime/trappist/src/weights/cumulus_pallet_xcmp_queue.rs new file mode 100644 index 00000000..5db50b4a --- /dev/null +++ b/runtime/trappist/src/weights/cumulus_pallet_xcmp_queue.rs @@ -0,0 +1,66 @@ +// This file is part of Trappist. + +// Copyright (C) Parity Technologies (UK) Ltd. +// SPDX-License-Identifier: Apache-2.0 + +// Licensed under the Apache License, Version 2.0 (the "License"); +// 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 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +//! Autogenerated weights for `cumulus_pallet_xcmp_queue` +//! +//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev +//! DATE: 2023-06-13, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! HOSTNAME: `runner--ss9ysm1-project-647-concurrent-0`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz` +//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("trappist-dev"), DB CACHE: 1024 + +// Executed Command: +// ./target/production/trappist-node +// benchmark +// pallet +// --chain=trappist-dev +// --steps=50 +// --repeat=20 +// --no-storage-info +// --no-median-slopes +// --no-min-squares +// --pallet=cumulus_pallet_xcmp_queue +// --extrinsic=* +// --execution=wasm +// --wasm-execution=compiled +// --header=./templates/file_header.txt +// --output=./runtime/trappist/src/weights/ + +#![cfg_attr(rustfmt, rustfmt_skip)] +#![allow(unused_parens)] +#![allow(unused_imports)] + +use frame_support::{traits::Get, weights::Weight}; +use sp_std::marker::PhantomData; + +/// Weight functions for `cumulus_pallet_xcmp_queue`. +pub struct WeightInfo(PhantomData); +impl cumulus_pallet_xcmp_queue::WeightInfo for WeightInfo { + // Storage: XcmpQueue QueueConfig (r:1 w:1) + fn set_config_with_u32() -> Weight { + // Minimum execution time: 6_997 nanoseconds. + Weight::from_ref_time(7_140_000) + .saturating_add(T::DbWeight::get().reads(1)) + .saturating_add(T::DbWeight::get().writes(1)) + } + // Storage: XcmpQueue QueueConfig (r:1 w:1) + fn set_config_with_weight() -> Weight { + // Minimum execution time: 6_862 nanoseconds. + Weight::from_ref_time(7_143_000) + .saturating_add(T::DbWeight::get().reads(1)) + .saturating_add(T::DbWeight::get().writes(1)) + } +} diff --git a/runtime/trappist/src/weights/extrinsic_weights.rs b/runtime/trappist/src/weights/extrinsic_weights.rs index 4671bc5c..0edbb2f0 100644 --- a/runtime/trappist/src/weights/extrinsic_weights.rs +++ b/runtime/trappist/src/weights/extrinsic_weights.rs @@ -16,22 +16,22 @@ // limitations under the License. //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev -//! DATE: 2023-06-09 (Y/M/D) -//! HOSTNAME: `kalan-x1x`, CPU: `12th Gen Intel(R) Core(TM) i7-12800H` +//! DATE: 2023-06-13 (Y/M/D) +//! HOSTNAME: `runner--ss9ysm1-project-647-concurrent-0`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz` //! //! SHORT-NAME: `extrinsic`, LONG-NAME: `ExtrinsicBase`, RUNTIME: `Trappist Development` //! WARMUPS: `10`, REPEAT: `100` -//! WEIGHT-PATH: `./runtime/trappist/src/weights` +//! WEIGHT-PATH: `./runtime/trappist/src/weights/` //! WEIGHT-METRIC: `Average`, WEIGHT-MUL: `1.0`, WEIGHT-ADD: `0` // Executed Command: -// target/debug/trappist-node +// ./target/production/trappist-node // benchmark // overhead // --chain=trappist-dev // --execution=wasm // --wasm-execution=compiled -// --weight-path=./runtime/trappist/src/weights +// --weight-path=./runtime/trappist/src/weights/ // --warmup=10 // --repeat=100 // --header=./templates/file_header.txt @@ -44,17 +44,17 @@ parameter_types! { /// Calculated by multiplying the *Average* with `1.0` and adding `0`. /// /// Stats nanoseconds: - /// Min, Max: 921_024, 963_714 - /// Average: 930_758 - /// Median: 928_324 - /// Std-Dev: 7978.85 + /// Min, Max: 113_785, 116_329 + /// Average: 114_781 + /// Median: 114_738 + /// Std-Dev: 450.29 /// /// Percentiles nanoseconds: - /// 99th: 958_566 - /// 95th: 948_841 - /// 75th: 932_871 + /// 99th: 115_717 + /// 95th: 115_522 + /// 75th: 115_050 pub const ExtrinsicBaseWeight: Weight = - Weight::from_ref_time(WEIGHT_REF_TIME_PER_NANOS.saturating_mul(930_758)); + Weight::from_ref_time(WEIGHT_REF_TIME_PER_NANOS.saturating_mul(114_781)); } #[cfg(test)] diff --git a/runtime/trappist/src/weights/frame_system.rs b/runtime/trappist/src/weights/frame_system.rs new file mode 100644 index 00000000..2fbdb1bb --- /dev/null +++ b/runtime/trappist/src/weights/frame_system.rs @@ -0,0 +1,101 @@ +// This file is part of Trappist. + +// Copyright (C) Parity Technologies (UK) Ltd. +// SPDX-License-Identifier: Apache-2.0 + +// Licensed under the Apache License, Version 2.0 (the "License"); +// 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 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +//! Autogenerated weights for `frame_system` +//! +//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev +//! DATE: 2023-06-13, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! HOSTNAME: `runner--ss9ysm1-project-647-concurrent-0`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz` +//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("trappist-dev"), DB CACHE: 1024 + +// Executed Command: +// ./target/production/trappist-node +// benchmark +// pallet +// --chain=trappist-dev +// --steps=50 +// --repeat=20 +// --no-storage-info +// --no-median-slopes +// --no-min-squares +// --pallet=frame_system +// --extrinsic=* +// --execution=wasm +// --wasm-execution=compiled +// --header=./templates/file_header.txt +// --output=./runtime/trappist/src/weights/ + +#![cfg_attr(rustfmt, rustfmt_skip)] +#![allow(unused_parens)] +#![allow(unused_imports)] + +use frame_support::{traits::Get, weights::Weight}; +use sp_std::marker::PhantomData; + +/// Weight functions for `frame_system`. +pub struct WeightInfo(PhantomData); +impl frame_system::WeightInfo for WeightInfo { + /// The range of component `b` is `[0, 3932160]`. + fn remark(b: u32, ) -> Weight { + // Minimum execution time: 3_881 nanoseconds. + Weight::from_ref_time(3_948_000) + // Standard Error: 0 + .saturating_add(Weight::from_ref_time(486).saturating_mul(b.into())) + } + /// The range of component `b` is `[0, 3932160]`. + fn remark_with_event(b: u32, ) -> Weight { + // Minimum execution time: 14_629 nanoseconds. + Weight::from_ref_time(4_990_075) + // Standard Error: 8 + .saturating_add(Weight::from_ref_time(2_076).saturating_mul(b.into())) + } + // Storage: System Digest (r:1 w:1) + // Storage: unknown [0x3a686561707061676573] (r:0 w:1) + fn set_heap_pages() -> Weight { + // Minimum execution time: 8_639 nanoseconds. + Weight::from_ref_time(9_226_000) + .saturating_add(T::DbWeight::get().reads(1)) + .saturating_add(T::DbWeight::get().writes(2)) + } + // Storage: Skipped Metadata (r:0 w:0) + /// The range of component `i` is `[0, 1000]`. + fn set_storage(i: u32, ) -> Weight { + // Minimum execution time: 3_971 nanoseconds. + Weight::from_ref_time(4_069_000) + // Standard Error: 2_808 + .saturating_add(Weight::from_ref_time(718_934).saturating_mul(i.into())) + .saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(i.into()))) + } + // Storage: Skipped Metadata (r:0 w:0) + /// The range of component `i` is `[0, 1000]`. + fn kill_storage(i: u32, ) -> Weight { + // Minimum execution time: 5_463 nanoseconds. + Weight::from_ref_time(5_684_000) + // Standard Error: 1_377 + .saturating_add(Weight::from_ref_time(532_699).saturating_mul(i.into())) + .saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(i.into()))) + } + // Storage: Skipped Metadata (r:0 w:0) + /// The range of component `p` is `[0, 1000]`. + fn kill_prefix(p: u32, ) -> Weight { + // Minimum execution time: 5_496 nanoseconds. + Weight::from_ref_time(5_661_000) + // Standard Error: 2_339 + .saturating_add(Weight::from_ref_time(1_192_333).saturating_mul(p.into())) + .saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(p.into()))) + } +} diff --git a/runtime/trappist/src/weights/mod.rs b/runtime/trappist/src/weights/mod.rs index 1de4d785..2f395a58 100644 --- a/runtime/trappist/src/weights/mod.rs +++ b/runtime/trappist/src/weights/mod.rs @@ -21,7 +21,27 @@ use xcm_primitives::DropAssetsWeigher; use crate::Runtime; pub mod block_weights; +pub mod cumulus_pallet_xcmp_queue; pub mod extrinsic_weights; +pub mod frame_system; +pub mod pallet_asset_registry; +pub mod pallet_assets; +pub mod pallet_balances; +pub mod pallet_collator_selection; +pub mod pallet_collective; +pub mod pallet_contracts; +pub mod pallet_democracy; +pub mod pallet_dex; +pub mod pallet_identity; +pub mod pallet_lockdown_mode; +pub mod pallet_multisig; +pub mod pallet_preimage; +pub mod pallet_scheduler; +pub mod pallet_session; +pub mod pallet_timestamp; +pub mod pallet_treasury; +pub mod pallet_uniques; +pub mod pallet_utility; pub mod trappist_runtime_benchmarks; pub mod xcm; diff --git a/runtime/trappist/src/weights/pallet_asset_registry.rs b/runtime/trappist/src/weights/pallet_asset_registry.rs new file mode 100644 index 00000000..9a09c577 --- /dev/null +++ b/runtime/trappist/src/weights/pallet_asset_registry.rs @@ -0,0 +1,69 @@ +// This file is part of Trappist. + +// Copyright (C) Parity Technologies (UK) Ltd. +// SPDX-License-Identifier: Apache-2.0 + +// Licensed under the Apache License, Version 2.0 (the "License"); +// 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 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +//! Autogenerated weights for `pallet_asset_registry` +//! +//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev +//! DATE: 2023-06-13, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! HOSTNAME: `runner--ss9ysm1-project-647-concurrent-0`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz` +//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("trappist-dev"), DB CACHE: 1024 + +// Executed Command: +// ./target/production/trappist-node +// benchmark +// pallet +// --chain=trappist-dev +// --steps=50 +// --repeat=20 +// --no-storage-info +// --no-median-slopes +// --no-min-squares +// --pallet=pallet_asset_registry +// --extrinsic=* +// --execution=wasm +// --wasm-execution=compiled +// --header=./templates/file_header.txt +// --output=./runtime/trappist/src/weights/ + +#![cfg_attr(rustfmt, rustfmt_skip)] +#![allow(unused_parens)] +#![allow(unused_imports)] + +use frame_support::{traits::Get, weights::Weight}; +use sp_std::marker::PhantomData; + +/// Weight functions for `pallet_asset_registry`. +pub struct WeightInfo(PhantomData); +impl pallet_asset_registry::WeightInfo for WeightInfo { + // Storage: Assets Asset (r:1 w:0) + // Storage: AssetRegistry AssetIdMultiLocation (r:1 w:1) + // Storage: AssetRegistry AssetMultiLocationId (r:0 w:1) + fn register_reserve_asset() -> Weight { + // Minimum execution time: 24_450 nanoseconds. + Weight::from_ref_time(25_192_000) + .saturating_add(T::DbWeight::get().reads(2)) + .saturating_add(T::DbWeight::get().writes(2)) + } + // Storage: AssetRegistry AssetIdMultiLocation (r:1 w:1) + // Storage: AssetRegistry AssetMultiLocationId (r:0 w:1) + fn unregister_reserve_asset() -> Weight { + // Minimum execution time: 21_390 nanoseconds. + Weight::from_ref_time(22_152_000) + .saturating_add(T::DbWeight::get().reads(1)) + .saturating_add(T::DbWeight::get().writes(2)) + } +} diff --git a/runtime/trappist/src/weights/pallet_assets.rs b/runtime/trappist/src/weights/pallet_assets.rs new file mode 100644 index 00000000..0c8d6cc5 --- /dev/null +++ b/runtime/trappist/src/weights/pallet_assets.rs @@ -0,0 +1,280 @@ +// This file is part of Trappist. + +// Copyright (C) Parity Technologies (UK) Ltd. +// SPDX-License-Identifier: Apache-2.0 + +// Licensed under the Apache License, Version 2.0 (the "License"); +// 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 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +//! Autogenerated weights for `pallet_assets` +//! +//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev +//! DATE: 2023-06-13, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! HOSTNAME: `runner--ss9ysm1-project-647-concurrent-0`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz` +//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("trappist-dev"), DB CACHE: 1024 + +// Executed Command: +// ./target/production/trappist-node +// benchmark +// pallet +// --chain=trappist-dev +// --steps=50 +// --repeat=20 +// --no-storage-info +// --no-median-slopes +// --no-min-squares +// --pallet=pallet_assets +// --extrinsic=* +// --execution=wasm +// --wasm-execution=compiled +// --header=./templates/file_header.txt +// --output=./runtime/trappist/src/weights/ + +#![cfg_attr(rustfmt, rustfmt_skip)] +#![allow(unused_parens)] +#![allow(unused_imports)] + +use frame_support::{traits::Get, weights::Weight}; +use sp_std::marker::PhantomData; + +/// Weight functions for `pallet_assets`. +pub struct WeightInfo(PhantomData); +impl pallet_assets::WeightInfo for WeightInfo { + // Storage: Assets Asset (r:1 w:1) + // Storage: System Account (r:1 w:1) + fn create() -> Weight { + // Minimum execution time: 29_586 nanoseconds. + Weight::from_ref_time(30_912_000) + .saturating_add(T::DbWeight::get().reads(2)) + .saturating_add(T::DbWeight::get().writes(2)) + } + // Storage: Assets Asset (r:1 w:1) + fn force_create() -> Weight { + // Minimum execution time: 19_459 nanoseconds. + Weight::from_ref_time(20_044_000) + .saturating_add(T::DbWeight::get().reads(1)) + .saturating_add(T::DbWeight::get().writes(1)) + } + // Storage: Assets Asset (r:1 w:1) + fn start_destroy() -> Weight { + // Minimum execution time: 20_680 nanoseconds. + Weight::from_ref_time(21_158_000) + .saturating_add(T::DbWeight::get().reads(1)) + .saturating_add(T::DbWeight::get().writes(1)) + } + // Storage: Assets Asset (r:1 w:1) + // Storage: Assets Account (r:1 w:0) + // Storage: System Account (r:20 w:20) + /// The range of component `c` is `[0, 1000]`. + fn destroy_accounts(c: u32, ) -> Weight { + // Minimum execution time: 22_832 nanoseconds. + Weight::from_ref_time(23_422_000) + // Standard Error: 21_300 + .saturating_add(Weight::from_ref_time(16_189_943).saturating_mul(c.into())) + .saturating_add(T::DbWeight::get().reads(2)) + .saturating_add(T::DbWeight::get().reads((2_u64).saturating_mul(c.into()))) + .saturating_add(T::DbWeight::get().writes(1)) + .saturating_add(T::DbWeight::get().writes((2_u64).saturating_mul(c.into()))) + } + // Storage: Assets Asset (r:1 w:1) + // Storage: Assets Approvals (r:1 w:0) + /// The range of component `a` is `[0, 1000]`. + fn destroy_approvals(a: u32, ) -> Weight { + // Minimum execution time: 23_357 nanoseconds. + Weight::from_ref_time(24_217_000) + // Standard Error: 10_726 + .saturating_add(Weight::from_ref_time(15_540_997).saturating_mul(a.into())) + .saturating_add(T::DbWeight::get().reads(2)) + .saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(a.into()))) + .saturating_add(T::DbWeight::get().writes(1)) + .saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(a.into()))) + } + // Storage: Assets Asset (r:1 w:1) + // Storage: Assets Metadata (r:1 w:0) + fn finish_destroy() -> Weight { + // Minimum execution time: 20_453 nanoseconds. + Weight::from_ref_time(21_084_000) + .saturating_add(T::DbWeight::get().reads(2)) + .saturating_add(T::DbWeight::get().writes(1)) + } + // Storage: Assets Asset (r:1 w:1) + // Storage: Assets Account (r:1 w:1) + fn mint() -> Weight { + // Minimum execution time: 32_835 nanoseconds. + Weight::from_ref_time(33_768_000) + .saturating_add(T::DbWeight::get().reads(2)) + .saturating_add(T::DbWeight::get().writes(2)) + } + // Storage: Assets Asset (r:1 w:1) + // Storage: Assets Account (r:1 w:1) + fn burn() -> Weight { + // Minimum execution time: 39_968 nanoseconds. + Weight::from_ref_time(40_978_000) + .saturating_add(T::DbWeight::get().reads(2)) + .saturating_add(T::DbWeight::get().writes(2)) + } + // Storage: Assets Asset (r:1 w:1) + // Storage: Assets Account (r:2 w:2) + // Storage: System Account (r:1 w:1) + fn transfer() -> Weight { + // Minimum execution time: 52_107 nanoseconds. + Weight::from_ref_time(52_756_000) + .saturating_add(T::DbWeight::get().reads(4)) + .saturating_add(T::DbWeight::get().writes(4)) + } + // Storage: Assets Asset (r:1 w:1) + // Storage: Assets Account (r:2 w:2) + // Storage: System Account (r:1 w:1) + fn transfer_keep_alive() -> Weight { + // Minimum execution time: 45_373 nanoseconds. + Weight::from_ref_time(46_746_000) + .saturating_add(T::DbWeight::get().reads(4)) + .saturating_add(T::DbWeight::get().writes(4)) + } + // Storage: Assets Asset (r:1 w:1) + // Storage: Assets Account (r:2 w:2) + // Storage: System Account (r:1 w:1) + fn force_transfer() -> Weight { + // Minimum execution time: 52_133 nanoseconds. + Weight::from_ref_time(53_274_000) + .saturating_add(T::DbWeight::get().reads(4)) + .saturating_add(T::DbWeight::get().writes(4)) + } + // Storage: Assets Asset (r:1 w:0) + // Storage: Assets Account (r:1 w:1) + fn freeze() -> Weight { + // Minimum execution time: 23_108 nanoseconds. + Weight::from_ref_time(23_570_000) + .saturating_add(T::DbWeight::get().reads(2)) + .saturating_add(T::DbWeight::get().writes(1)) + } + // Storage: Assets Asset (r:1 w:0) + // Storage: Assets Account (r:1 w:1) + fn thaw() -> Weight { + // Minimum execution time: 23_212 nanoseconds. + Weight::from_ref_time(24_463_000) + .saturating_add(T::DbWeight::get().reads(2)) + .saturating_add(T::DbWeight::get().writes(1)) + } + // Storage: Assets Asset (r:1 w:1) + fn freeze_asset() -> Weight { + // Minimum execution time: 20_384 nanoseconds. + Weight::from_ref_time(21_427_000) + .saturating_add(T::DbWeight::get().reads(1)) + .saturating_add(T::DbWeight::get().writes(1)) + } + // Storage: Assets Asset (r:1 w:1) + fn thaw_asset() -> Weight { + // Minimum execution time: 19_725 nanoseconds. + Weight::from_ref_time(20_369_000) + .saturating_add(T::DbWeight::get().reads(1)) + .saturating_add(T::DbWeight::get().writes(1)) + } + // Storage: Assets Asset (r:1 w:1) + // Storage: Assets Metadata (r:1 w:0) + fn transfer_ownership() -> Weight { + // Minimum execution time: 20_697 nanoseconds. + Weight::from_ref_time(21_432_000) + .saturating_add(T::DbWeight::get().reads(2)) + .saturating_add(T::DbWeight::get().writes(1)) + } + // Storage: Assets Asset (r:1 w:1) + fn set_team() -> Weight { + // Minimum execution time: 20_329 nanoseconds. + Weight::from_ref_time(21_071_000) + .saturating_add(T::DbWeight::get().reads(1)) + .saturating_add(T::DbWeight::get().writes(1)) + } + // Storage: Assets Asset (r:1 w:0) + // 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: 33_504 nanoseconds. + Weight::from_ref_time(35_434_605) + // Standard Error: 2_253 + .saturating_add(Weight::from_ref_time(2_082).saturating_mul(s.into())) + .saturating_add(T::DbWeight::get().reads(2)) + .saturating_add(T::DbWeight::get().writes(1)) + } + // Storage: Assets Asset (r:1 w:0) + // Storage: Assets Metadata (r:1 w:1) + fn clear_metadata() -> Weight { + // Minimum execution time: 33_814 nanoseconds. + Weight::from_ref_time(35_235_000) + .saturating_add(T::DbWeight::get().reads(2)) + .saturating_add(T::DbWeight::get().writes(1)) + } + // Storage: Assets Asset (r:1 w:0) + // Storage: Assets Metadata (r:1 w:1) + /// 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: 20_320 nanoseconds. + Weight::from_ref_time(21_352_011) + // Standard Error: 947 + .saturating_add(Weight::from_ref_time(407).saturating_mul(n.into())) + // Standard Error: 947 + .saturating_add(Weight::from_ref_time(2_062).saturating_mul(s.into())) + .saturating_add(T::DbWeight::get().reads(2)) + .saturating_add(T::DbWeight::get().writes(1)) + } + // Storage: Assets Asset (r:1 w:0) + // Storage: Assets Metadata (r:1 w:1) + fn force_clear_metadata() -> Weight { + // Minimum execution time: 33_883 nanoseconds. + Weight::from_ref_time(35_243_000) + .saturating_add(T::DbWeight::get().reads(2)) + .saturating_add(T::DbWeight::get().writes(1)) + } + // Storage: Assets Asset (r:1 w:1) + fn force_asset_status() -> Weight { + // Minimum execution time: 19_417 nanoseconds. + Weight::from_ref_time(20_325_000) + .saturating_add(T::DbWeight::get().reads(1)) + .saturating_add(T::DbWeight::get().writes(1)) + } + // Storage: Assets Asset (r:1 w:1) + // Storage: Assets Approvals (r:1 w:1) + fn approve_transfer() -> Weight { + // Minimum execution time: 37_966 nanoseconds. + Weight::from_ref_time(39_065_000) + .saturating_add(T::DbWeight::get().reads(2)) + .saturating_add(T::DbWeight::get().writes(2)) + } + // Storage: Assets Asset (r:1 w:1) + // Storage: Assets Approvals (r:1 w:1) + // Storage: Assets Account (r:2 w:2) + // Storage: System Account (r:1 w:1) + fn transfer_approved() -> Weight { + // Minimum execution time: 68_099 nanoseconds. + Weight::from_ref_time(71_538_000) + .saturating_add(T::DbWeight::get().reads(5)) + .saturating_add(T::DbWeight::get().writes(5)) + } + // Storage: Assets Asset (r:1 w:1) + // Storage: Assets Approvals (r:1 w:1) + fn cancel_approval() -> Weight { + // Minimum execution time: 38_941 nanoseconds. + Weight::from_ref_time(40_690_000) + .saturating_add(T::DbWeight::get().reads(2)) + .saturating_add(T::DbWeight::get().writes(2)) + } + // Storage: Assets Asset (r:1 w:1) + // Storage: Assets Approvals (r:1 w:1) + fn force_cancel_approval() -> Weight { + // Minimum execution time: 40_410 nanoseconds. + Weight::from_ref_time(42_925_000) + .saturating_add(T::DbWeight::get().reads(2)) + .saturating_add(T::DbWeight::get().writes(2)) + } +} diff --git a/runtime/trappist/src/weights/pallet_balances.rs b/runtime/trappist/src/weights/pallet_balances.rs new file mode 100644 index 00000000..0b66a22f --- /dev/null +++ b/runtime/trappist/src/weights/pallet_balances.rs @@ -0,0 +1,101 @@ +// This file is part of Trappist. + +// Copyright (C) Parity Technologies (UK) Ltd. +// SPDX-License-Identifier: Apache-2.0 + +// Licensed under the Apache License, Version 2.0 (the "License"); +// 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 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +//! Autogenerated weights for `pallet_balances` +//! +//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev +//! DATE: 2023-06-13, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! HOSTNAME: `runner--ss9ysm1-project-647-concurrent-0`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz` +//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("trappist-dev"), DB CACHE: 1024 + +// Executed Command: +// ./target/production/trappist-node +// benchmark +// pallet +// --chain=trappist-dev +// --steps=50 +// --repeat=20 +// --no-storage-info +// --no-median-slopes +// --no-min-squares +// --pallet=pallet_balances +// --extrinsic=* +// --execution=wasm +// --wasm-execution=compiled +// --header=./templates/file_header.txt +// --output=./runtime/trappist/src/weights/ + +#![cfg_attr(rustfmt, rustfmt_skip)] +#![allow(unused_parens)] +#![allow(unused_imports)] + +use frame_support::{traits::Get, weights::Weight}; +use sp_std::marker::PhantomData; + +/// Weight functions for `pallet_balances`. +pub struct WeightInfo(PhantomData); +impl pallet_balances::WeightInfo for WeightInfo { + // Storage: System Account (r:1 w:1) + fn transfer() -> Weight { + // Minimum execution time: 46_436 nanoseconds. + Weight::from_ref_time(48_751_000) + .saturating_add(T::DbWeight::get().reads(1)) + .saturating_add(T::DbWeight::get().writes(1)) + } + // Storage: System Account (r:1 w:1) + fn transfer_keep_alive() -> Weight { + // Minimum execution time: 34_374 nanoseconds. + Weight::from_ref_time(35_515_000) + .saturating_add(T::DbWeight::get().reads(1)) + .saturating_add(T::DbWeight::get().writes(1)) + } + // Storage: System Account (r:1 w:1) + fn set_balance_creating() -> Weight { + // Minimum execution time: 24_682 nanoseconds. + Weight::from_ref_time(25_070_000) + .saturating_add(T::DbWeight::get().reads(1)) + .saturating_add(T::DbWeight::get().writes(1)) + } + // Storage: System Account (r:1 w:1) + fn set_balance_killing() -> Weight { + // Minimum execution time: 27_777 nanoseconds. + Weight::from_ref_time(30_162_000) + .saturating_add(T::DbWeight::get().reads(1)) + .saturating_add(T::DbWeight::get().writes(1)) + } + // Storage: System Account (r:2 w:2) + fn force_transfer() -> Weight { + // Minimum execution time: 44_979 nanoseconds. + Weight::from_ref_time(46_094_000) + .saturating_add(T::DbWeight::get().reads(2)) + .saturating_add(T::DbWeight::get().writes(2)) + } + // Storage: System Account (r:1 w:1) + fn transfer_all() -> Weight { + // Minimum execution time: 40_019 nanoseconds. + Weight::from_ref_time(40_806_000) + .saturating_add(T::DbWeight::get().reads(1)) + .saturating_add(T::DbWeight::get().writes(1)) + } + // Storage: System Account (r:1 w:1) + fn force_unreserve() -> Weight { + // Minimum execution time: 21_544 nanoseconds. + Weight::from_ref_time(22_193_000) + .saturating_add(T::DbWeight::get().reads(1)) + .saturating_add(T::DbWeight::get().writes(1)) + } +} diff --git a/runtime/trappist/src/weights/pallet_collator_selection.rs b/runtime/trappist/src/weights/pallet_collator_selection.rs new file mode 100644 index 00000000..e631558f --- /dev/null +++ b/runtime/trappist/src/weights/pallet_collator_selection.rs @@ -0,0 +1,127 @@ +// This file is part of Trappist. + +// Copyright (C) Parity Technologies (UK) Ltd. +// SPDX-License-Identifier: Apache-2.0 + +// Licensed under the Apache License, Version 2.0 (the "License"); +// 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 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +//! Autogenerated weights for `pallet_collator_selection` +//! +//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev +//! DATE: 2023-06-13, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! HOSTNAME: `runner--ss9ysm1-project-647-concurrent-0`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz` +//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("trappist-dev"), DB CACHE: 1024 + +// Executed Command: +// ./target/production/trappist-node +// benchmark +// pallet +// --chain=trappist-dev +// --steps=50 +// --repeat=20 +// --no-storage-info +// --no-median-slopes +// --no-min-squares +// --pallet=pallet_collator_selection +// --extrinsic=* +// --execution=wasm +// --wasm-execution=compiled +// --header=./templates/file_header.txt +// --output=./runtime/trappist/src/weights/ + +#![cfg_attr(rustfmt, rustfmt_skip)] +#![allow(unused_parens)] +#![allow(unused_imports)] + +use frame_support::{traits::Get, weights::Weight}; +use sp_std::marker::PhantomData; + +/// Weight functions for `pallet_collator_selection`. +pub struct WeightInfo(PhantomData); +impl pallet_collator_selection::WeightInfo for WeightInfo { + // Storage: Session NextKeys (r:1 w:0) + // Storage: CollatorSelection Invulnerables (r:0 w:1) + /// The range of component `b` is `[1, 100]`. + fn set_invulnerables(b: u32, ) -> Weight { + // Minimum execution time: 22_158 nanoseconds. + Weight::from_ref_time(22_705_267) + // Standard Error: 5_337 + .saturating_add(Weight::from_ref_time(2_868_358).saturating_mul(b.into())) + .saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(b.into()))) + .saturating_add(T::DbWeight::get().writes(1)) + } + // Storage: CollatorSelection DesiredCandidates (r:0 w:1) + fn set_desired_candidates() -> Weight { + // Minimum execution time: 15_283 nanoseconds. + Weight::from_ref_time(15_840_000) + .saturating_add(T::DbWeight::get().writes(1)) + } + // Storage: CollatorSelection CandidacyBond (r:0 w:1) + fn set_candidacy_bond() -> Weight { + // Minimum execution time: 15_299 nanoseconds. + Weight::from_ref_time(15_980_000) + .saturating_add(T::DbWeight::get().writes(1)) + } + // Storage: CollatorSelection Candidates (r:1 w:1) + // Storage: CollatorSelection DesiredCandidates (r:1 w:0) + // Storage: CollatorSelection Invulnerables (r:1 w:0) + // Storage: Session NextKeys (r:1 w:0) + // Storage: CollatorSelection CandidacyBond (r:1 w:0) + // Storage: CollatorSelection LastAuthoredBlock (r:0 w:1) + /// The range of component `c` is `[1, 999]`. + fn register_as_candidate(c: u32, ) -> Weight { + // Minimum execution time: 47_344 nanoseconds. + Weight::from_ref_time(58_716_141) + // Standard Error: 2_346 + .saturating_add(Weight::from_ref_time(228_686).saturating_mul(c.into())) + .saturating_add(T::DbWeight::get().reads(5)) + .saturating_add(T::DbWeight::get().writes(2)) + } + // Storage: CollatorSelection Candidates (r:1 w:1) + // Storage: CollatorSelection LastAuthoredBlock (r:0 w:1) + /// The range of component `c` is `[1, 1000]`. + fn leave_intent(c: u32, ) -> Weight { + // Minimum execution time: 33_172 nanoseconds. + Weight::from_ref_time(43_509_539) + // Standard Error: 2_110 + .saturating_add(Weight::from_ref_time(208_309).saturating_mul(c.into())) + .saturating_add(T::DbWeight::get().reads(1)) + .saturating_add(T::DbWeight::get().writes(2)) + } + // Storage: System Account (r:2 w:2) + // Storage: System BlockWeight (r:1 w:1) + // Storage: CollatorSelection LastAuthoredBlock (r:0 w:1) + fn note_author() -> Weight { + // Minimum execution time: 34_828 nanoseconds. + Weight::from_ref_time(36_333_000) + .saturating_add(T::DbWeight::get().reads(3)) + .saturating_add(T::DbWeight::get().writes(4)) + } + // Storage: CollatorSelection Candidates (r:1 w:1) + // Storage: CollatorSelection LastAuthoredBlock (r:1000 w:1) + // Storage: System Account (r:1 w:1) + // Storage: CollatorSelection Invulnerables (r:1 w:0) + // Storage: System BlockWeight (r:1 w:1) + /// The range of component `r` is `[1, 1000]`. + /// The range of component `c` is `[1, 1000]`. + fn new_session(_r: u32, c: u32, ) -> Weight { + // Minimum execution time: 17_940 nanoseconds. + Weight::from_ref_time(18_326_000) + // Standard Error: 832_845 + .saturating_add(Weight::from_ref_time(30_935_177).saturating_mul(c.into())) + .saturating_add(T::DbWeight::get().reads(4)) + .saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(c.into()))) + .saturating_add(T::DbWeight::get().writes(1)) + .saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(c.into()))) + } +} diff --git a/runtime/trappist/src/weights/pallet_collective.rs b/runtime/trappist/src/weights/pallet_collective.rs new file mode 100644 index 00000000..c81d39ad --- /dev/null +++ b/runtime/trappist/src/weights/pallet_collective.rs @@ -0,0 +1,215 @@ +// This file is part of Trappist. + +// Copyright (C) Parity Technologies (UK) Ltd. +// SPDX-License-Identifier: Apache-2.0 + +// Licensed under the Apache License, Version 2.0 (the "License"); +// 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 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +//! Autogenerated weights for `pallet_collective` +//! +//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev +//! DATE: 2023-06-13, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! HOSTNAME: `runner--ss9ysm1-project-647-concurrent-0`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz` +//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("trappist-dev"), DB CACHE: 1024 + +// Executed Command: +// ./target/production/trappist-node +// benchmark +// pallet +// --chain=trappist-dev +// --steps=50 +// --repeat=20 +// --no-storage-info +// --no-median-slopes +// --no-min-squares +// --pallet=pallet_collective +// --extrinsic=* +// --execution=wasm +// --wasm-execution=compiled +// --header=./templates/file_header.txt +// --output=./runtime/trappist/src/weights/ + +#![cfg_attr(rustfmt, rustfmt_skip)] +#![allow(unused_parens)] +#![allow(unused_imports)] + +use frame_support::{traits::Get, weights::Weight}; +use sp_std::marker::PhantomData; + +/// Weight functions for `pallet_collective`. +pub struct WeightInfo(PhantomData); +impl pallet_collective::WeightInfo for WeightInfo { + // Storage: Council Members (r:1 w:1) + // Storage: Council Proposals (r:1 w:0) + // Storage: Council Prime (r:0 w:1) + // Storage: Council Voting (r:100 w:100) + /// The range of component `m` is `[0, 100]`. + /// The range of component `n` is `[0, 100]`. + /// The range of component `p` is `[0, 100]`. + fn set_members(m: u32, _n: u32, p: u32, ) -> Weight { + // Minimum execution time: 18_264 nanoseconds. + Weight::from_ref_time(18_415_000) + // Standard Error: 57_858 + .saturating_add(Weight::from_ref_time(4_282_800).saturating_mul(m.into())) + // Standard Error: 57_858 + .saturating_add(Weight::from_ref_time(7_626_810).saturating_mul(p.into())) + .saturating_add(T::DbWeight::get().reads(2)) + .saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(p.into()))) + .saturating_add(T::DbWeight::get().writes(2)) + .saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(p.into()))) + } + // Storage: Council Members (r:1 w:0) + // Storage: LockdownMode LockdownModeStatus (r:1 w:0) + /// The range of component `b` is `[2, 1024]`. + /// The range of component `m` is `[1, 100]`. + fn execute(b: u32, m: u32, ) -> Weight { + // Minimum execution time: 24_675 nanoseconds. + Weight::from_ref_time(24_640_855) + // Standard Error: 54 + .saturating_add(Weight::from_ref_time(1_775).saturating_mul(b.into())) + // Standard Error: 564 + .saturating_add(Weight::from_ref_time(12_193).saturating_mul(m.into())) + .saturating_add(T::DbWeight::get().reads(2)) + } + // Storage: Council Members (r:1 w:0) + // Storage: Council ProposalOf (r:1 w:0) + // Storage: LockdownMode LockdownModeStatus (r:1 w:0) + /// The range of component `b` is `[2, 1024]`. + /// The range of component `m` is `[1, 100]`. + fn propose_execute(b: u32, m: u32, ) -> Weight { + // Minimum execution time: 27_361 nanoseconds. + Weight::from_ref_time(26_786_766) + // Standard Error: 75 + .saturating_add(Weight::from_ref_time(1_730).saturating_mul(b.into())) + // Standard Error: 780 + .saturating_add(Weight::from_ref_time(20_446).saturating_mul(m.into())) + .saturating_add(T::DbWeight::get().reads(3)) + } + // Storage: Council Members (r:1 w:0) + // Storage: Council ProposalOf (r:1 w:1) + // Storage: Council Proposals (r:1 w:1) + // Storage: Council ProposalCount (r:1 w:1) + // Storage: Council Voting (r:0 w:1) + /// The range of component `b` is `[2, 1024]`. + /// The range of component `m` is `[2, 100]`. + /// The range of component `p` is `[1, 100]`. + fn propose_proposed(b: u32, m: u32, p: u32, ) -> Weight { + // Minimum execution time: 30_070 nanoseconds. + Weight::from_ref_time(28_074_967) + // Standard Error: 230 + .saturating_add(Weight::from_ref_time(6_096).saturating_mul(b.into())) + // Standard Error: 2_403 + .saturating_add(Weight::from_ref_time(23_232).saturating_mul(m.into())) + // Standard Error: 2_373 + .saturating_add(Weight::from_ref_time(236_364).saturating_mul(p.into())) + .saturating_add(T::DbWeight::get().reads(4)) + .saturating_add(T::DbWeight::get().writes(4)) + } + // Storage: Council Members (r:1 w:0) + // Storage: Council Voting (r:1 w:1) + /// The range of component `m` is `[5, 100]`. + fn vote(m: u32, ) -> Weight { + // Minimum execution time: 37_389 nanoseconds. + Weight::from_ref_time(40_410_429) + // Standard Error: 2_754 + .saturating_add(Weight::from_ref_time(60_032).saturating_mul(m.into())) + .saturating_add(T::DbWeight::get().reads(2)) + .saturating_add(T::DbWeight::get().writes(1)) + } + // Storage: Council Voting (r:1 w:1) + // Storage: Council Members (r:1 w:0) + // Storage: Council Proposals (r:1 w:1) + // Storage: Council ProposalOf (r:0 w:1) + /// The range of component `m` is `[4, 100]`. + /// The range of component `p` is `[1, 100]`. + fn close_early_disapproved(m: u32, p: u32, ) -> Weight { + // Minimum execution time: 33_120 nanoseconds. + Weight::from_ref_time(34_103_273) + // Standard Error: 2_119 + .saturating_add(Weight::from_ref_time(33_824).saturating_mul(m.into())) + // Standard Error: 2_066 + .saturating_add(Weight::from_ref_time(207_202).saturating_mul(p.into())) + .saturating_add(T::DbWeight::get().reads(3)) + .saturating_add(T::DbWeight::get().writes(3)) + } + // Storage: Council Voting (r:1 w:1) + // Storage: Council Members (r:1 w:0) + // Storage: Council ProposalOf (r:1 w:1) + // Storage: LockdownMode LockdownModeStatus (r:1 w:0) + // Storage: Council Proposals (r:1 w:1) + /// The range of component `b` is `[2, 1024]`. + /// The range of component `m` is `[4, 100]`. + /// The range of component `p` is `[1, 100]`. + fn close_early_approved(b: u32, m: u32, p: u32, ) -> Weight { + // Minimum execution time: 48_554 nanoseconds. + Weight::from_ref_time(43_695_638) + // Standard Error: 268 + .saturating_add(Weight::from_ref_time(5_600).saturating_mul(b.into())) + // Standard Error: 2_841 + .saturating_add(Weight::from_ref_time(50_514).saturating_mul(m.into())) + // Standard Error: 2_769 + .saturating_add(Weight::from_ref_time(277_281).saturating_mul(p.into())) + .saturating_add(T::DbWeight::get().reads(5)) + .saturating_add(T::DbWeight::get().writes(3)) + } + // Storage: Council Voting (r:1 w:1) + // Storage: Council Members (r:1 w:0) + // Storage: Council Prime (r:1 w:0) + // Storage: Council Proposals (r:1 w:1) + // Storage: Council ProposalOf (r:0 w:1) + /// The range of component `m` is `[4, 100]`. + /// The range of component `p` is `[1, 100]`. + fn close_disapproved(m: u32, p: u32, ) -> Weight { + // Minimum execution time: 35_536 nanoseconds. + Weight::from_ref_time(36_415_943) + // Standard Error: 2_208 + .saturating_add(Weight::from_ref_time(42_634).saturating_mul(m.into())) + // Standard Error: 2_153 + .saturating_add(Weight::from_ref_time(209_451).saturating_mul(p.into())) + .saturating_add(T::DbWeight::get().reads(4)) + .saturating_add(T::DbWeight::get().writes(3)) + } + // Storage: Council Voting (r:1 w:1) + // Storage: Council Members (r:1 w:0) + // Storage: Council Prime (r:1 w:0) + // Storage: Council ProposalOf (r:1 w:1) + // Storage: LockdownMode LockdownModeStatus (r:1 w:0) + // Storage: Council Proposals (r:1 w:1) + /// The range of component `b` is `[2, 1024]`. + /// The range of component `m` is `[4, 100]`. + /// The range of component `p` is `[1, 100]`. + fn close_approved(b: u32, m: u32, p: u32, ) -> Weight { + // Minimum execution time: 50_514 nanoseconds. + Weight::from_ref_time(47_888_819) + // Standard Error: 261 + .saturating_add(Weight::from_ref_time(4_649).saturating_mul(b.into())) + // Standard Error: 2_762 + .saturating_add(Weight::from_ref_time(44_598).saturating_mul(m.into())) + // Standard Error: 2_692 + .saturating_add(Weight::from_ref_time(274_206).saturating_mul(p.into())) + .saturating_add(T::DbWeight::get().reads(6)) + .saturating_add(T::DbWeight::get().writes(3)) + } + // Storage: Council Proposals (r:1 w:1) + // Storage: Council Voting (r:0 w:1) + // Storage: Council ProposalOf (r:0 w:1) + /// The range of component `p` is `[1, 100]`. + fn disapprove_proposal(p: u32, ) -> Weight { + // Minimum execution time: 21_536 nanoseconds. + Weight::from_ref_time(23_911_071) + // Standard Error: 1_956 + .saturating_add(Weight::from_ref_time(192_358).saturating_mul(p.into())) + .saturating_add(T::DbWeight::get().reads(1)) + .saturating_add(T::DbWeight::get().writes(3)) + } +} diff --git a/runtime/trappist/src/weights/pallet_contracts.rs b/runtime/trappist/src/weights/pallet_contracts.rs new file mode 100644 index 00000000..3d999d1f --- /dev/null +++ b/runtime/trappist/src/weights/pallet_contracts.rs @@ -0,0 +1,1323 @@ +// This file is part of Trappist. + +// Copyright (C) Parity Technologies (UK) Ltd. +// SPDX-License-Identifier: Apache-2.0 + +// Licensed under the Apache License, Version 2.0 (the "License"); +// 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 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +//! Autogenerated weights for `pallet_contracts` +//! +//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev +//! DATE: 2023-06-13, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! HOSTNAME: `runner--ss9ysm1-project-647-concurrent-0`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz` +//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("trappist-dev"), DB CACHE: 1024 + +// Executed Command: +// ./target/production/trappist-node +// benchmark +// pallet +// --chain=trappist-dev +// --steps=50 +// --repeat=20 +// --no-storage-info +// --no-median-slopes +// --no-min-squares +// --pallet=pallet_contracts +// --extrinsic=* +// --execution=wasm +// --wasm-execution=compiled +// --header=./templates/file_header.txt +// --output=./runtime/trappist/src/weights/ + +#![cfg_attr(rustfmt, rustfmt_skip)] +#![allow(unused_parens)] +#![allow(unused_imports)] + +use frame_support::{traits::Get, weights::Weight}; +use sp_std::marker::PhantomData; + +/// Weight functions for `pallet_contracts`. +pub struct WeightInfo(PhantomData); +impl pallet_contracts::weights::WeightInfo for WeightInfo { + // Storage: Contracts DeletionQueue (r:1 w:0) + fn on_process_deletion_queue_batch() -> Weight { + // Minimum execution time: 2_828 nanoseconds. + Weight::from_ref_time(2_924_000) + .saturating_add(T::DbWeight::get().reads(1)) + } + // Storage: Skipped Metadata (r:0 w:0) + /// The range of component `k` is `[0, 1024]`. + fn on_initialize_per_trie_key(k: u32, ) -> Weight { + // Minimum execution time: 13_692 nanoseconds. + Weight::from_ref_time(14_237_000) + // Standard Error: 1_409 + .saturating_add(Weight::from_ref_time(1_205_391).saturating_mul(k.into())) + .saturating_add(T::DbWeight::get().reads(1)) + .saturating_add(T::DbWeight::get().writes(1)) + .saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(k.into()))) + } + // Storage: Contracts DeletionQueue (r:1 w:0) + /// The range of component `q` is `[0, 1024]`. + fn on_initialize_per_queue_item(q: u32, ) -> Weight { + // Minimum execution time: 2_874 nanoseconds. + Weight::from_ref_time(45_838_826) + // Standard Error: 6_276 + .saturating_add(Weight::from_ref_time(1_329_828).saturating_mul(q.into())) + .saturating_add(T::DbWeight::get().reads(1)) + .saturating_add(T::DbWeight::get().writes(1)) + } + // Storage: Contracts PristineCode (r:1 w:0) + // Storage: Contracts CodeStorage (r:0 w:1) + /// The range of component `c` is `[0, 64226]`. + fn reinstrument(c: u32, ) -> Weight { + // Minimum execution time: 28_464 nanoseconds. + Weight::from_ref_time(22_590_735) + // Standard Error: 49 + .saturating_add(Weight::from_ref_time(53_185).saturating_mul(c.into())) + .saturating_add(T::DbWeight::get().reads(1)) + .saturating_add(T::DbWeight::get().writes(1)) + } + // Storage: Contracts ContractInfoOf (r:1 w:1) + // Storage: Contracts CodeStorage (r:1 w:0) + // Storage: Timestamp Now (r:1 w:0) + // Storage: System Account (r:1 w:1) + // Storage: System EventTopics (r:2 w:2) + /// The range of component `c` is `[0, 131072]`. + fn call_with_code_per_byte(c: u32, ) -> Weight { + // Minimum execution time: 345_883 nanoseconds. + Weight::from_ref_time(387_156_287) + // Standard Error: 26 + .saturating_add(Weight::from_ref_time(33_992).saturating_mul(c.into())) + .saturating_add(T::DbWeight::get().reads(6)) + .saturating_add(T::DbWeight::get().writes(4)) + } + // Storage: Contracts CodeStorage (r:1 w:1) + // Storage: Contracts Nonce (r:1 w:1) + // Storage: Contracts ContractInfoOf (r:1 w:1) + // Storage: Timestamp Now (r:1 w:0) + // Storage: System Account (r:1 w:1) + // Storage: System EventTopics (r:3 w:3) + // Storage: Contracts PristineCode (r:0 w:1) + // Storage: Contracts OwnerInfoOf (r:0 w:1) + /// The range of component `c` is `[0, 64226]`. + /// The range of component `i` is `[0, 1048576]`. + /// The range of component `s` is `[0, 1048576]`. + fn instantiate_with_code(c: u32, i: u32, s: u32, ) -> Weight { + // Minimum execution time: 5_373_986 nanoseconds. + Weight::from_ref_time(177_167_951) + // Standard Error: 482 + .saturating_add(Weight::from_ref_time(112_352).saturating_mul(c.into())) + // Standard Error: 29 + .saturating_add(Weight::from_ref_time(2_371).saturating_mul(i.into())) + // Standard Error: 29 + .saturating_add(Weight::from_ref_time(2_443).saturating_mul(s.into())) + .saturating_add(T::DbWeight::get().reads(8)) + .saturating_add(T::DbWeight::get().writes(9)) + } + // Storage: Contracts CodeStorage (r:1 w:1) + // Storage: Contracts Nonce (r:1 w:1) + // Storage: Contracts ContractInfoOf (r:1 w:1) + // Storage: Timestamp Now (r:1 w:0) + // Storage: System Account (r:1 w:1) + // Storage: Contracts OwnerInfoOf (r:1 w:1) + // Storage: System EventTopics (r:2 w:2) + /// The range of component `i` is `[0, 1048576]`. + /// The range of component `s` is `[0, 1048576]`. + fn instantiate(i: u32, s: u32, ) -> Weight { + // Minimum execution time: 2_441_695 nanoseconds. + Weight::from_ref_time(482_237_709) + // Standard Error: 25 + .saturating_add(Weight::from_ref_time(1_837).saturating_mul(i.into())) + // Standard Error: 25 + .saturating_add(Weight::from_ref_time(2_404).saturating_mul(s.into())) + .saturating_add(T::DbWeight::get().reads(8)) + .saturating_add(T::DbWeight::get().writes(7)) + } + // Storage: Contracts ContractInfoOf (r:1 w:1) + // Storage: Contracts CodeStorage (r:1 w:0) + // Storage: Timestamp Now (r:1 w:0) + // Storage: System Account (r:1 w:1) + // Storage: System EventTopics (r:2 w:2) + fn call() -> Weight { + // Minimum execution time: 154_012 nanoseconds. + Weight::from_ref_time(163_140_000) + .saturating_add(T::DbWeight::get().reads(6)) + .saturating_add(T::DbWeight::get().writes(4)) + } + // Storage: Contracts CodeStorage (r:1 w:1) + // Storage: System EventTopics (r:1 w:1) + // Storage: Contracts PristineCode (r:0 w:1) + // Storage: Contracts OwnerInfoOf (r:0 w:1) + /// The range of component `c` is `[0, 64226]`. + fn upload_code(c: u32, ) -> Weight { + // Minimum execution time: 346_804 nanoseconds. + Weight::from_ref_time(346_661_712) + // Standard Error: 191 + .saturating_add(Weight::from_ref_time(106_670).saturating_mul(c.into())) + .saturating_add(T::DbWeight::get().reads(2)) + .saturating_add(T::DbWeight::get().writes(4)) + } + // Storage: Contracts OwnerInfoOf (r:1 w:1) + // Storage: System EventTopics (r:1 w:1) + // Storage: Contracts CodeStorage (r:0 w:1) + // Storage: Contracts PristineCode (r:0 w:1) + fn remove_code() -> Weight { + // Minimum execution time: 38_396 nanoseconds. + Weight::from_ref_time(39_400_000) + .saturating_add(T::DbWeight::get().reads(2)) + .saturating_add(T::DbWeight::get().writes(4)) + } + // Storage: Contracts ContractInfoOf (r:1 w:1) + // Storage: Contracts OwnerInfoOf (r:2 w:2) + // Storage: System EventTopics (r:3 w:3) + fn set_code() -> Weight { + // Minimum execution time: 40_761 nanoseconds. + Weight::from_ref_time(43_139_000) + .saturating_add(T::DbWeight::get().reads(6)) + .saturating_add(T::DbWeight::get().writes(6)) + } + // Storage: System Account (r:1 w:0) + // Storage: Contracts ContractInfoOf (r:1 w:1) + // Storage: Contracts CodeStorage (r:1 w:0) + // Storage: Timestamp Now (r:1 w:0) + // Storage: System EventTopics (r:2 w:2) + /// The range of component `r` is `[0, 20]`. + fn seal_caller(r: u32, ) -> Weight { + // Minimum execution time: 331_514 nanoseconds. + Weight::from_ref_time(358_230_534) + // Standard Error: 43_545 + .saturating_add(Weight::from_ref_time(19_014_161).saturating_mul(r.into())) + .saturating_add(T::DbWeight::get().reads(6)) + .saturating_add(T::DbWeight::get().writes(3)) + } + // Storage: System Account (r:1 w:0) + // Storage: Contracts ContractInfoOf (r:1 w:1) + // Storage: Contracts CodeStorage (r:1 w:0) + // Storage: Timestamp Now (r:1 w:0) + // Storage: System EventTopics (r:2 w:2) + /// The range of component `r` is `[0, 20]`. + fn seal_is_contract(r: u32, ) -> Weight { + // Minimum execution time: 333_349 nanoseconds. + Weight::from_ref_time(299_776_233) + // Standard Error: 976_820 + .saturating_add(Weight::from_ref_time(228_264_263).saturating_mul(r.into())) + .saturating_add(T::DbWeight::get().reads(6)) + .saturating_add(T::DbWeight::get().reads((80_u64).saturating_mul(r.into()))) + .saturating_add(T::DbWeight::get().writes(3)) + } + // Storage: System Account (r:1 w:0) + // Storage: Contracts ContractInfoOf (r:1 w:1) + // Storage: Contracts CodeStorage (r:1 w:0) + // Storage: Timestamp Now (r:1 w:0) + // Storage: System EventTopics (r:2 w:2) + /// The range of component `r` is `[0, 20]`. + fn seal_code_hash(r: u32, ) -> Weight { + // Minimum execution time: 339_068 nanoseconds. + Weight::from_ref_time(301_489_666) + // Standard Error: 1_109_779 + .saturating_add(Weight::from_ref_time(288_173_840).saturating_mul(r.into())) + .saturating_add(T::DbWeight::get().reads(6)) + .saturating_add(T::DbWeight::get().reads((80_u64).saturating_mul(r.into()))) + .saturating_add(T::DbWeight::get().writes(3)) + } + // Storage: System Account (r:1 w:0) + // Storage: Contracts ContractInfoOf (r:1 w:1) + // Storage: Contracts CodeStorage (r:1 w:0) + // Storage: Timestamp Now (r:1 w:0) + // Storage: System EventTopics (r:2 w:2) + /// The range of component `r` is `[0, 20]`. + fn seal_own_code_hash(r: u32, ) -> Weight { + // Minimum execution time: 333_581 nanoseconds. + Weight::from_ref_time(360_997_101) + // Standard Error: 50_806 + .saturating_add(Weight::from_ref_time(23_528_826).saturating_mul(r.into())) + .saturating_add(T::DbWeight::get().reads(6)) + .saturating_add(T::DbWeight::get().writes(3)) + } + // Storage: System Account (r:1 w:0) + // Storage: Contracts ContractInfoOf (r:1 w:1) + // Storage: Contracts CodeStorage (r:1 w:0) + // Storage: Timestamp Now (r:1 w:0) + // Storage: System EventTopics (r:2 w:2) + /// The range of component `r` is `[0, 20]`. + fn seal_caller_is_origin(r: u32, ) -> Weight { + // Minimum execution time: 333_189 nanoseconds. + Weight::from_ref_time(359_201_103) + // Standard Error: 39_244 + .saturating_add(Weight::from_ref_time(12_020_921).saturating_mul(r.into())) + .saturating_add(T::DbWeight::get().reads(6)) + .saturating_add(T::DbWeight::get().writes(3)) + } + // Storage: System Account (r:1 w:0) + // Storage: Contracts ContractInfoOf (r:1 w:1) + // Storage: Contracts CodeStorage (r:1 w:0) + // Storage: Timestamp Now (r:1 w:0) + // Storage: System EventTopics (r:2 w:2) + /// The range of component `r` is `[0, 20]`. + fn seal_address(r: u32, ) -> Weight { + // Minimum execution time: 332_523 nanoseconds. + Weight::from_ref_time(360_937_364) + // Standard Error: 46_746 + .saturating_add(Weight::from_ref_time(18_934_848).saturating_mul(r.into())) + .saturating_add(T::DbWeight::get().reads(6)) + .saturating_add(T::DbWeight::get().writes(3)) + } + // Storage: System Account (r:1 w:0) + // Storage: Contracts ContractInfoOf (r:1 w:1) + // Storage: Contracts CodeStorage (r:1 w:0) + // Storage: Timestamp Now (r:1 w:0) + // Storage: System EventTopics (r:2 w:2) + /// The range of component `r` is `[0, 20]`. + fn seal_gas_left(r: u32, ) -> Weight { + // Minimum execution time: 334_389 nanoseconds. + Weight::from_ref_time(361_102_577) + // Standard Error: 52_170 + .saturating_add(Weight::from_ref_time(18_763_941).saturating_mul(r.into())) + .saturating_add(T::DbWeight::get().reads(6)) + .saturating_add(T::DbWeight::get().writes(3)) + } + // Storage: System Account (r:1 w:0) + // Storage: Contracts ContractInfoOf (r:1 w:1) + // Storage: Contracts CodeStorage (r:1 w:0) + // Storage: Timestamp Now (r:1 w:0) + // Storage: System EventTopics (r:2 w:2) + /// The range of component `r` is `[0, 20]`. + fn seal_balance(r: u32, ) -> Weight { + // Minimum execution time: 330_208 nanoseconds. + Weight::from_ref_time(362_495_614) + // Standard Error: 66_486 + .saturating_add(Weight::from_ref_time(103_875_721).saturating_mul(r.into())) + .saturating_add(T::DbWeight::get().reads(7)) + .saturating_add(T::DbWeight::get().writes(3)) + } + // Storage: System Account (r:1 w:0) + // Storage: Contracts ContractInfoOf (r:1 w:1) + // Storage: Contracts CodeStorage (r:1 w:0) + // Storage: Timestamp Now (r:1 w:0) + // Storage: System EventTopics (r:2 w:2) + /// The range of component `r` is `[0, 20]`. + fn seal_value_transferred(r: u32, ) -> Weight { + // Minimum execution time: 316_757 nanoseconds. + Weight::from_ref_time(358_938_656) + // Standard Error: 48_564 + .saturating_add(Weight::from_ref_time(18_784_608).saturating_mul(r.into())) + .saturating_add(T::DbWeight::get().reads(6)) + .saturating_add(T::DbWeight::get().writes(3)) + } + // Storage: System Account (r:1 w:0) + // Storage: Contracts ContractInfoOf (r:1 w:1) + // Storage: Contracts CodeStorage (r:1 w:0) + // Storage: Timestamp Now (r:1 w:0) + // Storage: System EventTopics (r:2 w:2) + /// The range of component `r` is `[0, 20]`. + fn seal_minimum_balance(r: u32, ) -> Weight { + // Minimum execution time: 330_558 nanoseconds. + Weight::from_ref_time(360_585_391) + // Standard Error: 48_590 + .saturating_add(Weight::from_ref_time(18_498_845).saturating_mul(r.into())) + .saturating_add(T::DbWeight::get().reads(6)) + .saturating_add(T::DbWeight::get().writes(3)) + } + // Storage: System Account (r:1 w:0) + // Storage: Contracts ContractInfoOf (r:1 w:1) + // Storage: Contracts CodeStorage (r:1 w:0) + // Storage: Timestamp Now (r:1 w:0) + // Storage: System EventTopics (r:2 w:2) + /// The range of component `r` is `[0, 20]`. + fn seal_block_number(r: u32, ) -> Weight { + // Minimum execution time: 333_533 nanoseconds. + Weight::from_ref_time(358_908_323) + // Standard Error: 47_648 + .saturating_add(Weight::from_ref_time(18_547_322).saturating_mul(r.into())) + .saturating_add(T::DbWeight::get().reads(6)) + .saturating_add(T::DbWeight::get().writes(3)) + } + // Storage: System Account (r:1 w:0) + // Storage: Contracts ContractInfoOf (r:1 w:1) + // Storage: Contracts CodeStorage (r:1 w:0) + // Storage: Timestamp Now (r:1 w:0) + // Storage: System EventTopics (r:2 w:2) + /// The range of component `r` is `[0, 20]`. + fn seal_now(r: u32, ) -> Weight { + // Minimum execution time: 333_250 nanoseconds. + Weight::from_ref_time(358_762_123) + // Standard Error: 46_158 + .saturating_add(Weight::from_ref_time(18_921_382).saturating_mul(r.into())) + .saturating_add(T::DbWeight::get().reads(6)) + .saturating_add(T::DbWeight::get().writes(3)) + } + // Storage: System Account (r:1 w:0) + // Storage: Contracts ContractInfoOf (r:1 w:1) + // Storage: Contracts CodeStorage (r:1 w:0) + // Storage: Timestamp Now (r:1 w:0) + // Storage: System EventTopics (r:2 w:2) + // Storage: TransactionPayment NextFeeMultiplier (r:1 w:0) + /// The range of component `r` is `[0, 20]`. + fn seal_weight_to_fee(r: u32, ) -> Weight { + // Minimum execution time: 335_649 nanoseconds. + Weight::from_ref_time(366_767_937) + // Standard Error: 54_362 + .saturating_add(Weight::from_ref_time(94_495_989).saturating_mul(r.into())) + .saturating_add(T::DbWeight::get().reads(7)) + .saturating_add(T::DbWeight::get().writes(3)) + } + // Storage: System Account (r:1 w:0) + // Storage: Contracts ContractInfoOf (r:1 w:1) + // Storage: Contracts CodeStorage (r:1 w:0) + // Storage: Timestamp Now (r:1 w:0) + // Storage: System EventTopics (r:2 w:2) + /// The range of component `r` is `[0, 20]`. + fn seal_gas(r: u32, ) -> Weight { + // Minimum execution time: 141_680 nanoseconds. + Weight::from_ref_time(151_350_652) + // Standard Error: 26_982 + .saturating_add(Weight::from_ref_time(9_020_907).saturating_mul(r.into())) + .saturating_add(T::DbWeight::get().reads(6)) + .saturating_add(T::DbWeight::get().writes(3)) + } + // Storage: System Account (r:1 w:0) + // Storage: Contracts ContractInfoOf (r:1 w:1) + // Storage: Contracts CodeStorage (r:1 w:0) + // Storage: Timestamp Now (r:1 w:0) + // Storage: System EventTopics (r:2 w:2) + /// The range of component `r` is `[0, 20]`. + fn seal_input(r: u32, ) -> Weight { + // Minimum execution time: 332_533 nanoseconds. + Weight::from_ref_time(359_801_127) + // Standard Error: 40_982 + .saturating_add(Weight::from_ref_time(15_949_598).saturating_mul(r.into())) + .saturating_add(T::DbWeight::get().reads(6)) + .saturating_add(T::DbWeight::get().writes(3)) + } + // Storage: System Account (r:1 w:0) + // Storage: Contracts ContractInfoOf (r:1 w:1) + // Storage: Contracts CodeStorage (r:1 w:0) + // Storage: Timestamp Now (r:1 w:0) + // Storage: System EventTopics (r:2 w:2) + /// The range of component `n` is `[0, 1024]`. + fn seal_input_per_kb(n: u32, ) -> Weight { + // Minimum execution time: 349_567 nanoseconds. + Weight::from_ref_time(362_955_939) + // Standard Error: 6_721 + .saturating_add(Weight::from_ref_time(12_724_449).saturating_mul(n.into())) + .saturating_add(T::DbWeight::get().reads(6)) + .saturating_add(T::DbWeight::get().writes(3)) + } + // Storage: System Account (r:1 w:0) + // Storage: Contracts ContractInfoOf (r:1 w:1) + // Storage: Contracts CodeStorage (r:1 w:0) + // Storage: Timestamp Now (r:1 w:0) + // Storage: System EventTopics (r:2 w:2) + /// The range of component `r` is `[0, 1]`. + fn seal_return(r: u32, ) -> Weight { + // Minimum execution time: 321_174 nanoseconds. + Weight::from_ref_time(354_937_502) + // Standard Error: 1_132_730 + .saturating_add(Weight::from_ref_time(1_995_597).saturating_mul(r.into())) + .saturating_add(T::DbWeight::get().reads(6)) + .saturating_add(T::DbWeight::get().writes(3)) + } + // Storage: System Account (r:1 w:0) + // Storage: Contracts ContractInfoOf (r:1 w:1) + // Storage: Contracts CodeStorage (r:1 w:0) + // Storage: Timestamp Now (r:1 w:0) + // Storage: System EventTopics (r:2 w:2) + /// The range of component `n` is `[0, 1024]`. + fn seal_return_per_kb(n: u32, ) -> Weight { + // Minimum execution time: 335_964 nanoseconds. + Weight::from_ref_time(355_584_290) + // Standard Error: 917 + .saturating_add(Weight::from_ref_time(247_691).saturating_mul(n.into())) + .saturating_add(T::DbWeight::get().reads(6)) + .saturating_add(T::DbWeight::get().writes(3)) + } + // Storage: System Account (r:1 w:0) + // Storage: Contracts ContractInfoOf (r:1 w:1) + // Storage: Contracts CodeStorage (r:1 w:0) + // Storage: Timestamp Now (r:1 w:0) + // Storage: System EventTopics (r:2 w:2) + // Storage: Contracts DeletionQueue (r:1 w:1) + // Storage: Contracts OwnerInfoOf (r:1 w:1) + /// The range of component `r` is `[0, 1]`. + fn seal_terminate(r: u32, ) -> Weight { + // Minimum execution time: 319_622 nanoseconds. + Weight::from_ref_time(358_845_393) + // Standard Error: 1_284_015 + .saturating_add(Weight::from_ref_time(61_344_806).saturating_mul(r.into())) + .saturating_add(T::DbWeight::get().reads(6)) + .saturating_add(T::DbWeight::get().reads((5_u64).saturating_mul(r.into()))) + .saturating_add(T::DbWeight::get().writes(3)) + .saturating_add(T::DbWeight::get().writes((6_u64).saturating_mul(r.into()))) + } + // Storage: System Account (r:1 w:0) + // Storage: Contracts ContractInfoOf (r:1 w:1) + // Storage: Contracts CodeStorage (r:1 w:0) + // Storage: Timestamp Now (r:1 w:0) + // Storage: System EventTopics (r:2 w:2) + // Storage: RandomnessCollectiveFlip RandomMaterial (r:1 w:0) + /// The range of component `r` is `[0, 20]`. + fn seal_random(r: u32, ) -> Weight { + // Minimum execution time: 340_362 nanoseconds. + Weight::from_ref_time(366_179_561) + // Standard Error: 77_685 + .saturating_add(Weight::from_ref_time(117_068_771).saturating_mul(r.into())) + .saturating_add(T::DbWeight::get().reads(7)) + .saturating_add(T::DbWeight::get().writes(3)) + } + // Storage: System Account (r:1 w:0) + // Storage: Contracts ContractInfoOf (r:1 w:1) + // Storage: Contracts CodeStorage (r:1 w:0) + // Storage: Timestamp Now (r:1 w:0) + // Storage: System EventTopics (r:2 w:2) + /// The range of component `r` is `[0, 20]`. + fn seal_deposit_event(r: u32, ) -> Weight { + // Minimum execution time: 314_564 nanoseconds. + Weight::from_ref_time(361_647_199) + // Standard Error: 109_559 + .saturating_add(Weight::from_ref_time(271_673_319).saturating_mul(r.into())) + .saturating_add(T::DbWeight::get().reads(6)) + .saturating_add(T::DbWeight::get().writes(3)) + } + // Storage: System Account (r:1 w:0) + // Storage: Contracts ContractInfoOf (r:1 w:1) + // Storage: Contracts CodeStorage (r:1 w:0) + // Storage: Timestamp Now (r:1 w:0) + // Storage: System EventTopics (r:2 w:2) + /// The range of component `t` is `[0, 4]`. + /// The range of component `n` is `[0, 16]`. + fn seal_deposit_event_per_topic_and_kb(t: u32, n: u32, ) -> Weight { + // Minimum execution time: 1_421_890 nanoseconds. + Weight::from_ref_time(624_950_347) + // Standard Error: 828_224 + .saturating_add(Weight::from_ref_time(208_566_998).saturating_mul(t.into())) + // Standard Error: 227_470 + .saturating_add(Weight::from_ref_time(79_160_997).saturating_mul(n.into())) + .saturating_add(T::DbWeight::get().reads(6)) + .saturating_add(T::DbWeight::get().reads((80_u64).saturating_mul(t.into()))) + .saturating_add(T::DbWeight::get().writes(3)) + .saturating_add(T::DbWeight::get().writes((80_u64).saturating_mul(t.into()))) + } + // Storage: System Account (r:1 w:0) + // Storage: Contracts ContractInfoOf (r:1 w:1) + // Storage: Contracts CodeStorage (r:1 w:0) + // Storage: Timestamp Now (r:1 w:0) + // Storage: System EventTopics (r:2 w:2) + /// The range of component `r` is `[0, 20]`. + fn seal_debug_message(r: u32, ) -> Weight { + // Minimum execution time: 155_764 nanoseconds. + Weight::from_ref_time(170_900_405) + // Standard Error: 35_942 + .saturating_add(Weight::from_ref_time(15_057_854).saturating_mul(r.into())) + .saturating_add(T::DbWeight::get().reads(6)) + .saturating_add(T::DbWeight::get().writes(3)) + } + // Storage: Skipped Metadata (r:0 w:0) + /// The range of component `r` is `[0, 10]`. + fn seal_set_storage(r: u32, ) -> Weight { + // Minimum execution time: 331_482 nanoseconds. + Weight::from_ref_time(320_145_925) + // Standard Error: 729_347 + .saturating_add(Weight::from_ref_time(467_434_196).saturating_mul(r.into())) + .saturating_add(T::DbWeight::get().reads(6)) + .saturating_add(T::DbWeight::get().reads((80_u64).saturating_mul(r.into()))) + .saturating_add(T::DbWeight::get().writes(3)) + .saturating_add(T::DbWeight::get().writes((80_u64).saturating_mul(r.into()))) + } + // Storage: Skipped Metadata (r:0 w:0) + /// The range of component `n` is `[0, 8]`. + fn seal_set_storage_per_new_kb(n: u32, ) -> Weight { + // Minimum execution time: 485_200 nanoseconds. + Weight::from_ref_time(681_090_912) + // Standard Error: 1_629_764 + .saturating_add(Weight::from_ref_time(129_110_203).saturating_mul(n.into())) + .saturating_add(T::DbWeight::get().reads(52)) + .saturating_add(T::DbWeight::get().reads((7_u64).saturating_mul(n.into()))) + .saturating_add(T::DbWeight::get().writes(50)) + .saturating_add(T::DbWeight::get().writes((7_u64).saturating_mul(n.into()))) + } + // Storage: Skipped Metadata (r:0 w:0) + /// The range of component `n` is `[0, 8]`. + fn seal_set_storage_per_old_kb(n: u32, ) -> Weight { + // Minimum execution time: 491_802 nanoseconds. + Weight::from_ref_time(663_454_475) + // Standard Error: 1_605_851 + .saturating_add(Weight::from_ref_time(76_814_536).saturating_mul(n.into())) + .saturating_add(T::DbWeight::get().reads(51)) + .saturating_add(T::DbWeight::get().reads((7_u64).saturating_mul(n.into()))) + .saturating_add(T::DbWeight::get().writes(49)) + .saturating_add(T::DbWeight::get().writes((7_u64).saturating_mul(n.into()))) + } + // Storage: Skipped Metadata (r:0 w:0) + /// The range of component `r` is `[0, 10]`. + fn seal_clear_storage(r: u32, ) -> Weight { + // Minimum execution time: 331_675 nanoseconds. + Weight::from_ref_time(317_249_015) + // Standard Error: 480_057 + .saturating_add(Weight::from_ref_time(457_959_257).saturating_mul(r.into())) + .saturating_add(T::DbWeight::get().reads(6)) + .saturating_add(T::DbWeight::get().reads((80_u64).saturating_mul(r.into()))) + .saturating_add(T::DbWeight::get().writes(3)) + .saturating_add(T::DbWeight::get().writes((80_u64).saturating_mul(r.into()))) + } + // Storage: Skipped Metadata (r:0 w:0) + /// The range of component `n` is `[0, 8]`. + fn seal_clear_storage_per_kb(n: u32, ) -> Weight { + // Minimum execution time: 452_955 nanoseconds. + Weight::from_ref_time(609_874_445) + // Standard Error: 1_441_775 + .saturating_add(Weight::from_ref_time(92_035_126).saturating_mul(n.into())) + .saturating_add(T::DbWeight::get().reads(51)) + .saturating_add(T::DbWeight::get().reads((7_u64).saturating_mul(n.into()))) + .saturating_add(T::DbWeight::get().writes(48)) + .saturating_add(T::DbWeight::get().writes((7_u64).saturating_mul(n.into()))) + } + // Storage: Skipped Metadata (r:0 w:0) + /// The range of component `r` is `[0, 10]`. + fn seal_get_storage(r: u32, ) -> Weight { + // Minimum execution time: 331_791 nanoseconds. + Weight::from_ref_time(333_426_409) + // Standard Error: 627_263 + .saturating_add(Weight::from_ref_time(377_209_404).saturating_mul(r.into())) + .saturating_add(T::DbWeight::get().reads(6)) + .saturating_add(T::DbWeight::get().reads((80_u64).saturating_mul(r.into()))) + .saturating_add(T::DbWeight::get().writes(3)) + } + // Storage: Skipped Metadata (r:0 w:0) + /// The range of component `n` is `[0, 8]`. + fn seal_get_storage_per_kb(n: u32, ) -> Weight { + // Minimum execution time: 420_342 nanoseconds. + Weight::from_ref_time(594_741_492) + // Standard Error: 1_603_049 + .saturating_add(Weight::from_ref_time(191_828_993).saturating_mul(n.into())) + .saturating_add(T::DbWeight::get().reads(51)) + .saturating_add(T::DbWeight::get().reads((7_u64).saturating_mul(n.into()))) + .saturating_add(T::DbWeight::get().writes(3)) + } + // Storage: Skipped Metadata (r:0 w:0) + /// The range of component `r` is `[0, 10]`. + fn seal_contains_storage(r: u32, ) -> Weight { + // Minimum execution time: 330_750 nanoseconds. + Weight::from_ref_time(300_464_360) + // Standard Error: 1_055_540 + .saturating_add(Weight::from_ref_time(383_665_749).saturating_mul(r.into())) + .saturating_add(T::DbWeight::get().reads(6)) + .saturating_add(T::DbWeight::get().reads((80_u64).saturating_mul(r.into()))) + .saturating_add(T::DbWeight::get().writes(3)) + } + // Storage: Skipped Metadata (r:0 w:0) + /// The range of component `n` is `[0, 8]`. + fn seal_contains_storage_per_kb(n: u32, ) -> Weight { + // Minimum execution time: 430_876 nanoseconds. + Weight::from_ref_time(570_501_240) + // Standard Error: 1_315_098 + .saturating_add(Weight::from_ref_time(80_822_408).saturating_mul(n.into())) + .saturating_add(T::DbWeight::get().reads(51)) + .saturating_add(T::DbWeight::get().reads((7_u64).saturating_mul(n.into()))) + .saturating_add(T::DbWeight::get().writes(3)) + } + // Storage: Skipped Metadata (r:0 w:0) + /// The range of component `r` is `[0, 10]`. + fn seal_take_storage(r: u32, ) -> Weight { + // Minimum execution time: 336_522 nanoseconds. + Weight::from_ref_time(317_964_528) + // Standard Error: 474_787 + .saturating_add(Weight::from_ref_time(467_467_692).saturating_mul(r.into())) + .saturating_add(T::DbWeight::get().reads(6)) + .saturating_add(T::DbWeight::get().reads((80_u64).saturating_mul(r.into()))) + .saturating_add(T::DbWeight::get().writes(3)) + .saturating_add(T::DbWeight::get().writes((80_u64).saturating_mul(r.into()))) + } + // Storage: Skipped Metadata (r:0 w:0) + /// The range of component `n` is `[0, 8]`. + fn seal_take_storage_per_kb(n: u32, ) -> Weight { + // Minimum execution time: 451_914 nanoseconds. + Weight::from_ref_time(652_324_573) + // Standard Error: 1_607_801 + .saturating_add(Weight::from_ref_time(179_771_451).saturating_mul(n.into())) + .saturating_add(T::DbWeight::get().reads(51)) + .saturating_add(T::DbWeight::get().reads((7_u64).saturating_mul(n.into()))) + .saturating_add(T::DbWeight::get().writes(48)) + .saturating_add(T::DbWeight::get().writes((7_u64).saturating_mul(n.into()))) + } + // Storage: System Account (r:1 w:0) + // Storage: Contracts ContractInfoOf (r:1 w:1) + // Storage: Contracts CodeStorage (r:1 w:0) + // Storage: Timestamp Now (r:1 w:0) + // Storage: System EventTopics (r:2 w:2) + /// The range of component `r` is `[0, 20]`. + fn seal_transfer(r: u32, ) -> Weight { + // Minimum execution time: 338_461 nanoseconds. + Weight::from_ref_time(218_108_365) + // Standard Error: 1_036_532 + .saturating_add(Weight::from_ref_time(1_604_516_746).saturating_mul(r.into())) + .saturating_add(T::DbWeight::get().reads(7)) + .saturating_add(T::DbWeight::get().reads((80_u64).saturating_mul(r.into()))) + .saturating_add(T::DbWeight::get().writes(4)) + .saturating_add(T::DbWeight::get().writes((80_u64).saturating_mul(r.into()))) + } + // Storage: System Account (r:1 w:0) + // Storage: Contracts ContractInfoOf (r:1 w:1) + // Storage: Contracts CodeStorage (r:1 w:0) + // Storage: Timestamp Now (r:1 w:0) + // Storage: System EventTopics (r:2 w:2) + /// The range of component `r` is `[0, 20]`. + fn seal_call(r: u32, ) -> Weight { + // Minimum execution time: 322_234 nanoseconds. + Weight::from_ref_time(353_736_000) + // Standard Error: 11_331_949 + .saturating_add(Weight::from_ref_time(25_748_900_678).saturating_mul(r.into())) + .saturating_add(T::DbWeight::get().reads(7)) + .saturating_add(T::DbWeight::get().reads((160_u64).saturating_mul(r.into()))) + .saturating_add(T::DbWeight::get().writes(3)) + .saturating_add(T::DbWeight::get().writes((160_u64).saturating_mul(r.into()))) + } + // Storage: System Account (r:1 w:0) + // Storage: Contracts ContractInfoOf (r:1 w:1) + // Storage: Contracts CodeStorage (r:1 w:0) + // Storage: Timestamp Now (r:1 w:0) + // Storage: System EventTopics (r:2 w:2) + /// The range of component `r` is `[0, 20]`. + fn seal_delegate_call(r: u32, ) -> Weight { + // Minimum execution time: 339_705 nanoseconds. + Weight::from_ref_time(359_507_000) + // Standard Error: 12_748_369 + .saturating_add(Weight::from_ref_time(25_458_867_980).saturating_mul(r.into())) + .saturating_add(T::DbWeight::get().reads(6)) + .saturating_add(T::DbWeight::get().reads((150_u64).saturating_mul(r.into()))) + .saturating_add(T::DbWeight::get().writes(3)) + .saturating_add(T::DbWeight::get().writes((75_u64).saturating_mul(r.into()))) + } + // Storage: System Account (r:1 w:0) + // Storage: Contracts ContractInfoOf (r:81 w:81) + // Storage: Contracts CodeStorage (r:2 w:0) + // Storage: Timestamp Now (r:1 w:0) + // Storage: System EventTopics (r:82 w:82) + /// The range of component `t` is `[0, 1]`. + /// The range of component `c` is `[0, 1024]`. + fn seal_call_per_transfer_clone_kb(t: u32, c: u32, ) -> Weight { + // Minimum execution time: 9_574_031 nanoseconds. + Weight::from_ref_time(15_283_152_917) + // Standard Error: 1_941_214 + .saturating_add(Weight::from_ref_time(16_741_561).saturating_mul(c.into())) + .saturating_add(T::DbWeight::get().reads(167)) + .saturating_add(T::DbWeight::get().reads((81_u64).saturating_mul(t.into()))) + .saturating_add(T::DbWeight::get().writes(163)) + .saturating_add(T::DbWeight::get().writes((81_u64).saturating_mul(t.into()))) + } + // Storage: System Account (r:1 w:0) + // Storage: Contracts ContractInfoOf (r:1 w:1) + // Storage: Contracts CodeStorage (r:1 w:0) + // Storage: Timestamp Now (r:1 w:0) + // Storage: System EventTopics (r:2 w:2) + // Storage: Contracts Nonce (r:1 w:1) + // Storage: Contracts OwnerInfoOf (r:80 w:80) + /// The range of component `r` is `[0, 20]`. + fn seal_instantiate(r: u32, ) -> Weight { + // Minimum execution time: 331_211 nanoseconds. + Weight::from_ref_time(356_520_000) + // Standard Error: 36_048_095 + .saturating_add(Weight::from_ref_time(32_202_571_565).saturating_mul(r.into())) + .saturating_add(T::DbWeight::get().reads(8)) + .saturating_add(T::DbWeight::get().reads((400_u64).saturating_mul(r.into()))) + .saturating_add(T::DbWeight::get().writes(5)) + .saturating_add(T::DbWeight::get().writes((400_u64).saturating_mul(r.into()))) + } + // Storage: System Account (r:81 w:81) + // Storage: Contracts ContractInfoOf (r:81 w:81) + // Storage: Contracts CodeStorage (r:2 w:1) + // Storage: Timestamp Now (r:1 w:0) + // Storage: Contracts Nonce (r:1 w:1) + // Storage: Contracts OwnerInfoOf (r:1 w:1) + // Storage: System EventTopics (r:82 w:82) + /// The range of component `t` is `[0, 1]`. + /// The range of component `i` is `[0, 960]`. + /// The range of component `s` is `[0, 960]`. + fn seal_instantiate_per_transfer_input_salt_kb(t: u32, i: u32, s: u32, ) -> Weight { + // Minimum execution time: 223_826_667 nanoseconds. + Weight::from_ref_time(17_526_438_669) + // Standard Error: 121_257_337 + .saturating_add(Weight::from_ref_time(779_434_637).saturating_mul(t.into())) + // Standard Error: 197_736 + .saturating_add(Weight::from_ref_time(215_190_278).saturating_mul(i.into())) + // Standard Error: 197_736 + .saturating_add(Weight::from_ref_time(216_384_104).saturating_mul(s.into())) + .saturating_add(T::DbWeight::get().reads(249)) + .saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(t.into()))) + .saturating_add(T::DbWeight::get().writes(247)) + .saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(t.into()))) + } + // Storage: System Account (r:1 w:0) + // Storage: Contracts ContractInfoOf (r:1 w:1) + // Storage: Contracts CodeStorage (r:1 w:0) + // Storage: Timestamp Now (r:1 w:0) + // Storage: System EventTopics (r:2 w:2) + /// The range of component `r` is `[0, 1]`. + fn seal_hash_sha2_256(r: u32, ) -> Weight { + // Minimum execution time: 313_156 nanoseconds. + Weight::from_ref_time(352_808_473) + // Standard Error: 1_070_492 + .saturating_add(Weight::from_ref_time(33_833_626).saturating_mul(r.into())) + .saturating_add(T::DbWeight::get().reads(6)) + .saturating_add(T::DbWeight::get().writes(3)) + } + // Storage: System Account (r:1 w:0) + // Storage: Contracts ContractInfoOf (r:1 w:1) + // Storage: Contracts CodeStorage (r:1 w:0) + // Storage: Timestamp Now (r:1 w:0) + // Storage: System EventTopics (r:2 w:2) + /// The range of component `n` is `[0, 1024]`. + fn seal_hash_sha2_256_per_kb(n: u32, ) -> Weight { + // Minimum execution time: 363_349 nanoseconds. + Weight::from_ref_time(67_072_630) + // Standard Error: 50_225 + .saturating_add(Weight::from_ref_time(110_951_942).saturating_mul(n.into())) + .saturating_add(T::DbWeight::get().reads(6)) + .saturating_add(T::DbWeight::get().writes(3)) + } + // Storage: System Account (r:1 w:0) + // Storage: Contracts ContractInfoOf (r:1 w:1) + // Storage: Contracts CodeStorage (r:1 w:0) + // Storage: Timestamp Now (r:1 w:0) + // Storage: System EventTopics (r:2 w:2) + /// The range of component `r` is `[0, 1]`. + fn seal_hash_keccak_256(r: u32, ) -> Weight { + // Minimum execution time: 314_508 nanoseconds. + Weight::from_ref_time(353_764_287) + // Standard Error: 1_056_529 + .saturating_add(Weight::from_ref_time(67_939_912).saturating_mul(r.into())) + .saturating_add(T::DbWeight::get().reads(6)) + .saturating_add(T::DbWeight::get().writes(3)) + } + // Storage: System Account (r:1 w:0) + // Storage: Contracts ContractInfoOf (r:1 w:1) + // Storage: Contracts CodeStorage (r:1 w:0) + // Storage: Timestamp Now (r:1 w:0) + // Storage: System EventTopics (r:2 w:2) + /// The range of component `n` is `[0, 1024]`. + fn seal_hash_keccak_256_per_kb(n: u32, ) -> Weight { + // Minimum execution time: 396_526 nanoseconds. + Weight::from_ref_time(83_793_187) + // Standard Error: 54_660 + .saturating_add(Weight::from_ref_time(292_071_681).saturating_mul(n.into())) + .saturating_add(T::DbWeight::get().reads(6)) + .saturating_add(T::DbWeight::get().writes(3)) + } + // Storage: System Account (r:1 w:0) + // Storage: Contracts ContractInfoOf (r:1 w:1) + // Storage: Contracts CodeStorage (r:1 w:0) + // Storage: Timestamp Now (r:1 w:0) + // Storage: System EventTopics (r:2 w:2) + /// The range of component `r` is `[0, 1]`. + fn seal_hash_blake2_256(r: u32, ) -> Weight { + // Minimum execution time: 316_952 nanoseconds. + Weight::from_ref_time(353_335_028) + // Standard Error: 1_049_815 + .saturating_add(Weight::from_ref_time(38_187_171).saturating_mul(r.into())) + .saturating_add(T::DbWeight::get().reads(6)) + .saturating_add(T::DbWeight::get().writes(3)) + } + // Storage: System Account (r:1 w:0) + // Storage: Contracts ContractInfoOf (r:1 w:1) + // Storage: Contracts CodeStorage (r:1 w:0) + // Storage: Timestamp Now (r:1 w:0) + // Storage: System EventTopics (r:2 w:2) + /// The range of component `n` is `[0, 1024]`. + fn seal_hash_blake2_256_per_kb(n: u32, ) -> Weight { + // Minimum execution time: 370_396 nanoseconds. + Weight::from_ref_time(20_523_961) + // Standard Error: 52_648 + .saturating_add(Weight::from_ref_time(147_118_676).saturating_mul(n.into())) + .saturating_add(T::DbWeight::get().reads(6)) + .saturating_add(T::DbWeight::get().writes(3)) + } + // Storage: System Account (r:1 w:0) + // Storage: Contracts ContractInfoOf (r:1 w:1) + // Storage: Contracts CodeStorage (r:1 w:0) + // Storage: Timestamp Now (r:1 w:0) + // Storage: System EventTopics (r:2 w:2) + /// The range of component `r` is `[0, 1]`. + fn seal_hash_blake2_128(r: u32, ) -> Weight { + // Minimum execution time: 313_872 nanoseconds. + Weight::from_ref_time(352_845_736) + // Standard Error: 962_253 + .saturating_add(Weight::from_ref_time(39_748_263).saturating_mul(r.into())) + .saturating_add(T::DbWeight::get().reads(6)) + .saturating_add(T::DbWeight::get().writes(3)) + } + // Storage: System Account (r:1 w:0) + // Storage: Contracts ContractInfoOf (r:1 w:1) + // Storage: Contracts CodeStorage (r:1 w:0) + // Storage: Timestamp Now (r:1 w:0) + // Storage: System EventTopics (r:2 w:2) + /// The range of component `n` is `[0, 1024]`. + fn seal_hash_blake2_128_per_kb(n: u32, ) -> Weight { + // Minimum execution time: 375_782 nanoseconds. + Weight::from_ref_time(61_858_419) + // Standard Error: 54_417 + .saturating_add(Weight::from_ref_time(146_896_963).saturating_mul(n.into())) + .saturating_add(T::DbWeight::get().reads(6)) + .saturating_add(T::DbWeight::get().writes(3)) + } + // Storage: System Account (r:1 w:0) + // Storage: Contracts ContractInfoOf (r:1 w:1) + // Storage: Contracts CodeStorage (r:1 w:0) + // Storage: Timestamp Now (r:1 w:0) + // Storage: System EventTopics (r:2 w:2) + /// The range of component `r` is `[0, 1]`. + fn seal_ecdsa_recover(r: u32, ) -> Weight { + // Minimum execution time: 319_430 nanoseconds. + Weight::from_ref_time(358_979_987) + // Standard Error: 1_041_601 + .saturating_add(Weight::from_ref_time(3_730_384_812).saturating_mul(r.into())) + .saturating_add(T::DbWeight::get().reads(6)) + .saturating_add(T::DbWeight::get().writes(3)) + } + // Storage: System Account (r:1 w:0) + // Storage: Contracts ContractInfoOf (r:1 w:1) + // Storage: Contracts CodeStorage (r:1 w:0) + // Storage: Timestamp Now (r:1 w:0) + // Storage: System EventTopics (r:2 w:2) + /// The range of component `r` is `[0, 1]`. + fn seal_ecdsa_to_eth_address(r: u32, ) -> Weight { + // Minimum execution time: 315_280 nanoseconds. + Weight::from_ref_time(356_642_810) + // Standard Error: 1_060_954 + .saturating_add(Weight::from_ref_time(957_955_589).saturating_mul(r.into())) + .saturating_add(T::DbWeight::get().reads(6)) + .saturating_add(T::DbWeight::get().writes(3)) + } + // Storage: System Account (r:1 w:0) + // Storage: Contracts ContractInfoOf (r:1 w:1) + // Storage: Contracts CodeStorage (r:1 w:0) + // Storage: Timestamp Now (r:1 w:0) + // Storage: System EventTopics (r:2 w:2) + // Storage: Contracts OwnerInfoOf (r:16 w:16) + /// The range of component `r` is `[0, 20]`. + fn seal_set_code_hash(r: u32, ) -> Weight { + // Minimum execution time: 336_198 nanoseconds. + Weight::from_ref_time(354_041_000) + // Standard Error: 4_912_985 + .saturating_add(Weight::from_ref_time(1_632_526_530).saturating_mul(r.into())) + .saturating_add(T::DbWeight::get().reads(6)) + .saturating_add(T::DbWeight::get().reads((225_u64).saturating_mul(r.into()))) + .saturating_add(T::DbWeight::get().writes(3)) + .saturating_add(T::DbWeight::get().writes((150_u64).saturating_mul(r.into()))) + } + // Storage: System Account (r:1 w:0) + // Storage: Contracts ContractInfoOf (r:1 w:1) + // Storage: Contracts CodeStorage (r:1 w:0) + // Storage: Timestamp Now (r:1 w:0) + // Storage: System EventTopics (r:2 w:2) + /// The range of component `r` is `[0, 20]`. + fn seal_reentrance_count(r: u32, ) -> Weight { + // Minimum execution time: 312_740 nanoseconds. + Weight::from_ref_time(355_036_564) + // Standard Error: 33_524 + .saturating_add(Weight::from_ref_time(11_727_642).saturating_mul(r.into())) + .saturating_add(T::DbWeight::get().reads(6)) + .saturating_add(T::DbWeight::get().writes(3)) + } + // Storage: System Account (r:1 w:0) + // Storage: Contracts ContractInfoOf (r:1 w:1) + // Storage: Contracts CodeStorage (r:1 w:0) + // Storage: Timestamp Now (r:1 w:0) + // Storage: System EventTopics (r:2 w:2) + /// The range of component `r` is `[0, 20]`. + fn seal_account_reentrance_count(r: u32, ) -> Weight { + // Minimum execution time: 334_231 nanoseconds. + Weight::from_ref_time(390_640_314) + // Standard Error: 134_354 + .saturating_add(Weight::from_ref_time(23_272_040).saturating_mul(r.into())) + .saturating_add(T::DbWeight::get().reads(6)) + .saturating_add(T::DbWeight::get().writes(3)) + } + // Storage: System Account (r:1 w:0) + // Storage: Contracts ContractInfoOf (r:1 w:1) + // Storage: Contracts CodeStorage (r:1 w:0) + // Storage: Timestamp Now (r:1 w:0) + // Storage: System EventTopics (r:2 w:2) + // Storage: Contracts Nonce (r:1 w:1) + /// The range of component `r` is `[0, 20]`. + fn seal_instantiation_nonce(r: u32, ) -> Weight { + // Minimum execution time: 328_252 nanoseconds. + Weight::from_ref_time(356_988_510) + // Standard Error: 30_184 + .saturating_add(Weight::from_ref_time(10_256_870).saturating_mul(r.into())) + .saturating_add(T::DbWeight::get().reads(7)) + .saturating_add(T::DbWeight::get().writes(4)) + } + /// The range of component `r` is `[0, 50]`. + fn instr_i64const(r: u32, ) -> Weight { + // Minimum execution time: 665 nanoseconds. + Weight::from_ref_time(592_591) + // Standard Error: 323 + .saturating_add(Weight::from_ref_time(714_950).saturating_mul(r.into())) + } + /// The range of component `r` is `[0, 50]`. + fn instr_i64load(r: u32, ) -> Weight { + // Minimum execution time: 1_185 nanoseconds. + Weight::from_ref_time(1_961_060) + // Standard Error: 4_871 + .saturating_add(Weight::from_ref_time(1_497_542).saturating_mul(r.into())) + } + /// The range of component `r` is `[0, 50]`. + fn instr_i64store(r: u32, ) -> Weight { + // Minimum execution time: 1_030 nanoseconds. + Weight::from_ref_time(1_315_070) + // Standard Error: 2_743 + .saturating_add(Weight::from_ref_time(1_346_058).saturating_mul(r.into())) + } + /// The range of component `r` is `[0, 50]`. + fn instr_select(r: u32, ) -> Weight { + // Minimum execution time: 670 nanoseconds. + Weight::from_ref_time(836_634) + // Standard Error: 647 + .saturating_add(Weight::from_ref_time(1_673_152).saturating_mul(r.into())) + } + /// The range of component `r` is `[0, 50]`. + fn instr_if(r: u32, ) -> Weight { + // Minimum execution time: 654 nanoseconds. + Weight::from_ref_time(24_528) + // Standard Error: 9_162 + .saturating_add(Weight::from_ref_time(1_767_652).saturating_mul(r.into())) + } + /// The range of component `r` is `[0, 50]`. + fn instr_br(r: u32, ) -> Weight { + // Minimum execution time: 713 nanoseconds. + Weight::from_ref_time(1_086_480) + // Standard Error: 761 + .saturating_add(Weight::from_ref_time(1_044_251).saturating_mul(r.into())) + } + /// The range of component `r` is `[0, 50]`. + fn instr_br_if(r: u32, ) -> Weight { + // Minimum execution time: 630 nanoseconds. + Weight::from_ref_time(1_123_466) + // Standard Error: 788 + .saturating_add(Weight::from_ref_time(1_262_144).saturating_mul(r.into())) + } + /// The range of component `r` is `[0, 50]`. + fn instr_br_table(r: u32, ) -> Weight { + // Minimum execution time: 680 nanoseconds. + Weight::from_ref_time(929_150) + // Standard Error: 1_508 + .saturating_add(Weight::from_ref_time(1_783_945).saturating_mul(r.into())) + } + /// The range of component `e` is `[1, 256]`. + fn instr_br_table_per_entry(e: u32, ) -> Weight { + // Minimum execution time: 3_184 nanoseconds. + Weight::from_ref_time(3_453_363) + // Standard Error: 56 + .saturating_add(Weight::from_ref_time(2_280).saturating_mul(e.into())) + } + /// The range of component `r` is `[0, 50]`. + fn instr_call(r: u32, ) -> Weight { + // Minimum execution time: 673 nanoseconds. + Weight::from_ref_time(1_413_216) + // Standard Error: 2_950 + .saturating_add(Weight::from_ref_time(2_728_501).saturating_mul(r.into())) + } + /// The range of component `r` is `[0, 50]`. + fn instr_call_indirect(r: u32, ) -> Weight { + // Minimum execution time: 750 nanoseconds. + Weight::from_ref_time(545_152) + // Standard Error: 7_301 + .saturating_add(Weight::from_ref_time(3_519_693).saturating_mul(r.into())) + } + /// The range of component `p` is `[0, 128]`. + fn instr_call_indirect_per_param(p: u32, ) -> Weight { + // Minimum execution time: 4_616 nanoseconds. + Weight::from_ref_time(5_355_729) + // Standard Error: 570 + .saturating_add(Weight::from_ref_time(229_190).saturating_mul(p.into())) + } + /// The range of component `l` is `[0, 1024]`. + fn instr_call_per_local(l: u32, ) -> Weight { + // Minimum execution time: 3_189 nanoseconds. + Weight::from_ref_time(4_520_879) + // Standard Error: 103 + .saturating_add(Weight::from_ref_time(73_298).saturating_mul(l.into())) + } + /// The range of component `r` is `[0, 50]`. + fn instr_local_get(r: u32, ) -> Weight { + // Minimum execution time: 2_257 nanoseconds. + Weight::from_ref_time(2_444_050) + // Standard Error: 303 + .saturating_add(Weight::from_ref_time(853_458).saturating_mul(r.into())) + } + /// The range of component `r` is `[0, 50]`. + fn instr_local_set(r: u32, ) -> Weight { + // Minimum execution time: 2_290 nanoseconds. + Weight::from_ref_time(2_633_603) + // Standard Error: 2_733 + .saturating_add(Weight::from_ref_time(736_295).saturating_mul(r.into())) + } + /// The range of component `r` is `[0, 50]`. + fn instr_local_tee(r: u32, ) -> Weight { + // Minimum execution time: 2_259 nanoseconds. + Weight::from_ref_time(2_420_306) + // Standard Error: 579 + .saturating_add(Weight::from_ref_time(973_016).saturating_mul(r.into())) + } + /// The range of component `r` is `[0, 50]`. + fn instr_global_get(r: u32, ) -> Weight { + // Minimum execution time: 720 nanoseconds. + Weight::from_ref_time(932_455) + // Standard Error: 1_318 + .saturating_add(Weight::from_ref_time(1_026_393).saturating_mul(r.into())) + } + /// The range of component `r` is `[0, 50]`. + fn instr_global_set(r: u32, ) -> Weight { + // Minimum execution time: 723 nanoseconds. + Weight::from_ref_time(785_050) + // Standard Error: 1_074 + .saturating_add(Weight::from_ref_time(995_780).saturating_mul(r.into())) + } + /// The range of component `r` is `[0, 50]`. + fn instr_memory_current(r: u32, ) -> Weight { + // Minimum execution time: 1_118 nanoseconds. + Weight::from_ref_time(1_510_912) + // Standard Error: 945 + .saturating_add(Weight::from_ref_time(776_985).saturating_mul(r.into())) + } + /// The range of component `r` is `[0, 1]`. + fn instr_memory_grow(r: u32, ) -> Weight { + // Minimum execution time: 653 nanoseconds. + Weight::from_ref_time(764_004) + // Standard Error: 108_209 + .saturating_add(Weight::from_ref_time(241_898_795).saturating_mul(r.into())) + } + /// The range of component `r` is `[0, 50]`. + fn instr_i64clz(r: u32, ) -> Weight { + // Minimum execution time: 692 nanoseconds. + Weight::from_ref_time(604_910) + // Standard Error: 502 + .saturating_add(Weight::from_ref_time(871_253).saturating_mul(r.into())) + } + /// The range of component `r` is `[0, 50]`. + fn instr_i64ctz(r: u32, ) -> Weight { + // Minimum execution time: 670 nanoseconds. + Weight::from_ref_time(594_529) + // Standard Error: 537 + .saturating_add(Weight::from_ref_time(871_260).saturating_mul(r.into())) + } + /// The range of component `r` is `[0, 50]`. + fn instr_i64popcnt(r: u32, ) -> Weight { + // Minimum execution time: 670 nanoseconds. + Weight::from_ref_time(630_809) + // Standard Error: 647 + .saturating_add(Weight::from_ref_time(871_216).saturating_mul(r.into())) + } + /// The range of component `r` is `[0, 50]`. + fn instr_i64eqz(r: u32, ) -> Weight { + // Minimum execution time: 673 nanoseconds. + Weight::from_ref_time(639_426) + // Standard Error: 452 + .saturating_add(Weight::from_ref_time(871_077).saturating_mul(r.into())) + } + /// The range of component `r` is `[0, 50]`. + fn instr_i64extendsi32(r: u32, ) -> Weight { + // Minimum execution time: 719 nanoseconds. + Weight::from_ref_time(667_073) + // Standard Error: 662 + .saturating_add(Weight::from_ref_time(871_931).saturating_mul(r.into())) + } + /// The range of component `r` is `[0, 50]`. + fn instr_i64extendui32(r: u32, ) -> Weight { + // Minimum execution time: 630 nanoseconds. + Weight::from_ref_time(635_023) + // Standard Error: 681 + .saturating_add(Weight::from_ref_time(871_736).saturating_mul(r.into())) + } + /// The range of component `r` is `[0, 50]`. + fn instr_i32wrapi64(r: u32, ) -> Weight { + // Minimum execution time: 690 nanoseconds. + Weight::from_ref_time(619_481) + // Standard Error: 557 + .saturating_add(Weight::from_ref_time(877_590).saturating_mul(r.into())) + } + /// The range of component `r` is `[0, 50]`. + fn instr_i64eq(r: u32, ) -> Weight { + // Minimum execution time: 642 nanoseconds. + Weight::from_ref_time(805_903) + // Standard Error: 607 + .saturating_add(Weight::from_ref_time(1_113_662).saturating_mul(r.into())) + } + /// The range of component `r` is `[0, 50]`. + fn instr_i64ne(r: u32, ) -> Weight { + // Minimum execution time: 705 nanoseconds. + Weight::from_ref_time(817_367) + // Standard Error: 634 + .saturating_add(Weight::from_ref_time(1_112_064).saturating_mul(r.into())) + } + /// The range of component `r` is `[0, 50]`. + fn instr_i64lts(r: u32, ) -> Weight { + // Minimum execution time: 682 nanoseconds. + Weight::from_ref_time(827_650) + // Standard Error: 639 + .saturating_add(Weight::from_ref_time(1_112_923).saturating_mul(r.into())) + } + /// The range of component `r` is `[0, 50]`. + fn instr_i64ltu(r: u32, ) -> Weight { + // Minimum execution time: 668 nanoseconds. + Weight::from_ref_time(872_789) + // Standard Error: 938 + .saturating_add(Weight::from_ref_time(1_126_932).saturating_mul(r.into())) + } + /// The range of component `r` is `[0, 50]`. + fn instr_i64gts(r: u32, ) -> Weight { + // Minimum execution time: 657 nanoseconds. + Weight::from_ref_time(841_199) + // Standard Error: 986 + .saturating_add(Weight::from_ref_time(1_127_531).saturating_mul(r.into())) + } + /// The range of component `r` is `[0, 50]`. + fn instr_i64gtu(r: u32, ) -> Weight { + // Minimum execution time: 680 nanoseconds. + Weight::from_ref_time(884_547) + // Standard Error: 967 + .saturating_add(Weight::from_ref_time(1_127_393).saturating_mul(r.into())) + } + /// The range of component `r` is `[0, 50]`. + fn instr_i64les(r: u32, ) -> Weight { + // Minimum execution time: 659 nanoseconds. + Weight::from_ref_time(829_546) + // Standard Error: 875 + .saturating_add(Weight::from_ref_time(1_128_637).saturating_mul(r.into())) + } + /// The range of component `r` is `[0, 50]`. + fn instr_i64leu(r: u32, ) -> Weight { + // Minimum execution time: 640 nanoseconds. + Weight::from_ref_time(796_854) + // Standard Error: 866 + .saturating_add(Weight::from_ref_time(1_131_229).saturating_mul(r.into())) + } + /// The range of component `r` is `[0, 50]`. + fn instr_i64ges(r: u32, ) -> Weight { + // Minimum execution time: 655 nanoseconds. + Weight::from_ref_time(813_232) + // Standard Error: 908 + .saturating_add(Weight::from_ref_time(1_130_299).saturating_mul(r.into())) + } + /// The range of component `r` is `[0, 50]`. + fn instr_i64geu(r: u32, ) -> Weight { + // Minimum execution time: 656 nanoseconds. + Weight::from_ref_time(892_458) + // Standard Error: 1_016 + .saturating_add(Weight::from_ref_time(1_125_884).saturating_mul(r.into())) + } + /// The range of component `r` is `[0, 50]`. + fn instr_i64add(r: u32, ) -> Weight { + // Minimum execution time: 651 nanoseconds. + Weight::from_ref_time(806_856) + // Standard Error: 598 + .saturating_add(Weight::from_ref_time(1_119_359).saturating_mul(r.into())) + } + /// The range of component `r` is `[0, 50]`. + fn instr_i64sub(r: u32, ) -> Weight { + // Minimum execution time: 682 nanoseconds. + Weight::from_ref_time(1_257_706) + // Standard Error: 2_623 + .saturating_add(Weight::from_ref_time(1_093_395).saturating_mul(r.into())) + } + /// The range of component `r` is `[0, 50]`. + fn instr_i64mul(r: u32, ) -> Weight { + // Minimum execution time: 670 nanoseconds. + Weight::from_ref_time(764_513) + // Standard Error: 593 + .saturating_add(Weight::from_ref_time(1_128_129).saturating_mul(r.into())) + } + /// The range of component `r` is `[0, 50]`. + fn instr_i64divs(r: u32, ) -> Weight { + // Minimum execution time: 719 nanoseconds. + Weight::from_ref_time(819_120) + // Standard Error: 1_257 + .saturating_add(Weight::from_ref_time(1_101_731).saturating_mul(r.into())) + } + /// The range of component `r` is `[0, 50]`. + fn instr_i64divu(r: u32, ) -> Weight { + // Minimum execution time: 672 nanoseconds. + Weight::from_ref_time(956_337) + // Standard Error: 4_571 + .saturating_add(Weight::from_ref_time(1_084_906).saturating_mul(r.into())) + } + /// The range of component `r` is `[0, 50]`. + fn instr_i64rems(r: u32, ) -> Weight { + // Minimum execution time: 638 nanoseconds. + Weight::from_ref_time(812_297) + // Standard Error: 1_172 + .saturating_add(Weight::from_ref_time(1_102_335).saturating_mul(r.into())) + } + /// The range of component `r` is `[0, 50]`. + fn instr_i64remu(r: u32, ) -> Weight { + // Minimum execution time: 661 nanoseconds. + Weight::from_ref_time(916_955) + // Standard Error: 6_219 + .saturating_add(Weight::from_ref_time(1_063_980).saturating_mul(r.into())) + } + /// The range of component `r` is `[0, 50]`. + fn instr_i64and(r: u32, ) -> Weight { + // Minimum execution time: 707 nanoseconds. + Weight::from_ref_time(793_507) + // Standard Error: 832 + .saturating_add(Weight::from_ref_time(1_118_563).saturating_mul(r.into())) + } + /// The range of component `r` is `[0, 50]`. + fn instr_i64or(r: u32, ) -> Weight { + // Minimum execution time: 670 nanoseconds. + Weight::from_ref_time(822_032) + // Standard Error: 654 + .saturating_add(Weight::from_ref_time(1_119_063).saturating_mul(r.into())) + } + /// The range of component `r` is `[0, 50]`. + fn instr_i64xor(r: u32, ) -> Weight { + // Minimum execution time: 675 nanoseconds. + Weight::from_ref_time(815_142) + // Standard Error: 636 + .saturating_add(Weight::from_ref_time(1_119_118).saturating_mul(r.into())) + } + /// The range of component `r` is `[0, 50]`. + fn instr_i64shl(r: u32, ) -> Weight { + // Minimum execution time: 706 nanoseconds. + Weight::from_ref_time(782_464) + // Standard Error: 623 + .saturating_add(Weight::from_ref_time(1_103_905).saturating_mul(r.into())) + } + /// The range of component `r` is `[0, 50]`. + fn instr_i64shrs(r: u32, ) -> Weight { + // Minimum execution time: 708 nanoseconds. + Weight::from_ref_time(772_296) + // Standard Error: 592 + .saturating_add(Weight::from_ref_time(1_106_627).saturating_mul(r.into())) + } + /// The range of component `r` is `[0, 50]`. + fn instr_i64shru(r: u32, ) -> Weight { + // Minimum execution time: 715 nanoseconds. + Weight::from_ref_time(790_278) + // Standard Error: 574 + .saturating_add(Weight::from_ref_time(1_104_788).saturating_mul(r.into())) + } + /// The range of component `r` is `[0, 50]`. + fn instr_i64rotl(r: u32, ) -> Weight { + // Minimum execution time: 694 nanoseconds. + Weight::from_ref_time(843_781) + // Standard Error: 670 + .saturating_add(Weight::from_ref_time(1_103_879).saturating_mul(r.into())) + } + /// The range of component `r` is `[0, 50]`. + fn instr_i64rotr(r: u32, ) -> Weight { + // Minimum execution time: 709 nanoseconds. + Weight::from_ref_time(823_088) + // Standard Error: 631 + .saturating_add(Weight::from_ref_time(1_103_409).saturating_mul(r.into())) + } +} diff --git a/runtime/trappist/src/weights/pallet_democracy.rs b/runtime/trappist/src/weights/pallet_democracy.rs new file mode 100644 index 00000000..01c26ee6 --- /dev/null +++ b/runtime/trappist/src/weights/pallet_democracy.rs @@ -0,0 +1,267 @@ +// This file is part of Trappist. + +// Copyright (C) Parity Technologies (UK) Ltd. +// SPDX-License-Identifier: Apache-2.0 + +// Licensed under the Apache License, Version 2.0 (the "License"); +// 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 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +//! Autogenerated weights for `pallet_democracy` +//! +//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev +//! DATE: 2023-06-13, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! HOSTNAME: `runner--ss9ysm1-project-647-concurrent-0`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz` +//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("trappist-dev"), DB CACHE: 1024 + +// Executed Command: +// ./target/production/trappist-node +// benchmark +// pallet +// --chain=trappist-dev +// --steps=50 +// --repeat=20 +// --no-storage-info +// --no-median-slopes +// --no-min-squares +// --pallet=pallet_democracy +// --extrinsic=* +// --execution=wasm +// --wasm-execution=compiled +// --header=./templates/file_header.txt +// --output=./runtime/trappist/src/weights/ + +#![cfg_attr(rustfmt, rustfmt_skip)] +#![allow(unused_parens)] +#![allow(unused_imports)] + +use frame_support::{traits::Get, weights::Weight}; +use sp_std::marker::PhantomData; + +/// Weight functions for `pallet_democracy`. +pub struct WeightInfo(PhantomData); +impl pallet_democracy::WeightInfo for WeightInfo { + // Storage: Democracy PublicPropCount (r:1 w:1) + // Storage: Democracy PublicProps (r:1 w:1) + // Storage: Democracy Blacklist (r:1 w:0) + // Storage: Democracy DepositOf (r:0 w:1) + fn propose() -> Weight { + // Minimum execution time: 53_807 nanoseconds. + Weight::from_ref_time(56_212_000) + .saturating_add(T::DbWeight::get().reads(3)) + .saturating_add(T::DbWeight::get().writes(3)) + } + // Storage: Democracy DepositOf (r:1 w:1) + fn second() -> Weight { + // Minimum execution time: 47_101 nanoseconds. + Weight::from_ref_time(49_511_000) + .saturating_add(T::DbWeight::get().reads(1)) + .saturating_add(T::DbWeight::get().writes(1)) + } + // Storage: Democracy ReferendumInfoOf (r:1 w:1) + // Storage: Democracy VotingOf (r:1 w:1) + // Storage: Balances Locks (r:1 w:1) + fn vote_new() -> Weight { + // Minimum execution time: 58_602 nanoseconds. + Weight::from_ref_time(61_380_000) + .saturating_add(T::DbWeight::get().reads(3)) + .saturating_add(T::DbWeight::get().writes(3)) + } + // Storage: Democracy ReferendumInfoOf (r:1 w:1) + // Storage: Democracy VotingOf (r:1 w:1) + // Storage: Balances Locks (r:1 w:1) + fn vote_existing() -> Weight { + // Minimum execution time: 58_401 nanoseconds. + Weight::from_ref_time(60_595_000) + .saturating_add(T::DbWeight::get().reads(3)) + .saturating_add(T::DbWeight::get().writes(3)) + } + // Storage: Democracy ReferendumInfoOf (r:1 w:1) + // Storage: Democracy Cancellations (r:1 w:1) + fn emergency_cancel() -> Weight { + // Minimum execution time: 23_068 nanoseconds. + Weight::from_ref_time(23_892_000) + .saturating_add(T::DbWeight::get().reads(2)) + .saturating_add(T::DbWeight::get().writes(2)) + } + // Storage: Democracy PublicProps (r:1 w:1) + // Storage: Democracy DepositOf (r:1 w:1) + // Storage: System Account (r:2 w:2) + // Storage: Democracy NextExternal (r:1 w:1) + // Storage: Democracy ReferendumInfoOf (r:1 w:1) + // Storage: Democracy Blacklist (r:0 w:1) + fn blacklist() -> Weight { + // Minimum execution time: 97_162 nanoseconds. + Weight::from_ref_time(99_179_000) + .saturating_add(T::DbWeight::get().reads(6)) + .saturating_add(T::DbWeight::get().writes(7)) + } + // Storage: Democracy NextExternal (r:1 w:1) + // Storage: Democracy Blacklist (r:1 w:0) + fn external_propose() -> Weight { + // Minimum execution time: 17_533 nanoseconds. + Weight::from_ref_time(17_985_000) + .saturating_add(T::DbWeight::get().reads(2)) + .saturating_add(T::DbWeight::get().writes(1)) + } + // Storage: Democracy NextExternal (r:0 w:1) + fn external_propose_majority() -> Weight { + // Minimum execution time: 5_280 nanoseconds. + Weight::from_ref_time(5_517_000) + .saturating_add(T::DbWeight::get().writes(1)) + } + // Storage: Democracy NextExternal (r:0 w:1) + fn external_propose_default() -> Weight { + // Minimum execution time: 5_271 nanoseconds. + Weight::from_ref_time(5_460_000) + .saturating_add(T::DbWeight::get().writes(1)) + } + // Storage: Democracy NextExternal (r:1 w:1) + // Storage: Democracy ReferendumCount (r:1 w:1) + // Storage: Democracy ReferendumInfoOf (r:0 w:1) + fn fast_track() -> Weight { + // Minimum execution time: 23_590 nanoseconds. + Weight::from_ref_time(24_160_000) + .saturating_add(T::DbWeight::get().reads(2)) + .saturating_add(T::DbWeight::get().writes(3)) + } + // Storage: Democracy NextExternal (r:1 w:1) + // Storage: Democracy Blacklist (r:1 w:1) + fn veto_external() -> Weight { + // Minimum execution time: 28_800 nanoseconds. + Weight::from_ref_time(29_804_000) + .saturating_add(T::DbWeight::get().reads(2)) + .saturating_add(T::DbWeight::get().writes(2)) + } + // Storage: Democracy PublicProps (r:1 w:1) + // Storage: Democracy DepositOf (r:1 w:1) + // Storage: System Account (r:2 w:2) + fn cancel_proposal() -> Weight { + // Minimum execution time: 83_651 nanoseconds. + Weight::from_ref_time(84_918_000) + .saturating_add(T::DbWeight::get().reads(4)) + .saturating_add(T::DbWeight::get().writes(4)) + } + // Storage: Democracy ReferendumInfoOf (r:0 w:1) + fn cancel_referendum() -> Weight { + // Minimum execution time: 15_719 nanoseconds. + Weight::from_ref_time(16_027_000) + .saturating_add(T::DbWeight::get().writes(1)) + } + // Storage: Democracy LowestUnbaked (r:1 w:1) + // Storage: Democracy ReferendumCount (r:1 w:0) + // Storage: Democracy ReferendumInfoOf (r:2 w:0) + /// The range of component `r` is `[0, 99]`. + fn on_initialize_base(r: u32, ) -> Weight { + // Minimum execution time: 6_863 nanoseconds. + Weight::from_ref_time(7_011_805) + // Standard Error: 5_241 + .saturating_add(Weight::from_ref_time(2_600_387).saturating_mul(r.into())) + .saturating_add(T::DbWeight::get().reads(2)) + .saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(r.into()))) + .saturating_add(T::DbWeight::get().writes(1)) + } + // Storage: Democracy LowestUnbaked (r:1 w:1) + // Storage: Democracy ReferendumCount (r:1 w:0) + // Storage: Democracy LastTabledWasExternal (r:1 w:0) + // Storage: Democracy NextExternal (r:1 w:0) + // Storage: Democracy PublicProps (r:1 w:0) + // Storage: Democracy ReferendumInfoOf (r:2 w:0) + /// The range of component `r` is `[0, 99]`. + fn on_initialize_base_with_launch_period(r: u32, ) -> Weight { + // Minimum execution time: 9_275 nanoseconds. + Weight::from_ref_time(9_279_155) + // Standard Error: 6_283 + .saturating_add(Weight::from_ref_time(2_612_936).saturating_mul(r.into())) + .saturating_add(T::DbWeight::get().reads(5)) + .saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(r.into()))) + .saturating_add(T::DbWeight::get().writes(1)) + } + // Storage: Democracy VotingOf (r:3 w:3) + // Storage: Balances Locks (r:1 w:1) + // Storage: Democracy ReferendumInfoOf (r:2 w:2) + /// The range of component `r` is `[0, 99]`. + fn delegate(r: u32, ) -> Weight { + // Minimum execution time: 45_236 nanoseconds. + Weight::from_ref_time(49_084_223) + // Standard Error: 6_564 + .saturating_add(Weight::from_ref_time(3_865_176).saturating_mul(r.into())) + .saturating_add(T::DbWeight::get().reads(4)) + .saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(r.into()))) + .saturating_add(T::DbWeight::get().writes(4)) + .saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(r.into()))) + } + // Storage: Democracy VotingOf (r:2 w:2) + // Storage: Democracy ReferendumInfoOf (r:2 w:2) + /// The range of component `r` is `[0, 99]`. + fn undelegate(r: u32, ) -> Weight { + // Minimum execution time: 28_003 nanoseconds. + Weight::from_ref_time(27_687_110) + // Standard Error: 6_570 + .saturating_add(Weight::from_ref_time(3_862_474).saturating_mul(r.into())) + .saturating_add(T::DbWeight::get().reads(2)) + .saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(r.into()))) + .saturating_add(T::DbWeight::get().writes(2)) + .saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(r.into()))) + } + // Storage: Democracy PublicProps (r:0 w:1) + fn clear_public_proposals() -> Weight { + // Minimum execution time: 5_380 nanoseconds. + Weight::from_ref_time(5_646_000) + .saturating_add(T::DbWeight::get().writes(1)) + } + // Storage: Democracy VotingOf (r:1 w:1) + // Storage: Balances Locks (r:1 w:1) + // Storage: System Account (r:1 w:1) + /// The range of component `r` is `[0, 99]`. + fn unlock_remove(r: u32, ) -> Weight { + // Minimum execution time: 25_434 nanoseconds. + Weight::from_ref_time(31_894_384) + // Standard Error: 1_779 + .saturating_add(Weight::from_ref_time(91_838).saturating_mul(r.into())) + .saturating_add(T::DbWeight::get().reads(3)) + .saturating_add(T::DbWeight::get().writes(3)) + } + // Storage: Democracy VotingOf (r:1 w:1) + // Storage: Balances Locks (r:1 w:1) + // Storage: System Account (r:1 w:1) + /// The range of component `r` is `[0, 99]`. + fn unlock_set(r: u32, ) -> Weight { + // Minimum execution time: 30_841 nanoseconds. + Weight::from_ref_time(31_449_080) + // Standard Error: 1_339 + .saturating_add(Weight::from_ref_time(131_232).saturating_mul(r.into())) + .saturating_add(T::DbWeight::get().reads(3)) + .saturating_add(T::DbWeight::get().writes(3)) + } + // Storage: Democracy ReferendumInfoOf (r:1 w:1) + // Storage: Democracy VotingOf (r:1 w:1) + /// The range of component `r` is `[1, 100]`. + fn remove_vote(r: u32, ) -> Weight { + // Minimum execution time: 16_342 nanoseconds. + Weight::from_ref_time(18_122_313) + // Standard Error: 1_459 + .saturating_add(Weight::from_ref_time(125_952).saturating_mul(r.into())) + .saturating_add(T::DbWeight::get().reads(2)) + .saturating_add(T::DbWeight::get().writes(2)) + } + // Storage: Democracy ReferendumInfoOf (r:1 w:1) + // Storage: Democracy VotingOf (r:1 w:1) + /// The range of component `r` is `[1, 100]`. + fn remove_other_vote(r: u32, ) -> Weight { + // Minimum execution time: 16_742 nanoseconds. + Weight::from_ref_time(18_031_377) + // Standard Error: 1_286 + .saturating_add(Weight::from_ref_time(127_299).saturating_mul(r.into())) + .saturating_add(T::DbWeight::get().reads(2)) + .saturating_add(T::DbWeight::get().writes(2)) + } +} diff --git a/runtime/trappist/src/weights/pallet_dex.rs b/runtime/trappist/src/weights/pallet_dex.rs new file mode 100644 index 00000000..c0667f16 --- /dev/null +++ b/runtime/trappist/src/weights/pallet_dex.rs @@ -0,0 +1,111 @@ +// This file is part of Trappist. + +// Copyright (C) Parity Technologies (UK) Ltd. +// SPDX-License-Identifier: Apache-2.0 + +// Licensed under the Apache License, Version 2.0 (the "License"); +// 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 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +//! Autogenerated weights for `pallet_dex` +//! +//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev +//! DATE: 2023-06-13, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! HOSTNAME: `runner--ss9ysm1-project-647-concurrent-0`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz` +//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("trappist-dev"), DB CACHE: 1024 + +// Executed Command: +// ./target/production/trappist-node +// benchmark +// pallet +// --chain=trappist-dev +// --steps=50 +// --repeat=20 +// --no-storage-info +// --no-median-slopes +// --no-min-squares +// --pallet=pallet_dex +// --extrinsic=* +// --execution=wasm +// --wasm-execution=compiled +// --header=./templates/file_header.txt +// --output=./runtime/trappist/src/weights/ + +#![cfg_attr(rustfmt, rustfmt_skip)] +#![allow(unused_parens)] +#![allow(unused_imports)] + +use frame_support::{traits::Get, weights::Weight}; +use sp_std::marker::PhantomData; + +/// Weight functions for `pallet_dex`. +pub struct WeightInfo(PhantomData); +impl pallet_dex::WeightInfo for WeightInfo { + // Storage: Assets Asset (r:2 w:2) + // Storage: Dex Exchanges (r:1 w:1) + // Storage: System Account (r:1 w:1) + // Storage: Assets Account (r:3 w:3) + fn create_exchange() -> Weight { + // Minimum execution time: 100_392 nanoseconds. + Weight::from_ref_time(103_008_000) + .saturating_add(T::DbWeight::get().reads(7)) + .saturating_add(T::DbWeight::get().writes(7)) + } + // Storage: Assets Asset (r:2 w:2) + // Storage: Assets Account (r:3 w:3) + // Storage: Dex Exchanges (r:1 w:1) + // Storage: System Account (r:1 w:1) + fn add_liquidity() -> Weight { + // Minimum execution time: 91_333 nanoseconds. + Weight::from_ref_time(92_940_000) + .saturating_add(T::DbWeight::get().reads(7)) + .saturating_add(T::DbWeight::get().writes(7)) + } + // Storage: Dex Exchanges (r:1 w:1) + // Storage: Assets Asset (r:2 w:2) + // Storage: Assets Account (r:3 w:3) + // Storage: System Account (r:1 w:1) + fn remove_liquidity() -> Weight { + // Minimum execution time: 97_074 nanoseconds. + Weight::from_ref_time(99_510_000) + .saturating_add(T::DbWeight::get().reads(7)) + .saturating_add(T::DbWeight::get().writes(7)) + } + // Storage: Dex Exchanges (r:1 w:1) + // Storage: System Account (r:1 w:1) + // Storage: Assets Asset (r:1 w:1) + // Storage: Assets Account (r:2 w:2) + fn currency_to_asset() -> Weight { + // Minimum execution time: 73_617 nanoseconds. + Weight::from_ref_time(76_404_000) + .saturating_add(T::DbWeight::get().reads(5)) + .saturating_add(T::DbWeight::get().writes(5)) + } + // Storage: Dex Exchanges (r:1 w:1) + // Storage: Assets Asset (r:1 w:1) + // Storage: Assets Account (r:2 w:2) + // Storage: System Account (r:1 w:1) + fn asset_to_currency() -> Weight { + // Minimum execution time: 74_145 nanoseconds. + Weight::from_ref_time(76_382_000) + .saturating_add(T::DbWeight::get().reads(5)) + .saturating_add(T::DbWeight::get().writes(5)) + } + // Storage: Dex Exchanges (r:2 w:2) + // Storage: Assets Asset (r:2 w:2) + // Storage: Assets Account (r:4 w:4) + fn asset_to_asset() -> Weight { + // Minimum execution time: 93_409 nanoseconds. + Weight::from_ref_time(95_891_000) + .saturating_add(T::DbWeight::get().reads(8)) + .saturating_add(T::DbWeight::get().writes(8)) + } +} diff --git a/runtime/trappist/src/weights/pallet_identity.rs b/runtime/trappist/src/weights/pallet_identity.rs new file mode 100644 index 00000000..c7a97d80 --- /dev/null +++ b/runtime/trappist/src/weights/pallet_identity.rs @@ -0,0 +1,258 @@ +// This file is part of Trappist. + +// Copyright (C) Parity Technologies (UK) Ltd. +// SPDX-License-Identifier: Apache-2.0 + +// Licensed under the Apache License, Version 2.0 (the "License"); +// 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 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +//! Autogenerated weights for `pallet_identity` +//! +//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev +//! DATE: 2023-06-13, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! HOSTNAME: `runner--ss9ysm1-project-647-concurrent-0`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz` +//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("trappist-dev"), DB CACHE: 1024 + +// Executed Command: +// ./target/production/trappist-node +// benchmark +// pallet +// --chain=trappist-dev +// --steps=50 +// --repeat=20 +// --no-storage-info +// --no-median-slopes +// --no-min-squares +// --pallet=pallet_identity +// --extrinsic=* +// --execution=wasm +// --wasm-execution=compiled +// --header=./templates/file_header.txt +// --output=./runtime/trappist/src/weights/ + +#![cfg_attr(rustfmt, rustfmt_skip)] +#![allow(unused_parens)] +#![allow(unused_imports)] + +use frame_support::{traits::Get, weights::Weight}; +use sp_std::marker::PhantomData; + +/// Weight functions for `pallet_identity`. +pub struct WeightInfo(PhantomData); +impl pallet_identity::WeightInfo for WeightInfo { + // Storage: Identity Registrars (r:1 w:1) + /// The range of component `r` is `[1, 19]`. + fn add_registrar(r: u32, ) -> Weight { + // Minimum execution time: 18_667 nanoseconds. + Weight::from_ref_time(20_144_680) + // Standard Error: 4_055 + .saturating_add(Weight::from_ref_time(140_222).saturating_mul(r.into())) + .saturating_add(T::DbWeight::get().reads(1)) + .saturating_add(T::DbWeight::get().writes(1)) + } + // Storage: Identity IdentityOf (r:1 w:1) + /// The range of component `r` is `[1, 20]`. + /// The range of component `x` is `[0, 100]`. + fn set_identity(r: u32, x: u32, ) -> Weight { + // Minimum execution time: 40_234 nanoseconds. + Weight::from_ref_time(38_146_315) + // Standard Error: 5_551 + .saturating_add(Weight::from_ref_time(205_702).saturating_mul(r.into())) + // Standard Error: 1_083 + .saturating_add(Weight::from_ref_time(332_076).saturating_mul(x.into())) + .saturating_add(T::DbWeight::get().reads(1)) + .saturating_add(T::DbWeight::get().writes(1)) + } + // Storage: Identity IdentityOf (r:1 w:0) + // Storage: Identity SubsOf (r:1 w:1) + // Storage: Identity SuperOf (r:2 w:2) + /// The range of component `s` is `[0, 100]`. + fn set_subs_new(s: u32, ) -> Weight { + // Minimum execution time: 10_377 nanoseconds. + Weight::from_ref_time(29_627_609) + // Standard Error: 5_300 + .saturating_add(Weight::from_ref_time(2_847_151).saturating_mul(s.into())) + .saturating_add(T::DbWeight::get().reads(2)) + .saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(s.into()))) + .saturating_add(T::DbWeight::get().writes(1)) + .saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(s.into()))) + } + // Storage: Identity IdentityOf (r:1 w:0) + // Storage: Identity SubsOf (r:1 w:1) + // Storage: Identity SuperOf (r:0 w:2) + /// The range of component `p` is `[0, 100]`. + fn set_subs_old(p: u32, ) -> Weight { + // Minimum execution time: 10_420 nanoseconds. + Weight::from_ref_time(30_090_689) + // Standard Error: 6_866 + .saturating_add(Weight::from_ref_time(1_278_031).saturating_mul(p.into())) + .saturating_add(T::DbWeight::get().reads(2)) + .saturating_add(T::DbWeight::get().writes(1)) + .saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(p.into()))) + } + // Storage: Identity SubsOf (r:1 w:1) + // Storage: Identity IdentityOf (r:1 w:1) + // Storage: Identity SuperOf (r:0 w:100) + /// The range of component `r` is `[1, 20]`. + /// The range of component `s` is `[0, 100]`. + /// The range of component `x` is `[0, 100]`. + fn clear_identity(r: u32, s: u32, x: u32, ) -> Weight { + // Minimum execution time: 56_605 nanoseconds. + Weight::from_ref_time(39_416_532) + // Standard Error: 9_234 + .saturating_add(Weight::from_ref_time(157_377).saturating_mul(r.into())) + // Standard Error: 1_803 + .saturating_add(Weight::from_ref_time(1_172_209).saturating_mul(s.into())) + // Standard Error: 1_803 + .saturating_add(Weight::from_ref_time(184_137).saturating_mul(x.into())) + .saturating_add(T::DbWeight::get().reads(2)) + .saturating_add(T::DbWeight::get().writes(2)) + .saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(s.into()))) + } + // Storage: Identity Registrars (r:1 w:0) + // Storage: Identity IdentityOf (r:1 w:1) + /// The range of component `r` is `[1, 20]`. + /// The range of component `x` is `[0, 100]`. + fn request_judgement(r: u32, x: u32, ) -> Weight { + // Minimum execution time: 40_297 nanoseconds. + Weight::from_ref_time(39_017_798) + // Standard Error: 5_084 + .saturating_add(Weight::from_ref_time(171_825).saturating_mul(r.into())) + // Standard Error: 992 + .saturating_add(Weight::from_ref_time(357_852).saturating_mul(x.into())) + .saturating_add(T::DbWeight::get().reads(2)) + .saturating_add(T::DbWeight::get().writes(1)) + } + // Storage: Identity IdentityOf (r:1 w:1) + /// The range of component `r` is `[1, 20]`. + /// The range of component `x` is `[0, 100]`. + fn cancel_request(r: u32, x: u32, ) -> Weight { + // Minimum execution time: 37_529 nanoseconds. + Weight::from_ref_time(35_850_070) + // Standard Error: 5_296 + .saturating_add(Weight::from_ref_time(164_313).saturating_mul(r.into())) + // Standard Error: 1_033 + .saturating_add(Weight::from_ref_time(355_028).saturating_mul(x.into())) + .saturating_add(T::DbWeight::get().reads(1)) + .saturating_add(T::DbWeight::get().writes(1)) + } + // Storage: Identity Registrars (r:1 w:1) + /// The range of component `r` is `[1, 19]`. + fn set_fee(r: u32, ) -> Weight { + // Minimum execution time: 8_922 nanoseconds. + Weight::from_ref_time(9_776_875) + // Standard Error: 2_465 + .saturating_add(Weight::from_ref_time(103_738).saturating_mul(r.into())) + .saturating_add(T::DbWeight::get().reads(1)) + .saturating_add(T::DbWeight::get().writes(1)) + } + // Storage: Identity Registrars (r:1 w:1) + /// The range of component `r` is `[1, 19]`. + fn set_account_id(r: u32, ) -> Weight { + // Minimum execution time: 9_027 nanoseconds. + Weight::from_ref_time(9_873_705) + // Standard Error: 1_994 + .saturating_add(Weight::from_ref_time(103_335).saturating_mul(r.into())) + .saturating_add(T::DbWeight::get().reads(1)) + .saturating_add(T::DbWeight::get().writes(1)) + } + // Storage: Identity Registrars (r:1 w:1) + /// The range of component `r` is `[1, 19]`. + fn set_fields(r: u32, ) -> Weight { + // Minimum execution time: 8_856 nanoseconds. + Weight::from_ref_time(9_710_012) + // Standard Error: 1_940 + .saturating_add(Weight::from_ref_time(112_874).saturating_mul(r.into())) + .saturating_add(T::DbWeight::get().reads(1)) + .saturating_add(T::DbWeight::get().writes(1)) + } + // Storage: Identity Registrars (r:1 w:0) + // Storage: Identity IdentityOf (r:1 w:1) + /// The range of component `r` is `[1, 19]`. + /// The range of component `x` is `[0, 100]`. + fn provide_judgement(r: u32, x: u32, ) -> Weight { + // Minimum execution time: 29_847 nanoseconds. + Weight::from_ref_time(29_378_506) + // Standard Error: 5_615 + .saturating_add(Weight::from_ref_time(142_686).saturating_mul(r.into())) + // Standard Error: 1_039 + .saturating_add(Weight::from_ref_time(600_606).saturating_mul(x.into())) + .saturating_add(T::DbWeight::get().reads(2)) + .saturating_add(T::DbWeight::get().writes(1)) + } + // Storage: Identity SubsOf (r:1 w:1) + // Storage: Identity IdentityOf (r:1 w:1) + // Storage: System Account (r:1 w:1) + // Storage: Identity SuperOf (r:0 w:100) + /// The range of component `r` is `[1, 20]`. + /// The range of component `s` is `[0, 100]`. + /// The range of component `x` is `[0, 100]`. + fn kill_identity(r: u32, s: u32, x: u32, ) -> Weight { + // Minimum execution time: 60_740 nanoseconds. + Weight::from_ref_time(42_281_619) + // Standard Error: 10_902 + .saturating_add(Weight::from_ref_time(229_210).saturating_mul(r.into())) + // Standard Error: 2_129 + .saturating_add(Weight::from_ref_time(1_192_555).saturating_mul(s.into())) + // Standard Error: 2_129 + .saturating_add(Weight::from_ref_time(193_663).saturating_mul(x.into())) + .saturating_add(T::DbWeight::get().reads(3)) + .saturating_add(T::DbWeight::get().writes(3)) + .saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(s.into()))) + } + // Storage: Identity IdentityOf (r:1 w:0) + // Storage: Identity SuperOf (r:1 w:1) + // Storage: Identity SubsOf (r:1 w:1) + /// The range of component `s` is `[0, 99]`. + fn add_sub(s: u32, ) -> Weight { + // Minimum execution time: 34_899 nanoseconds. + Weight::from_ref_time(40_275_000) + // Standard Error: 1_743 + .saturating_add(Weight::from_ref_time(124_557).saturating_mul(s.into())) + .saturating_add(T::DbWeight::get().reads(3)) + .saturating_add(T::DbWeight::get().writes(2)) + } + // Storage: Identity IdentityOf (r:1 w:0) + // Storage: Identity SuperOf (r:1 w:1) + /// The range of component `s` is `[1, 100]`. + fn rename_sub(s: u32, ) -> Weight { + // Minimum execution time: 14_155 nanoseconds. + Weight::from_ref_time(15_783_306) + // Standard Error: 962 + .saturating_add(Weight::from_ref_time(51_406).saturating_mul(s.into())) + .saturating_add(T::DbWeight::get().reads(2)) + .saturating_add(T::DbWeight::get().writes(1)) + } + // Storage: Identity IdentityOf (r:1 w:0) + // Storage: Identity SuperOf (r:1 w:1) + // Storage: Identity SubsOf (r:1 w:1) + /// The range of component `s` is `[1, 100]`. + fn remove_sub(s: u32, ) -> Weight { + // Minimum execution time: 38_779 nanoseconds. + Weight::from_ref_time(41_554_275) + // Standard Error: 1_362 + .saturating_add(Weight::from_ref_time(118_261).saturating_mul(s.into())) + .saturating_add(T::DbWeight::get().reads(3)) + .saturating_add(T::DbWeight::get().writes(2)) + } + // Storage: Identity SuperOf (r:1 w:1) + // Storage: Identity SubsOf (r:1 w:1) + /// The range of component `s` is `[0, 99]`. + fn quit_sub(s: u32, ) -> Weight { + // Minimum execution time: 28_111 nanoseconds. + Weight::from_ref_time(30_587_728) + // Standard Error: 1_613 + .saturating_add(Weight::from_ref_time(104_015).saturating_mul(s.into())) + .saturating_add(T::DbWeight::get().reads(2)) + .saturating_add(T::DbWeight::get().writes(2)) + } +} diff --git a/runtime/trappist/src/weights/pallet_lockdown_mode.rs b/runtime/trappist/src/weights/pallet_lockdown_mode.rs new file mode 100644 index 00000000..08c1b1a3 --- /dev/null +++ b/runtime/trappist/src/weights/pallet_lockdown_mode.rs @@ -0,0 +1,68 @@ +// This file is part of Trappist. + +// Copyright (C) Parity Technologies (UK) Ltd. +// SPDX-License-Identifier: Apache-2.0 + +// Licensed under the Apache License, Version 2.0 (the "License"); +// 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 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +//! Autogenerated weights for `pallet_lockdown_mode` +//! +//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev +//! DATE: 2023-06-13, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! HOSTNAME: `runner--ss9ysm1-project-647-concurrent-0`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz` +//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("trappist-dev"), DB CACHE: 1024 + +// Executed Command: +// ./target/production/trappist-node +// benchmark +// pallet +// --chain=trappist-dev +// --steps=50 +// --repeat=20 +// --no-storage-info +// --no-median-slopes +// --no-min-squares +// --pallet=pallet_lockdown_mode +// --extrinsic=* +// --execution=wasm +// --wasm-execution=compiled +// --header=./templates/file_header.txt +// --output=./runtime/trappist/src/weights/ + +#![cfg_attr(rustfmt, rustfmt_skip)] +#![allow(unused_parens)] +#![allow(unused_imports)] + +use frame_support::{traits::Get, weights::Weight}; +use sp_std::marker::PhantomData; + +/// Weight functions for `pallet_lockdown_mode`. +pub struct WeightInfo(PhantomData); +impl pallet_lockdown_mode::WeightInfo for WeightInfo { + // Storage: LockdownMode LockdownModeStatus (r:1 w:1) + // Storage: XcmpQueue QueueSuspended (r:0 w:1) + fn activate_lockdown_mode() -> Weight { + // Minimum execution time: 20_192 nanoseconds. + Weight::from_ref_time(20_605_000) + .saturating_add(T::DbWeight::get().reads(1)) + .saturating_add(T::DbWeight::get().writes(2)) + } + // Storage: LockdownMode LockdownModeStatus (r:1 w:1) + // Storage: XcmpQueue QueueSuspended (r:0 w:1) + fn deactivate_lockdown_mode() -> Weight { + // Minimum execution time: 20_082 nanoseconds. + Weight::from_ref_time(20_517_000) + .saturating_add(T::DbWeight::get().reads(1)) + .saturating_add(T::DbWeight::get().writes(2)) + } +} diff --git a/runtime/trappist/src/weights/pallet_multisig.rs b/runtime/trappist/src/weights/pallet_multisig.rs new file mode 100644 index 00000000..1fb5a8ea --- /dev/null +++ b/runtime/trappist/src/weights/pallet_multisig.rs @@ -0,0 +1,134 @@ +// This file is part of Trappist. + +// Copyright (C) Parity Technologies (UK) Ltd. +// SPDX-License-Identifier: Apache-2.0 + +// Licensed under the Apache License, Version 2.0 (the "License"); +// 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 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +//! Autogenerated weights for `pallet_multisig` +//! +//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev +//! DATE: 2023-06-13, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! HOSTNAME: `runner--ss9ysm1-project-647-concurrent-0`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz` +//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("trappist-dev"), DB CACHE: 1024 + +// Executed Command: +// ./target/production/trappist-node +// benchmark +// pallet +// --chain=trappist-dev +// --steps=50 +// --repeat=20 +// --no-storage-info +// --no-median-slopes +// --no-min-squares +// --pallet=pallet_multisig +// --extrinsic=* +// --execution=wasm +// --wasm-execution=compiled +// --header=./templates/file_header.txt +// --output=./runtime/trappist/src/weights/ + +#![cfg_attr(rustfmt, rustfmt_skip)] +#![allow(unused_parens)] +#![allow(unused_imports)] + +use frame_support::{traits::Get, weights::Weight}; +use sp_std::marker::PhantomData; + +/// Weight functions for `pallet_multisig`. +pub struct WeightInfo(PhantomData); +impl pallet_multisig::WeightInfo for WeightInfo { + // Storage: LockdownMode LockdownModeStatus (r:1 w:0) + /// The range of component `z` is `[0, 10000]`. + fn as_multi_threshold_1(z: u32, ) -> Weight { + // Minimum execution time: 21_061 nanoseconds. + Weight::from_ref_time(22_207_772) + // Standard Error: 6 + .saturating_add(Weight::from_ref_time(623).saturating_mul(z.into())) + .saturating_add(T::DbWeight::get().reads(1)) + } + // Storage: Multisig Multisigs (r:1 w:1) + // Storage: unknown [0x3a65787472696e7369635f696e646578] (r:1 w:0) + /// The range of component `s` is `[2, 100]`. + /// The range of component `z` is `[0, 10000]`. + fn as_multi_create(s: u32, z: u32, ) -> Weight { + // Minimum execution time: 50_154 nanoseconds. + Weight::from_ref_time(36_365_828) + // Standard Error: 1_638 + .saturating_add(Weight::from_ref_time(156_616).saturating_mul(s.into())) + // Standard Error: 16 + .saturating_add(Weight::from_ref_time(1_933).saturating_mul(z.into())) + .saturating_add(T::DbWeight::get().reads(2)) + .saturating_add(T::DbWeight::get().writes(1)) + } + // Storage: Multisig Multisigs (r:1 w:1) + /// The range of component `s` is `[3, 100]`. + /// The range of component `z` is `[0, 10000]`. + fn as_multi_approve(s: u32, z: u32, ) -> Weight { + // Minimum execution time: 38_338 nanoseconds. + Weight::from_ref_time(26_135_532) + // Standard Error: 1_063 + .saturating_add(Weight::from_ref_time(143_171).saturating_mul(s.into())) + // Standard Error: 10 + .saturating_add(Weight::from_ref_time(1_876).saturating_mul(z.into())) + .saturating_add(T::DbWeight::get().reads(1)) + .saturating_add(T::DbWeight::get().writes(1)) + } + // Storage: Multisig Multisigs (r:1 w:1) + // Storage: System Account (r:1 w:1) + // Storage: LockdownMode LockdownModeStatus (r:1 w:0) + /// The range of component `s` is `[2, 100]`. + /// The range of component `z` is `[0, 10000]`. + fn as_multi_complete(s: u32, z: u32, ) -> Weight { + // Minimum execution time: 59_675 nanoseconds. + Weight::from_ref_time(44_421_196) + // Standard Error: 1_508 + .saturating_add(Weight::from_ref_time(187_133).saturating_mul(s.into())) + // Standard Error: 14 + .saturating_add(Weight::from_ref_time(1_910).saturating_mul(z.into())) + .saturating_add(T::DbWeight::get().reads(3)) + .saturating_add(T::DbWeight::get().writes(2)) + } + // Storage: Multisig Multisigs (r:1 w:1) + // Storage: unknown [0x3a65787472696e7369635f696e646578] (r:1 w:0) + /// The range of component `s` is `[2, 100]`. + fn approve_as_multi_create(s: u32, ) -> Weight { + // Minimum execution time: 33_502 nanoseconds. + Weight::from_ref_time(35_638_670) + // Standard Error: 1_774 + .saturating_add(Weight::from_ref_time(155_468).saturating_mul(s.into())) + .saturating_add(T::DbWeight::get().reads(2)) + .saturating_add(T::DbWeight::get().writes(1)) + } + // Storage: Multisig Multisigs (r:1 w:1) + /// The range of component `s` is `[2, 100]`. + fn approve_as_multi_approve(s: u32, ) -> Weight { + // Minimum execution time: 24_060 nanoseconds. + Weight::from_ref_time(24_848_451) + // Standard Error: 1_106 + .saturating_add(Weight::from_ref_time(143_407).saturating_mul(s.into())) + .saturating_add(T::DbWeight::get().reads(1)) + .saturating_add(T::DbWeight::get().writes(1)) + } + // Storage: Multisig Multisigs (r:1 w:1) + /// The range of component `s` is `[2, 100]`. + fn cancel_as_multi(s: u32, ) -> Weight { + // Minimum execution time: 35_043 nanoseconds. + Weight::from_ref_time(36_202_780) + // Standard Error: 1_308 + .saturating_add(Weight::from_ref_time(156_867).saturating_mul(s.into())) + .saturating_add(T::DbWeight::get().reads(1)) + .saturating_add(T::DbWeight::get().writes(1)) + } +} diff --git a/runtime/trappist/src/weights/pallet_preimage.rs b/runtime/trappist/src/weights/pallet_preimage.rs new file mode 100644 index 00000000..79665de2 --- /dev/null +++ b/runtime/trappist/src/weights/pallet_preimage.rs @@ -0,0 +1,151 @@ +// This file is part of Trappist. + +// Copyright (C) Parity Technologies (UK) Ltd. +// SPDX-License-Identifier: Apache-2.0 + +// Licensed under the Apache License, Version 2.0 (the "License"); +// 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 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +//! Autogenerated weights for `pallet_preimage` +//! +//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev +//! DATE: 2023-06-13, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! HOSTNAME: `runner--ss9ysm1-project-647-concurrent-0`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz` +//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("trappist-dev"), DB CACHE: 1024 + +// Executed Command: +// ./target/production/trappist-node +// benchmark +// pallet +// --chain=trappist-dev +// --steps=50 +// --repeat=20 +// --no-storage-info +// --no-median-slopes +// --no-min-squares +// --pallet=pallet_preimage +// --extrinsic=* +// --execution=wasm +// --wasm-execution=compiled +// --header=./templates/file_header.txt +// --output=./runtime/trappist/src/weights/ + +#![cfg_attr(rustfmt, rustfmt_skip)] +#![allow(unused_parens)] +#![allow(unused_imports)] + +use frame_support::{traits::Get, weights::Weight}; +use sp_std::marker::PhantomData; + +/// Weight functions for `pallet_preimage`. +pub struct WeightInfo(PhantomData); +impl pallet_preimage::WeightInfo for WeightInfo { + // Storage: Preimage StatusFor (r:1 w:1) + // Storage: Preimage PreimageFor (r:0 w:1) + /// The range of component `s` is `[0, 4194304]`. + fn note_preimage(s: u32, ) -> Weight { + // Minimum execution time: 31_770 nanoseconds. + Weight::from_ref_time(326_434_086) + // Standard Error: 9 + .saturating_add(Weight::from_ref_time(2_305).saturating_mul(s.into())) + .saturating_add(T::DbWeight::get().reads(1)) + .saturating_add(T::DbWeight::get().writes(2)) + } + // Storage: Preimage StatusFor (r:1 w:1) + // Storage: Preimage PreimageFor (r:0 w:1) + /// The range of component `s` is `[0, 4194304]`. + fn note_requested_preimage(s: u32, ) -> Weight { + // Minimum execution time: 22_443 nanoseconds. + Weight::from_ref_time(83_635_093) + // Standard Error: 6 + .saturating_add(Weight::from_ref_time(2_543).saturating_mul(s.into())) + .saturating_add(T::DbWeight::get().reads(1)) + .saturating_add(T::DbWeight::get().writes(2)) + } + // Storage: Preimage StatusFor (r:1 w:1) + // Storage: Preimage PreimageFor (r:0 w:1) + /// The range of component `s` is `[0, 4194304]`. + fn note_no_deposit_preimage(s: u32, ) -> Weight { + // Minimum execution time: 21_108 nanoseconds. + Weight::from_ref_time(57_618_237) + // Standard Error: 6 + .saturating_add(Weight::from_ref_time(2_566).saturating_mul(s.into())) + .saturating_add(T::DbWeight::get().reads(1)) + .saturating_add(T::DbWeight::get().writes(2)) + } + // Storage: Preimage StatusFor (r:1 w:1) + // Storage: Preimage PreimageFor (r:0 w:1) + fn unnote_preimage() -> Weight { + // Minimum execution time: 45_977 nanoseconds. + Weight::from_ref_time(49_323_000) + .saturating_add(T::DbWeight::get().reads(1)) + .saturating_add(T::DbWeight::get().writes(2)) + } + // Storage: Preimage StatusFor (r:1 w:1) + // Storage: Preimage PreimageFor (r:0 w:1) + fn unnote_no_deposit_preimage() -> Weight { + // Minimum execution time: 34_366 nanoseconds. + Weight::from_ref_time(38_596_000) + .saturating_add(T::DbWeight::get().reads(1)) + .saturating_add(T::DbWeight::get().writes(2)) + } + // Storage: Preimage StatusFor (r:1 w:1) + fn request_preimage() -> Weight { + // Minimum execution time: 31_252 nanoseconds. + Weight::from_ref_time(32_792_000) + .saturating_add(T::DbWeight::get().reads(1)) + .saturating_add(T::DbWeight::get().writes(1)) + } + // Storage: Preimage StatusFor (r:1 w:1) + fn request_no_deposit_preimage() -> Weight { + // Minimum execution time: 17_166 nanoseconds. + Weight::from_ref_time(18_037_000) + .saturating_add(T::DbWeight::get().reads(1)) + .saturating_add(T::DbWeight::get().writes(1)) + } + // Storage: Preimage StatusFor (r:1 w:1) + fn request_unnoted_preimage() -> Weight { + // Minimum execution time: 28_246 nanoseconds. + Weight::from_ref_time(30_445_000) + .saturating_add(T::DbWeight::get().reads(1)) + .saturating_add(T::DbWeight::get().writes(1)) + } + // Storage: Preimage StatusFor (r:1 w:1) + fn request_requested_preimage() -> Weight { + // Minimum execution time: 12_332 nanoseconds. + Weight::from_ref_time(12_818_000) + .saturating_add(T::DbWeight::get().reads(1)) + .saturating_add(T::DbWeight::get().writes(1)) + } + // Storage: Preimage StatusFor (r:1 w:1) + // Storage: Preimage PreimageFor (r:0 w:1) + fn unrequest_preimage() -> Weight { + // Minimum execution time: 31_960 nanoseconds. + Weight::from_ref_time(34_049_000) + .saturating_add(T::DbWeight::get().reads(1)) + .saturating_add(T::DbWeight::get().writes(2)) + } + // Storage: Preimage StatusFor (r:1 w:1) + fn unrequest_unnoted_preimage() -> Weight { + // Minimum execution time: 10_151 nanoseconds. + Weight::from_ref_time(12_765_000) + .saturating_add(T::DbWeight::get().reads(1)) + .saturating_add(T::DbWeight::get().writes(1)) + } + // Storage: Preimage StatusFor (r:1 w:1) + fn unrequest_multi_referenced_preimage() -> Weight { + // Minimum execution time: 10_638 nanoseconds. + Weight::from_ref_time(12_512_000) + .saturating_add(T::DbWeight::get().reads(1)) + .saturating_add(T::DbWeight::get().writes(1)) + } +} diff --git a/runtime/trappist/src/weights/pallet_scheduler.rs b/runtime/trappist/src/weights/pallet_scheduler.rs new file mode 100644 index 00000000..c21acbaa --- /dev/null +++ b/runtime/trappist/src/weights/pallet_scheduler.rs @@ -0,0 +1,147 @@ +// This file is part of Trappist. + +// Copyright (C) Parity Technologies (UK) Ltd. +// SPDX-License-Identifier: Apache-2.0 + +// Licensed under the Apache License, Version 2.0 (the "License"); +// 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 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +//! Autogenerated weights for `pallet_scheduler` +//! +//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev +//! DATE: 2023-06-13, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! HOSTNAME: `runner--ss9ysm1-project-647-concurrent-0`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz` +//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("trappist-dev"), DB CACHE: 1024 + +// Executed Command: +// ./target/production/trappist-node +// benchmark +// pallet +// --chain=trappist-dev +// --steps=50 +// --repeat=20 +// --no-storage-info +// --no-median-slopes +// --no-min-squares +// --pallet=pallet_scheduler +// --extrinsic=* +// --execution=wasm +// --wasm-execution=compiled +// --header=./templates/file_header.txt +// --output=./runtime/trappist/src/weights/ + +#![cfg_attr(rustfmt, rustfmt_skip)] +#![allow(unused_parens)] +#![allow(unused_imports)] + +use frame_support::{traits::Get, weights::Weight}; +use sp_std::marker::PhantomData; + +/// Weight functions for `pallet_scheduler`. +pub struct WeightInfo(PhantomData); +impl pallet_scheduler::WeightInfo for WeightInfo { + // Storage: Scheduler IncompleteSince (r:1 w:1) + fn service_agendas_base() -> Weight { + // Minimum execution time: 4_388 nanoseconds. + Weight::from_ref_time(4_489_000) + .saturating_add(T::DbWeight::get().reads(1)) + .saturating_add(T::DbWeight::get().writes(1)) + } + // Storage: Scheduler Agenda (r:1 w:1) + /// The range of component `s` is `[0, 512]`. + fn service_agenda_base(s: u32, ) -> Weight { + // Minimum execution time: 3_760 nanoseconds. + Weight::from_ref_time(904_659) + // Standard Error: 2_079 + .saturating_add(Weight::from_ref_time(749_754).saturating_mul(s.into())) + .saturating_add(T::DbWeight::get().reads(1)) + .saturating_add(T::DbWeight::get().writes(1)) + } + fn service_task_base() -> Weight { + // Minimum execution time: 11_677 nanoseconds. + Weight::from_ref_time(12_070_000) + } + // Storage: Preimage PreimageFor (r:1 w:1) + // Storage: Preimage StatusFor (r:1 w:1) + /// The range of component `s` is `[128, 4194304]`. + fn service_task_fetched(s: u32, ) -> Weight { + // Minimum execution time: 23_951 nanoseconds. + Weight::from_ref_time(24_317_000) + // Standard Error: 1 + .saturating_add(Weight::from_ref_time(1_359).saturating_mul(s.into())) + .saturating_add(T::DbWeight::get().reads(2)) + .saturating_add(T::DbWeight::get().writes(2)) + } + // Storage: Scheduler Lookup (r:0 w:1) + fn service_task_named() -> Weight { + // Minimum execution time: 12_963 nanoseconds. + Weight::from_ref_time(13_370_000) + .saturating_add(T::DbWeight::get().writes(1)) + } + fn service_task_periodic() -> Weight { + // Minimum execution time: 11_660 nanoseconds. + Weight::from_ref_time(12_064_000) + } + // Storage: LockdownMode LockdownModeStatus (r:1 w:0) + fn execute_dispatch_signed() -> Weight { + // Minimum execution time: 7_502 nanoseconds. + Weight::from_ref_time(7_817_000) + .saturating_add(T::DbWeight::get().reads(1)) + } + fn execute_dispatch_unsigned() -> Weight { + // Minimum execution time: 4_618 nanoseconds. + Weight::from_ref_time(4_818_000) + } + // Storage: Scheduler Agenda (r:1 w:1) + /// The range of component `s` is `[0, 511]`. + fn schedule(s: u32, ) -> Weight { + // Minimum execution time: 19_108 nanoseconds. + Weight::from_ref_time(18_371_633) + // Standard Error: 2_172 + .saturating_add(Weight::from_ref_time(777_459).saturating_mul(s.into())) + .saturating_add(T::DbWeight::get().reads(1)) + .saturating_add(T::DbWeight::get().writes(1)) + } + // Storage: Scheduler Agenda (r:1 w:1) + // Storage: Scheduler Lookup (r:0 w:1) + /// The range of component `s` is `[1, 512]`. + fn cancel(s: u32, ) -> Weight { + // Minimum execution time: 22_886 nanoseconds. + Weight::from_ref_time(18_183_475) + // Standard Error: 2_345 + .saturating_add(Weight::from_ref_time(1_248_032).saturating_mul(s.into())) + .saturating_add(T::DbWeight::get().reads(1)) + .saturating_add(T::DbWeight::get().writes(2)) + } + // Storage: Scheduler Lookup (r:1 w:1) + // Storage: Scheduler Agenda (r:1 w:1) + /// The range of component `s` is `[0, 511]`. + fn schedule_named(s: u32, ) -> Weight { + // Minimum execution time: 21_929 nanoseconds. + Weight::from_ref_time(23_996_479) + // Standard Error: 2_479 + .saturating_add(Weight::from_ref_time(784_317).saturating_mul(s.into())) + .saturating_add(T::DbWeight::get().reads(2)) + .saturating_add(T::DbWeight::get().writes(2)) + } + // Storage: Scheduler Lookup (r:1 w:1) + // Storage: Scheduler Agenda (r:1 w:1) + /// The range of component `s` is `[1, 512]`. + fn cancel_named(s: u32, ) -> Weight { + // Minimum execution time: 24_270 nanoseconds. + Weight::from_ref_time(20_631_388) + // Standard Error: 2_492 + .saturating_add(Weight::from_ref_time(1_258_480).saturating_mul(s.into())) + .saturating_add(T::DbWeight::get().reads(2)) + .saturating_add(T::DbWeight::get().writes(2)) + } +} diff --git a/runtime/trappist/src/weights/pallet_session.rs b/runtime/trappist/src/weights/pallet_session.rs new file mode 100644 index 00000000..7e9159b3 --- /dev/null +++ b/runtime/trappist/src/weights/pallet_session.rs @@ -0,0 +1,68 @@ +// This file is part of Trappist. + +// Copyright (C) Parity Technologies (UK) Ltd. +// SPDX-License-Identifier: Apache-2.0 + +// Licensed under the Apache License, Version 2.0 (the "License"); +// 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 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +//! Autogenerated weights for `pallet_session` +//! +//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev +//! DATE: 2023-06-13, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! HOSTNAME: `runner--ss9ysm1-project-647-concurrent-0`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz` +//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("trappist-dev"), DB CACHE: 1024 + +// Executed Command: +// ./target/production/trappist-node +// benchmark +// pallet +// --chain=trappist-dev +// --steps=50 +// --repeat=20 +// --no-storage-info +// --no-median-slopes +// --no-min-squares +// --pallet=pallet_session +// --extrinsic=* +// --execution=wasm +// --wasm-execution=compiled +// --header=./templates/file_header.txt +// --output=./runtime/trappist/src/weights/ + +#![cfg_attr(rustfmt, rustfmt_skip)] +#![allow(unused_parens)] +#![allow(unused_imports)] + +use frame_support::{traits::Get, weights::Weight}; +use sp_std::marker::PhantomData; + +/// Weight functions for `pallet_session`. +pub struct WeightInfo(PhantomData); +impl pallet_session::WeightInfo for WeightInfo { + // Storage: Session NextKeys (r:1 w:1) + // Storage: Session KeyOwner (r:1 w:1) + fn set_keys() -> Weight { + // Minimum execution time: 23_741 nanoseconds. + Weight::from_ref_time(24_524_000) + .saturating_add(T::DbWeight::get().reads(2)) + .saturating_add(T::DbWeight::get().writes(2)) + } + // Storage: Session NextKeys (r:1 w:1) + // Storage: Session KeyOwner (r:0 w:1) + fn purge_keys() -> Weight { + // Minimum execution time: 20_235 nanoseconds. + Weight::from_ref_time(21_008_000) + .saturating_add(T::DbWeight::get().reads(1)) + .saturating_add(T::DbWeight::get().writes(2)) + } +} diff --git a/runtime/trappist/src/weights/pallet_timestamp.rs b/runtime/trappist/src/weights/pallet_timestamp.rs new file mode 100644 index 00000000..2a310ed2 --- /dev/null +++ b/runtime/trappist/src/weights/pallet_timestamp.rs @@ -0,0 +1,64 @@ +// This file is part of Trappist. + +// Copyright (C) Parity Technologies (UK) Ltd. +// SPDX-License-Identifier: Apache-2.0 + +// Licensed under the Apache License, Version 2.0 (the "License"); +// 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 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +//! Autogenerated weights for `pallet_timestamp` +//! +//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev +//! DATE: 2023-06-13, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! HOSTNAME: `runner--ss9ysm1-project-647-concurrent-0`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz` +//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("trappist-dev"), DB CACHE: 1024 + +// Executed Command: +// ./target/production/trappist-node +// benchmark +// pallet +// --chain=trappist-dev +// --steps=50 +// --repeat=20 +// --no-storage-info +// --no-median-slopes +// --no-min-squares +// --pallet=pallet_timestamp +// --extrinsic=* +// --execution=wasm +// --wasm-execution=compiled +// --header=./templates/file_header.txt +// --output=./runtime/trappist/src/weights/ + +#![cfg_attr(rustfmt, rustfmt_skip)] +#![allow(unused_parens)] +#![allow(unused_imports)] + +use frame_support::{traits::Get, weights::Weight}; +use sp_std::marker::PhantomData; + +/// Weight functions for `pallet_timestamp`. +pub struct WeightInfo(PhantomData); +impl pallet_timestamp::WeightInfo for WeightInfo { + // Storage: Timestamp Now (r:1 w:1) + // Storage: Aura CurrentSlot (r:1 w:0) + fn set() -> Weight { + // Minimum execution time: 10_248 nanoseconds. + Weight::from_ref_time(10_468_000) + .saturating_add(T::DbWeight::get().reads(2)) + .saturating_add(T::DbWeight::get().writes(1)) + } + fn on_finalize() -> Weight { + // Minimum execution time: 4_374 nanoseconds. + Weight::from_ref_time(4_537_000) + } +} diff --git a/runtime/trappist/src/weights/pallet_treasury.rs b/runtime/trappist/src/weights/pallet_treasury.rs new file mode 100644 index 00000000..eca0a91e --- /dev/null +++ b/runtime/trappist/src/weights/pallet_treasury.rs @@ -0,0 +1,106 @@ +// This file is part of Trappist. + +// Copyright (C) Parity Technologies (UK) Ltd. +// SPDX-License-Identifier: Apache-2.0 + +// Licensed under the Apache License, Version 2.0 (the "License"); +// 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 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +//! Autogenerated weights for `pallet_treasury` +//! +//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev +//! DATE: 2023-06-13, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! HOSTNAME: `runner--ss9ysm1-project-647-concurrent-0`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz` +//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("trappist-dev"), DB CACHE: 1024 + +// Executed Command: +// ./target/production/trappist-node +// benchmark +// pallet +// --chain=trappist-dev +// --steps=50 +// --repeat=20 +// --no-storage-info +// --no-median-slopes +// --no-min-squares +// --pallet=pallet_treasury +// --extrinsic=* +// --execution=wasm +// --wasm-execution=compiled +// --header=./templates/file_header.txt +// --output=./runtime/trappist/src/weights/ + +#![cfg_attr(rustfmt, rustfmt_skip)] +#![allow(unused_parens)] +#![allow(unused_imports)] + +use frame_support::{traits::Get, weights::Weight}; +use sp_std::marker::PhantomData; + +/// Weight functions for `pallet_treasury`. +pub struct WeightInfo(PhantomData); +impl pallet_treasury::WeightInfo for WeightInfo { + fn spend() -> Weight { + // Minimum execution time: 148 nanoseconds. + Weight::from_ref_time(170_000) + } + // Storage: Treasury ProposalCount (r:1 w:1) + // Storage: Treasury Proposals (r:0 w:1) + fn propose_spend() -> Weight { + // Minimum execution time: 29_146 nanoseconds. + Weight::from_ref_time(29_861_000) + .saturating_add(T::DbWeight::get().reads(1)) + .saturating_add(T::DbWeight::get().writes(2)) + } + // Storage: Treasury Proposals (r:1 w:1) + // Storage: System Account (r:2 w:2) + fn reject_proposal() -> Weight { + // Minimum execution time: 42_275 nanoseconds. + Weight::from_ref_time(42_920_000) + .saturating_add(T::DbWeight::get().reads(3)) + .saturating_add(T::DbWeight::get().writes(3)) + } + // Storage: Treasury Proposals (r:1 w:0) + // Storage: Treasury Approvals (r:1 w:1) + /// The range of component `p` is `[0, 99]`. + fn approve_proposal(p: u32, ) -> Weight { + // Minimum execution time: 9_777 nanoseconds. + Weight::from_ref_time(12_362_664) + // Standard Error: 1_220 + .saturating_add(Weight::from_ref_time(117_749).saturating_mul(p.into())) + .saturating_add(T::DbWeight::get().reads(2)) + .saturating_add(T::DbWeight::get().writes(1)) + } + // Storage: Treasury Approvals (r:1 w:1) + fn remove_approval() -> Weight { + // Minimum execution time: 8_458 nanoseconds. + Weight::from_ref_time(8_771_000) + .saturating_add(T::DbWeight::get().reads(1)) + .saturating_add(T::DbWeight::get().writes(1)) + } + // Storage: System Account (r:1 w:0) + // Storage: Treasury Deactivated (r:1 w:1) + // Storage: Balances InactiveIssuance (r:1 w:1) + // Storage: Treasury Approvals (r:1 w:1) + // Storage: Treasury Proposals (r:2 w:2) + /// The range of component `p` is `[0, 100]`. + fn on_initialize_proposals(p: u32, ) -> Weight { + // Minimum execution time: 35_069 nanoseconds. + Weight::from_ref_time(42_256_398) + // Standard Error: 11_561 + .saturating_add(Weight::from_ref_time(30_696_908).saturating_mul(p.into())) + .saturating_add(T::DbWeight::get().reads(4)) + .saturating_add(T::DbWeight::get().reads((3_u64).saturating_mul(p.into()))) + .saturating_add(T::DbWeight::get().writes(4)) + .saturating_add(T::DbWeight::get().writes((3_u64).saturating_mul(p.into()))) + } +} diff --git a/runtime/trappist/src/weights/pallet_uniques.rs b/runtime/trappist/src/weights/pallet_uniques.rs new file mode 100644 index 00000000..342eaef9 --- /dev/null +++ b/runtime/trappist/src/weights/pallet_uniques.rs @@ -0,0 +1,291 @@ +// This file is part of Trappist. + +// Copyright (C) Parity Technologies (UK) Ltd. +// SPDX-License-Identifier: Apache-2.0 + +// Licensed under the Apache License, Version 2.0 (the "License"); +// 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 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +//! Autogenerated weights for `pallet_uniques` +//! +//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev +//! DATE: 2023-06-13, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! HOSTNAME: `runner--ss9ysm1-project-647-concurrent-0`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz` +//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("trappist-dev"), DB CACHE: 1024 + +// Executed Command: +// ./target/production/trappist-node +// benchmark +// pallet +// --chain=trappist-dev +// --steps=50 +// --repeat=20 +// --no-storage-info +// --no-median-slopes +// --no-min-squares +// --pallet=pallet_uniques +// --extrinsic=* +// --execution=wasm +// --wasm-execution=compiled +// --header=./templates/file_header.txt +// --output=./runtime/trappist/src/weights/ + +#![cfg_attr(rustfmt, rustfmt_skip)] +#![allow(unused_parens)] +#![allow(unused_imports)] + +use frame_support::{traits::Get, weights::Weight}; +use sp_std::marker::PhantomData; + +/// Weight functions for `pallet_uniques`. +pub struct WeightInfo(PhantomData); +impl pallet_uniques::WeightInfo for WeightInfo { + // Storage: Uniques Class (r:1 w:1) + // Storage: Uniques ClassAccount (r:0 w:1) + fn create() -> Weight { + // Minimum execution time: 30_826 nanoseconds. + Weight::from_ref_time(32_127_000) + .saturating_add(T::DbWeight::get().reads(1)) + .saturating_add(T::DbWeight::get().writes(2)) + } + // Storage: Uniques Class (r:1 w:1) + // Storage: Uniques ClassAccount (r:0 w:1) + fn force_create() -> Weight { + // Minimum execution time: 20_738 nanoseconds. + Weight::from_ref_time(21_254_000) + .saturating_add(T::DbWeight::get().reads(1)) + .saturating_add(T::DbWeight::get().writes(2)) + } + // Storage: Uniques Class (r:1 w:1) + // Storage: Uniques Asset (r:1 w:0) + // Storage: Uniques ClassAccount (r:0 w:1) + // Storage: Uniques Attribute (r:0 w:1000) + // Storage: Uniques ClassMetadataOf (r:0 w:1) + // Storage: Uniques InstanceMetadataOf (r:0 w:1000) + // Storage: Uniques CollectionMaxSupply (r:0 w:1) + // Storage: Uniques Account (r:0 w:20) + /// The range of component `n` is `[0, 1000]`. + /// The range of component `m` is `[0, 1000]`. + /// The range of component `a` is `[0, 1000]`. + fn destroy(n: u32, m: u32, a: u32, ) -> Weight { + // Minimum execution time: 2_678_540 nanoseconds. + Weight::from_ref_time(2_693_694_000) + // Standard Error: 28_368 + .saturating_add(Weight::from_ref_time(8_881_766).saturating_mul(n.into())) + // Standard Error: 28_368 + .saturating_add(Weight::from_ref_time(277_451).saturating_mul(m.into())) + // Standard Error: 28_368 + .saturating_add(Weight::from_ref_time(382_866).saturating_mul(a.into())) + .saturating_add(T::DbWeight::get().reads(2)) + .saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(n.into()))) + .saturating_add(T::DbWeight::get().writes(4)) + .saturating_add(T::DbWeight::get().writes((2_u64).saturating_mul(n.into()))) + .saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(m.into()))) + .saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(a.into()))) + } + // Storage: Uniques Asset (r:1 w:1) + // Storage: Uniques Class (r:1 w:1) + // Storage: Uniques CollectionMaxSupply (r:1 w:0) + // Storage: Uniques Account (r:0 w:1) + fn mint() -> Weight { + // Minimum execution time: 39_837 nanoseconds. + Weight::from_ref_time(41_826_000) + .saturating_add(T::DbWeight::get().reads(3)) + .saturating_add(T::DbWeight::get().writes(3)) + } + // Storage: Uniques Class (r:1 w:1) + // Storage: Uniques Asset (r:1 w:1) + // Storage: Uniques Account (r:0 w:1) + // Storage: Uniques ItemPriceOf (r:0 w:1) + fn burn() -> Weight { + // Minimum execution time: 40_846 nanoseconds. + Weight::from_ref_time(42_605_000) + .saturating_add(T::DbWeight::get().reads(2)) + .saturating_add(T::DbWeight::get().writes(4)) + } + // Storage: Uniques Class (r:1 w:0) + // Storage: Uniques Asset (r:1 w:1) + // Storage: Uniques Account (r:0 w:2) + // Storage: Uniques ItemPriceOf (r:0 w:1) + fn transfer() -> Weight { + // Minimum execution time: 31_566 nanoseconds. + Weight::from_ref_time(32_243_000) + .saturating_add(T::DbWeight::get().reads(2)) + .saturating_add(T::DbWeight::get().writes(4)) + } + // Storage: Uniques Class (r:1 w:1) + // Storage: Uniques Asset (r:102 w:102) + /// The range of component `i` is `[0, 5000]`. + fn redeposit(i: u32, ) -> Weight { + // Minimum execution time: 20_645 nanoseconds. + Weight::from_ref_time(20_816_000) + // Standard Error: 13_527 + .saturating_add(Weight::from_ref_time(12_633_579).saturating_mul(i.into())) + .saturating_add(T::DbWeight::get().reads(1)) + .saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(i.into()))) + .saturating_add(T::DbWeight::get().writes(1)) + .saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(i.into()))) + } + // Storage: Uniques Asset (r:1 w:1) + // Storage: Uniques Class (r:1 w:0) + fn freeze() -> Weight { + // Minimum execution time: 24_415 nanoseconds. + Weight::from_ref_time(25_018_000) + .saturating_add(T::DbWeight::get().reads(2)) + .saturating_add(T::DbWeight::get().writes(1)) + } + // Storage: Uniques Asset (r:1 w:1) + // Storage: Uniques Class (r:1 w:0) + fn thaw() -> Weight { + // Minimum execution time: 24_196 nanoseconds. + Weight::from_ref_time(24_961_000) + .saturating_add(T::DbWeight::get().reads(2)) + .saturating_add(T::DbWeight::get().writes(1)) + } + // Storage: Uniques Class (r:1 w:1) + fn freeze_collection() -> Weight { + // Minimum execution time: 19_926 nanoseconds. + Weight::from_ref_time(20_321_000) + .saturating_add(T::DbWeight::get().reads(1)) + .saturating_add(T::DbWeight::get().writes(1)) + } + // Storage: Uniques Class (r:1 w:1) + fn thaw_collection() -> Weight { + // Minimum execution time: 19_922 nanoseconds. + Weight::from_ref_time(20_811_000) + .saturating_add(T::DbWeight::get().reads(1)) + .saturating_add(T::DbWeight::get().writes(1)) + } + // Storage: Uniques OwnershipAcceptance (r:1 w:1) + // Storage: Uniques Class (r:1 w:1) + // Storage: Uniques ClassAccount (r:0 w:2) + fn transfer_ownership() -> Weight { + // Minimum execution time: 27_950 nanoseconds. + Weight::from_ref_time(29_189_000) + .saturating_add(T::DbWeight::get().reads(2)) + .saturating_add(T::DbWeight::get().writes(4)) + } + // Storage: Uniques Class (r:1 w:1) + fn set_team() -> Weight { + // Minimum execution time: 20_080 nanoseconds. + Weight::from_ref_time(20_593_000) + .saturating_add(T::DbWeight::get().reads(1)) + .saturating_add(T::DbWeight::get().writes(1)) + } + // Storage: Uniques Class (r:1 w:1) + // Storage: Uniques ClassAccount (r:0 w:1) + fn force_item_status() -> Weight { + // Minimum execution time: 22_963 nanoseconds. + Weight::from_ref_time(23_447_000) + .saturating_add(T::DbWeight::get().reads(1)) + .saturating_add(T::DbWeight::get().writes(2)) + } + // Storage: Uniques Class (r:1 w:1) + // Storage: Uniques InstanceMetadataOf (r:1 w:0) + // Storage: Uniques Attribute (r:1 w:1) + fn set_attribute() -> Weight { + // Minimum execution time: 45_108 nanoseconds. + Weight::from_ref_time(46_223_000) + .saturating_add(T::DbWeight::get().reads(3)) + .saturating_add(T::DbWeight::get().writes(2)) + } + // Storage: Uniques Class (r:1 w:1) + // Storage: Uniques InstanceMetadataOf (r:1 w:0) + // Storage: Uniques Attribute (r:1 w:1) + fn clear_attribute() -> Weight { + // Minimum execution time: 44_615 nanoseconds. + Weight::from_ref_time(47_598_000) + .saturating_add(T::DbWeight::get().reads(3)) + .saturating_add(T::DbWeight::get().writes(2)) + } + // Storage: Uniques Class (r:1 w:1) + // Storage: Uniques InstanceMetadataOf (r:1 w:1) + fn set_metadata() -> Weight { + // Minimum execution time: 36_308 nanoseconds. + Weight::from_ref_time(37_275_000) + .saturating_add(T::DbWeight::get().reads(2)) + .saturating_add(T::DbWeight::get().writes(2)) + } + // Storage: Uniques Class (r:1 w:1) + // Storage: Uniques InstanceMetadataOf (r:1 w:1) + fn clear_metadata() -> Weight { + // Minimum execution time: 36_510 nanoseconds. + Weight::from_ref_time(37_721_000) + .saturating_add(T::DbWeight::get().reads(2)) + .saturating_add(T::DbWeight::get().writes(2)) + } + // Storage: Uniques Class (r:1 w:1) + // Storage: Uniques ClassMetadataOf (r:1 w:1) + fn set_collection_metadata() -> Weight { + // Minimum execution time: 35_250 nanoseconds. + Weight::from_ref_time(36_183_000) + .saturating_add(T::DbWeight::get().reads(2)) + .saturating_add(T::DbWeight::get().writes(2)) + } + // Storage: Uniques Class (r:1 w:0) + // Storage: Uniques ClassMetadataOf (r:1 w:1) + fn clear_collection_metadata() -> Weight { + // Minimum execution time: 34_299 nanoseconds. + Weight::from_ref_time(35_378_000) + .saturating_add(T::DbWeight::get().reads(2)) + .saturating_add(T::DbWeight::get().writes(1)) + } + // Storage: Uniques Class (r:1 w:0) + // Storage: Uniques Asset (r:1 w:1) + fn approve_transfer() -> Weight { + // Minimum execution time: 25_184 nanoseconds. + Weight::from_ref_time(26_055_000) + .saturating_add(T::DbWeight::get().reads(2)) + .saturating_add(T::DbWeight::get().writes(1)) + } + // Storage: Uniques Class (r:1 w:0) + // Storage: Uniques Asset (r:1 w:1) + fn cancel_approval() -> Weight { + // Minimum execution time: 25_090 nanoseconds. + Weight::from_ref_time(25_981_000) + .saturating_add(T::DbWeight::get().reads(2)) + .saturating_add(T::DbWeight::get().writes(1)) + } + // Storage: Uniques OwnershipAcceptance (r:1 w:1) + fn set_accept_ownership() -> Weight { + // Minimum execution time: 23_439 nanoseconds. + Weight::from_ref_time(24_255_000) + .saturating_add(T::DbWeight::get().reads(1)) + .saturating_add(T::DbWeight::get().writes(1)) + } + // Storage: Uniques CollectionMaxSupply (r:1 w:1) + // Storage: Uniques Class (r:1 w:0) + fn set_collection_max_supply() -> Weight { + // Minimum execution time: 22_127 nanoseconds. + Weight::from_ref_time(22_600_000) + .saturating_add(T::DbWeight::get().reads(2)) + .saturating_add(T::DbWeight::get().writes(1)) + } + // Storage: Uniques Asset (r:1 w:0) + // Storage: Uniques ItemPriceOf (r:0 w:1) + fn set_price() -> Weight { + // Minimum execution time: 22_365 nanoseconds. + Weight::from_ref_time(23_021_000) + .saturating_add(T::DbWeight::get().reads(1)) + .saturating_add(T::DbWeight::get().writes(1)) + } + // Storage: Uniques Asset (r:1 w:1) + // Storage: Uniques ItemPriceOf (r:1 w:1) + // Storage: Uniques Class (r:1 w:0) + // Storage: Uniques Account (r:0 w:2) + fn buy_item() -> Weight { + // Minimum execution time: 43_019 nanoseconds. + Weight::from_ref_time(44_830_000) + .saturating_add(T::DbWeight::get().reads(3)) + .saturating_add(T::DbWeight::get().writes(4)) + } +} diff --git a/runtime/trappist/src/weights/pallet_utility.rs b/runtime/trappist/src/weights/pallet_utility.rs new file mode 100644 index 00000000..cd50f45a --- /dev/null +++ b/runtime/trappist/src/weights/pallet_utility.rs @@ -0,0 +1,89 @@ +// This file is part of Trappist. + +// Copyright (C) Parity Technologies (UK) Ltd. +// SPDX-License-Identifier: Apache-2.0 + +// Licensed under the Apache License, Version 2.0 (the "License"); +// 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 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +//! Autogenerated weights for `pallet_utility` +//! +//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev +//! DATE: 2023-06-13, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! HOSTNAME: `runner--ss9ysm1-project-647-concurrent-0`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz` +//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("trappist-dev"), DB CACHE: 1024 + +// Executed Command: +// ./target/production/trappist-node +// benchmark +// pallet +// --chain=trappist-dev +// --steps=50 +// --repeat=20 +// --no-storage-info +// --no-median-slopes +// --no-min-squares +// --pallet=pallet_utility +// --extrinsic=* +// --execution=wasm +// --wasm-execution=compiled +// --header=./templates/file_header.txt +// --output=./runtime/trappist/src/weights/ + +#![cfg_attr(rustfmt, rustfmt_skip)] +#![allow(unused_parens)] +#![allow(unused_imports)] + +use frame_support::{traits::Get, weights::Weight}; +use sp_std::marker::PhantomData; + +/// Weight functions for `pallet_utility`. +pub struct WeightInfo(PhantomData); +impl pallet_utility::WeightInfo for WeightInfo { + // Storage: LockdownMode LockdownModeStatus (r:1 w:0) + /// The range of component `c` is `[0, 1000]`. + fn batch(c: u32, ) -> Weight { + // Minimum execution time: 14_184 nanoseconds. + Weight::from_ref_time(19_921_947) + // Standard Error: 4_638 + .saturating_add(Weight::from_ref_time(5_322_229).saturating_mul(c.into())) + .saturating_add(T::DbWeight::get().reads(1)) + } + // Storage: LockdownMode LockdownModeStatus (r:1 w:0) + fn as_derivative() -> Weight { + // Minimum execution time: 9_510 nanoseconds. + Weight::from_ref_time(9_788_000) + .saturating_add(T::DbWeight::get().reads(1)) + } + // Storage: LockdownMode LockdownModeStatus (r:1 w:0) + /// The range of component `c` is `[0, 1000]`. + fn batch_all(c: u32, ) -> Weight { + // Minimum execution time: 13_965 nanoseconds. + Weight::from_ref_time(27_504_133) + // Standard Error: 2_740 + .saturating_add(Weight::from_ref_time(5_479_324).saturating_mul(c.into())) + .saturating_add(T::DbWeight::get().reads(1)) + } + fn dispatch_as() -> Weight { + // Minimum execution time: 16_231 nanoseconds. + Weight::from_ref_time(16_856_000) + } + // Storage: LockdownMode LockdownModeStatus (r:1 w:0) + /// The range of component `c` is `[0, 1000]`. + fn force_batch(c: u32, ) -> Weight { + // Minimum execution time: 13_921 nanoseconds. + Weight::from_ref_time(19_411_547) + // Standard Error: 1_722 + .saturating_add(Weight::from_ref_time(5_317_525).saturating_mul(c.into())) + .saturating_add(T::DbWeight::get().reads(1)) + } +} diff --git a/runtime/trappist/src/weights/trappist_runtime_benchmarks.rs b/runtime/trappist/src/weights/trappist_runtime_benchmarks.rs index 01c94aac..31aba11a 100644 --- a/runtime/trappist/src/weights/trappist_runtime_benchmarks.rs +++ b/runtime/trappist/src/weights/trappist_runtime_benchmarks.rs @@ -18,26 +18,26 @@ //! Autogenerated weights for `trappist_runtime_benchmarks` //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev -//! DATE: 2023-05-08, STEPS: `20`, REPEAT: 10, LOW RANGE: `[]`, HIGH RANGE: `[]` -//! HOSTNAME: `kalan-x1x`, CPU: `12th Gen Intel(R) Core(TM) i7-12800H` -//! EXECUTION: None, WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024 +//! DATE: 2023-06-13, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! HOSTNAME: `runner--ss9ysm1-project-647-concurrent-0`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz` +//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("trappist-dev"), DB CACHE: 1024 // Executed Command: -// target/release/trappist-collator +// ./target/production/trappist-node // benchmark // pallet -// --chain -// dev -// --pallet -// trappist_runtime_benchmarks -// --extrinsic -// * -// --steps -// 20 -// --repeat -// 10 -// --output -// runtime/trappist/src/weights/trappist_runtime_benchmarks.rs +// --chain=trappist-dev +// --steps=50 +// --repeat=20 +// --no-storage-info +// --no-median-slopes +// --no-min-squares +// --pallet=trappist_runtime_benchmarks +// --extrinsic=* +// --execution=wasm +// --wasm-execution=compiled +// --header=./templates/file_header.txt +// --output=./runtime/trappist/src/weights/ #![cfg_attr(rustfmt, rustfmt_skip)] #![allow(unused_parens)] @@ -52,18 +52,18 @@ impl trappist_runtime_benchmarks::WeightInfo for Weight // Storage: AssetRegistry AssetMultiLocationId (r:1 w:0) // Storage: Assets Asset (r:1 w:0) fn drop_assets_fungible() -> Weight { - // Minimum execution time: 4_589 nanoseconds. - Weight::from_ref_time(4_898_000) + // Minimum execution time: 7_666 nanoseconds. + Weight::from_ref_time(7_812_000) .saturating_add(T::DbWeight::get().reads(2)) } // Storage: AssetRegistry AssetMultiLocationId (r:1 w:0) fn drop_assets_native() -> Weight { - // Minimum execution time: 2_157 nanoseconds. - Weight::from_ref_time(2_314_000) + // Minimum execution time: 4_031 nanoseconds. + Weight::from_ref_time(4_180_000) .saturating_add(T::DbWeight::get().reads(1)) } fn drop_assets_default() -> Weight { - // Minimum execution time: 130 nanoseconds. - Weight::from_ref_time(154_000) + // Minimum execution time: 1_212 nanoseconds. + Weight::from_ref_time(1_261_000) } } diff --git a/runtime/trappist/src/weights/xcm/pallet_xcm_benchmarks_fungible.rs b/runtime/trappist/src/weights/xcm/pallet_xcm_benchmarks_fungible.rs index 30f944f6..d6434916 100644 --- a/runtime/trappist/src/weights/xcm/pallet_xcm_benchmarks_fungible.rs +++ b/runtime/trappist/src/weights/xcm/pallet_xcm_benchmarks_fungible.rs @@ -1,42 +1,27 @@ -// This file is part of Trappist. - -// Copyright (C) Parity Technologies (UK) Ltd. -// SPDX-License-Identifier: Apache-2.0 - -// Licensed under the Apache License, Version 2.0 (the "License"); -// 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 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - //! Autogenerated weights for `pallet_xcm_benchmarks::fungible` //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev -//! DATE: 2023-01-13, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` -//! HOSTNAME: `bm5`, CPU: `Intel(R) Core(TM) i7-7700K CPU @ 4.20GHz` -//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("statemine-dev"), DB CACHE: 1024 +//! DATE: 2023-06-13, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! HOSTNAME: `runner--ss9ysm1-project-647-concurrent-0`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz` +//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("trappist-dev"), DB CACHE: 1024 // Executed Command: -// ./artifacts/polkadot-parachain +// ./target/production/trappist-node // benchmark // pallet // --template=./templates/xcm-bench-template.hbs -// --chain=statemine-dev -// --execution=wasm -// --wasm-execution=compiled -// --pallet=pallet_xcm_benchmarks::fungible -// --extrinsic=* +// --chain=trappist-dev // --steps=50 // --repeat=20 -// --json -// --header=./file_header.txt -// --output=./parachains/runtimes/assets/statemine/src/weights/xcm/pallet_xcm_benchmarks_fungible.rs +// --no-storage-info +// --no-median-slopes +// --no-min-squares +// --pallet=pallet_xcm_benchmarks::fungible +// --extrinsic=* +// --execution=wasm +// --wasm-execution=compiled +// --header=./templates/file_header.txt +// --output=./runtime/trappist/src/weights/xcm/pallet_xcm_benchmarks_fungible.rs #![cfg_attr(rustfmt, rustfmt_skip)] #![allow(unused_parens)] @@ -50,13 +35,13 @@ pub struct WeightInfo(PhantomData); impl WeightInfo { // Storage: System Account (r:1 w:1) pub(crate) fn withdraw_asset() -> Weight { - Weight::from_ref_time(32_395_000 as u64) + Weight::from_ref_time(32_958_000 as u64) .saturating_add(T::DbWeight::get().reads(1 as u64)) .saturating_add(T::DbWeight::get().writes(1 as u64)) } // Storage: System Account (r:2 w:2) pub(crate) fn transfer_asset() -> Weight { - Weight::from_ref_time(36_705_000 as u64) + Weight::from_ref_time(40_173_000 as u64) .saturating_add(T::DbWeight::get().reads(2 as u64)) .saturating_add(T::DbWeight::get().writes(2 as u64)) } @@ -68,16 +53,17 @@ impl WeightInfo { // Storage: ParachainSystem HostConfiguration (r:1 w:0) // Storage: ParachainSystem PendingUpwardMessages (r:1 w:1) pub(crate) fn transfer_reserve_asset() -> Weight { - Weight::from_ref_time(53_102_000 as u64) + Weight::from_ref_time(57_699_000 as u64) .saturating_add(T::DbWeight::get().reads(8 as u64)) .saturating_add(T::DbWeight::get().writes(4 as u64)) } + // Storage: Benchmark Override (r:0 w:0) pub(crate) fn receive_teleported_asset() -> Weight { - Weight::from_ref_time(6_306_000 as u64) + Weight::from_ref_time(500_000_000_000 as u64) } // Storage: System Account (r:1 w:1) pub(crate) fn deposit_asset() -> Weight { - Weight::from_ref_time(33_737_000 as u64) + Weight::from_ref_time(34_650_000 as u64) .saturating_add(T::DbWeight::get().reads(1 as u64)) .saturating_add(T::DbWeight::get().writes(1 as u64)) } @@ -89,10 +75,11 @@ impl WeightInfo { // Storage: ParachainSystem HostConfiguration (r:1 w:0) // Storage: ParachainSystem PendingUpwardMessages (r:1 w:1) pub(crate) fn deposit_reserve_asset() -> Weight { - Weight::from_ref_time(51_734_000 as u64) + Weight::from_ref_time(54_505_000 as u64) .saturating_add(T::DbWeight::get().reads(7 as u64)) .saturating_add(T::DbWeight::get().writes(3 as u64)) } + // Storage: AssetRegistry AssetMultiLocationId (r:1 w:0) // Storage: ParachainInfo ParachainId (r:1 w:0) // Storage: PolkadotXcm SupportedVersion (r:1 w:0) // Storage: PolkadotXcm VersionDiscoveryQueue (r:1 w:1) @@ -100,8 +87,8 @@ impl WeightInfo { // Storage: ParachainSystem HostConfiguration (r:1 w:0) // Storage: ParachainSystem PendingUpwardMessages (r:1 w:1) pub(crate) fn initiate_teleport() -> Weight { - Weight::from_ref_time(27_964_000 as u64) - .saturating_add(T::DbWeight::get().reads(6 as u64)) + Weight::from_ref_time(31_002_000 as u64) + .saturating_add(T::DbWeight::get().reads(7 as u64)) .saturating_add(T::DbWeight::get().writes(2 as u64)) } } diff --git a/runtime/trappist/src/weights/xcm/pallet_xcm_benchmarks_generic.rs b/runtime/trappist/src/weights/xcm/pallet_xcm_benchmarks_generic.rs index b6019085..b9187ac2 100644 --- a/runtime/trappist/src/weights/xcm/pallet_xcm_benchmarks_generic.rs +++ b/runtime/trappist/src/weights/xcm/pallet_xcm_benchmarks_generic.rs @@ -1,42 +1,27 @@ -// This file is part of Trappist. - -// Copyright (C) Parity Technologies (UK) Ltd. -// SPDX-License-Identifier: Apache-2.0 - -// Licensed under the Apache License, Version 2.0 (the "License"); -// 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 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - //! Autogenerated weights for `pallet_xcm_benchmarks::generic` //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev -//! DATE: 2023-01-13, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` -//! HOSTNAME: `bm5`, CPU: `Intel(R) Core(TM) i7-7700K CPU @ 4.20GHz` -//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("statemine-dev"), DB CACHE: 1024 +//! DATE: 2023-06-13, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! HOSTNAME: `runner--ss9ysm1-project-647-concurrent-0`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz` +//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("trappist-dev"), DB CACHE: 1024 // Executed Command: -// ./artifacts/polkadot-parachain +// ./target/production/trappist-node // benchmark // pallet // --template=./templates/xcm-bench-template.hbs -// --chain=statemine-dev -// --execution=wasm -// --wasm-execution=compiled -// --pallet=pallet_xcm_benchmarks::generic -// --extrinsic=* +// --chain=trappist-dev // --steps=50 // --repeat=20 -// --json -// --header=./file_header.txt -// --output=./parachains/runtimes/assets/statemine/src/weights/xcm/pallet_xcm_benchmarks_generic.rs +// --no-storage-info +// --no-median-slopes +// --no-min-squares +// --pallet=pallet_xcm_benchmarks::generic +// --extrinsic=* +// --execution=wasm +// --wasm-execution=compiled +// --header=./templates/file_header.txt +// --output=./runtime/trappist/src/weights/xcm/pallet_xcm_benchmarks_generic.rs #![cfg_attr(rustfmt, rustfmt_skip)] #![allow(unused_parens)] @@ -55,38 +40,40 @@ impl WeightInfo { // Storage: ParachainSystem HostConfiguration (r:1 w:0) // Storage: ParachainSystem PendingUpwardMessages (r:1 w:1) pub(crate) fn query_holding() -> Weight { - Weight::from_ref_time(868_004_000 as u64) + Weight::from_ref_time(894_945_000 as u64) .saturating_add(T::DbWeight::get().reads(6 as u64)) .saturating_add(T::DbWeight::get().writes(2 as u64)) } pub(crate) fn buy_execution() -> Weight { - Weight::from_ref_time(8_745_000 as u64) + Weight::from_ref_time(8_432_000 as u64) } // Storage: PolkadotXcm Queries (r:1 w:0) pub(crate) fn query_response() -> Weight { - Weight::from_ref_time(17_072_000 as u64) + Weight::from_ref_time(18_622_000 as u64) .saturating_add(T::DbWeight::get().reads(1 as u64)) } + // Storage: LockdownMode LockdownModeStatus (r:1 w:0) pub(crate) fn transact() -> Weight { - Weight::from_ref_time(20_320_000 as u64) + Weight::from_ref_time(24_183_000 as u64) + .saturating_add(T::DbWeight::get().reads(1 as u64)) } pub(crate) fn refund_surplus() -> Weight { - Weight::from_ref_time(9_175_000 as u64) + Weight::from_ref_time(8_624_000 as u64) } pub(crate) fn set_error_handler() -> Weight { - Weight::from_ref_time(5_210_000 as u64) + Weight::from_ref_time(5_380_000 as u64) } pub(crate) fn set_appendix() -> Weight { - Weight::from_ref_time(5_300_000 as u64) + Weight::from_ref_time(5_416_000 as u64) } pub(crate) fn clear_error() -> Weight { - Weight::from_ref_time(5_299_000 as u64) + Weight::from_ref_time(5_443_000 as u64) } pub(crate) fn descend_origin() -> Weight { - Weight::from_ref_time(6_512_000 as u64) + Weight::from_ref_time(6_825_000 as u64) } pub(crate) fn clear_origin() -> Weight { - Weight::from_ref_time(5_326_000 as u64) + Weight::from_ref_time(5_420_000 as u64) } // Storage: PolkadotXcm SupportedVersion (r:1 w:0) // Storage: PolkadotXcm VersionDiscoveryQueue (r:1 w:1) @@ -94,18 +81,18 @@ impl WeightInfo { // Storage: ParachainSystem HostConfiguration (r:1 w:0) // Storage: ParachainSystem PendingUpwardMessages (r:1 w:1) pub(crate) fn report_error() -> Weight { - Weight::from_ref_time(15_464_000 as u64) + Weight::from_ref_time(15_675_000 as u64) .saturating_add(T::DbWeight::get().reads(5 as u64)) .saturating_add(T::DbWeight::get().writes(2 as u64)) } // Storage: PolkadotXcm AssetTraps (r:1 w:1) pub(crate) fn claim_asset() -> Weight { - Weight::from_ref_time(21_533_000 as u64) + Weight::from_ref_time(22_783_000 as u64) .saturating_add(T::DbWeight::get().reads(1 as u64)) .saturating_add(T::DbWeight::get().writes(1 as u64)) } pub(crate) fn trap() -> Weight { - Weight::from_ref_time(5_143_000 as u64) + Weight::from_ref_time(5_433_000 as u64) } // Storage: PolkadotXcm VersionNotifyTargets (r:1 w:1) // Storage: PolkadotXcm SupportedVersion (r:1 w:0) @@ -114,13 +101,13 @@ impl WeightInfo { // Storage: ParachainSystem HostConfiguration (r:1 w:0) // Storage: ParachainSystem PendingUpwardMessages (r:1 w:1) pub(crate) fn subscribe_version() -> Weight { - Weight::from_ref_time(18_320_000 as u64) + Weight::from_ref_time(18_760_000 as u64) .saturating_add(T::DbWeight::get().reads(6 as u64)) .saturating_add(T::DbWeight::get().writes(3 as u64)) } // Storage: PolkadotXcm VersionNotifyTargets (r:0 w:1) pub(crate) fn unsubscribe_version() -> Weight { - Weight::from_ref_time(7_512_000 as u64) + Weight::from_ref_time(7_158_000 as u64) .saturating_add(T::DbWeight::get().writes(1 as u64)) } // Storage: ParachainInfo ParachainId (r:1 w:0) @@ -130,7 +117,7 @@ impl WeightInfo { // Storage: ParachainSystem HostConfiguration (r:1 w:0) // Storage: ParachainSystem PendingUpwardMessages (r:1 w:1) pub(crate) fn initiate_reserve_withdraw() -> Weight { - Weight::from_ref_time(1_091_687_000 as u64) + Weight::from_ref_time(1_120_281_000 as u64) .saturating_add(T::DbWeight::get().reads(6 as u64)) .saturating_add(T::DbWeight::get().writes(2 as u64)) } diff --git a/runtime/trappist/src/xcm_config.rs b/runtime/trappist/src/xcm_config.rs index 0034dc6d..fb5713b5 100644 --- a/runtime/trappist/src/xcm_config.rs +++ b/runtime/trappist/src/xcm_config.rs @@ -16,7 +16,8 @@ // limitations under the License. use crate::{ - constants::fee::default_fee_per_second, impls::ToAuthor, weights::TrappistDropAssetsWeigher, + constants::fee::default_fee_per_second, impls::ToAuthor, weights, + weights::TrappistDropAssetsWeigher, }; use super::{ @@ -338,7 +339,7 @@ impl cumulus_pallet_xcmp_queue::Config for Runtime { EnsureXcm>, >; type ControllerOriginConverter = XcmOriginToTransactDispatchOrigin; - type WeightInfo = cumulus_pallet_xcmp_queue::weights::SubstrateWeight; + type WeightInfo = weights::cumulus_pallet_xcmp_queue::WeightInfo; } impl cumulus_pallet_dmp_queue::Config for Runtime {