Revert "FRAME: Create TransactionExtension as a replacement for SignedExtension (#2280)" (#3665)

This PR reverts #2280 which introduced `TransactionExtension` to replace
`SignedExtension`.

As a result of the discussion
[here](https://github.com/paritytech/polkadot-sdk/pull/3623#issuecomment-1986789700),
the changes will be reverted for now with plans to reintroduce the
concept in the future.

---------

Signed-off-by: georgepisaltu <george.pisaltu@parity.io>
This commit is contained in:
georgepisaltu
2024-03-13 16:10:59 +02:00
committed by GitHub
parent 60ac5a723c
commit bbd51ce867
350 changed files with 15826 additions and 24304 deletions
@@ -33,7 +33,7 @@ pub trait WeightInfo {
/// Weights for `{{pallet}}` using the Substrate node and recommended hardware.
pub struct SubstrateWeight<T>(PhantomData<T>);
{{#if (or (eq pallet "frame_system") (eq pallet "frame_system_extensions"))}}
{{#if (eq pallet "frame_system")}}
impl<T: crate::Config> WeightInfo for SubstrateWeight<T> {
{{else}}
impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
-2
View File
@@ -196,7 +196,6 @@ runtime-benchmarks = [
"frame-system/runtime-benchmarks",
"kitchensink-runtime/runtime-benchmarks",
"node-inspect?/runtime-benchmarks",
"pallet-asset-conversion-tx-payment/runtime-benchmarks",
"pallet-asset-tx-payment/runtime-benchmarks",
"pallet-assets/runtime-benchmarks",
"pallet-balances/runtime-benchmarks",
@@ -206,7 +205,6 @@ runtime-benchmarks = [
"pallet-skip-feeless-payment/runtime-benchmarks",
"pallet-sudo/runtime-benchmarks",
"pallet-timestamp/runtime-benchmarks",
"pallet-transaction-payment/runtime-benchmarks",
"pallet-treasury/runtime-benchmarks",
"sc-client-db/runtime-benchmarks",
"sc-service/runtime-benchmarks",
@@ -110,7 +110,7 @@ fn new_node(tokio_handle: Handle) -> node_cli::service::NewFullBase {
fn extrinsic_set_time(now: u64) -> OpaqueExtrinsic {
kitchensink_runtime::UncheckedExtrinsic {
preamble: sp_runtime::generic::Preamble::Bare,
signature: None,
function: kitchensink_runtime::RuntimeCall::Timestamp(pallet_timestamp::Call::set { now }),
}
.into()
+3 -3
View File
@@ -29,7 +29,7 @@ use sp_core::{
storage::well_known_keys,
traits::{CallContext, CodeExecutor, RuntimeCode},
};
use sp_runtime::{generic::ExtrinsicFormat, traits::BlakeTwo256};
use sp_runtime::traits::BlakeTwo256;
use sp_state_machine::TestExternalities as CoreTestExternalities;
use staging_node_cli::service::RuntimeExecutor;
@@ -144,11 +144,11 @@ fn test_blocks(
) -> Vec<(Vec<u8>, Hash)> {
let mut test_ext = new_test_ext(genesis_config);
let mut block1_extrinsics = vec![CheckedExtrinsic {
format: ExtrinsicFormat::Bare,
signed: None,
function: RuntimeCall::Timestamp(pallet_timestamp::Call::set { now: 0 }),
}];
block1_extrinsics.extend((0..20).map(|i| CheckedExtrinsic {
format: ExtrinsicFormat::Signed(alice(), tx_ext(i, 0)),
signed: Some((alice(), signed_extra(i, 0))),
function: RuntimeCall::Balances(pallet_balances::Call::transfer_allow_death {
dest: bob().into(),
value: 1 * DOLLARS,
+33 -44
View File
@@ -107,21 +107,18 @@ pub fn create_extrinsic(
.map(|c| c / 2)
.unwrap_or(2) as u64;
let tip = 0;
let tx_ext: kitchensink_runtime::TxExtension =
let extra: kitchensink_runtime::SignedExtra =
(
(
frame_system::CheckNonZeroSender::<kitchensink_runtime::Runtime>::new(),
frame_system::CheckSpecVersion::<kitchensink_runtime::Runtime>::new(),
frame_system::CheckTxVersion::<kitchensink_runtime::Runtime>::new(),
frame_system::CheckGenesis::<kitchensink_runtime::Runtime>::new(),
frame_system::CheckEra::<kitchensink_runtime::Runtime>::from(generic::Era::mortal(
period,
best_block.saturated_into(),
)),
frame_system::CheckNonce::<kitchensink_runtime::Runtime>::from(nonce),
frame_system::CheckWeight::<kitchensink_runtime::Runtime>::new(),
)
.into(),
frame_system::CheckNonZeroSender::<kitchensink_runtime::Runtime>::new(),
frame_system::CheckSpecVersion::<kitchensink_runtime::Runtime>::new(),
frame_system::CheckTxVersion::<kitchensink_runtime::Runtime>::new(),
frame_system::CheckGenesis::<kitchensink_runtime::Runtime>::new(),
frame_system::CheckEra::<kitchensink_runtime::Runtime>::from(generic::Era::mortal(
period,
best_block.saturated_into(),
)),
frame_system::CheckNonce::<kitchensink_runtime::Runtime>::from(nonce),
frame_system::CheckWeight::<kitchensink_runtime::Runtime>::new(),
pallet_skip_feeless_payment::SkipCheckIfFeeless::from(
pallet_asset_conversion_tx_payment::ChargeAssetTxPayment::<
kitchensink_runtime::Runtime,
@@ -131,17 +128,15 @@ pub fn create_extrinsic(
let raw_payload = kitchensink_runtime::SignedPayload::from_raw(
function.clone(),
tx_ext.clone(),
extra.clone(),
(
(
(),
kitchensink_runtime::VERSION.spec_version,
kitchensink_runtime::VERSION.transaction_version,
genesis_hash,
best_hash,
(),
(),
),
(),
kitchensink_runtime::VERSION.spec_version,
kitchensink_runtime::VERSION.transaction_version,
genesis_hash,
best_hash,
(),
(),
(),
),
);
@@ -151,7 +146,7 @@ pub fn create_extrinsic(
function,
sp_runtime::AccountId32::from(sender.public()).into(),
kitchensink_runtime::Signature::Sr25519(signature),
tx_ext,
extra,
)
}
@@ -796,7 +791,7 @@ mod tests {
use codec::Encode;
use kitchensink_runtime::{
constants::{currency::CENTS, time::SLOT_DURATION},
Address, BalancesCall, RuntimeCall, TxExtension, UncheckedExtrinsic,
Address, BalancesCall, RuntimeCall, UncheckedExtrinsic,
};
use node_primitives::{Block, DigestItem, Signature};
use sc_client_api::BlockBackend;
@@ -998,31 +993,25 @@ mod tests {
let tx_payment = pallet_skip_feeless_payment::SkipCheckIfFeeless::from(
pallet_asset_conversion_tx_payment::ChargeAssetTxPayment::from(0, None),
);
let tx_ext: TxExtension = (
(
check_non_zero_sender,
check_spec_version,
check_tx_version,
check_genesis,
check_era,
check_nonce,
check_weight,
)
.into(),
let extra = (
check_non_zero_sender,
check_spec_version,
check_tx_version,
check_genesis,
check_era,
check_nonce,
check_weight,
tx_payment,
);
let raw_payload = SignedPayload::from_raw(
function,
tx_ext,
(
((), spec_version, transaction_version, genesis_hash, genesis_hash, (), ()),
(),
),
extra,
((), spec_version, transaction_version, genesis_hash, genesis_hash, (), (), ()),
);
let signature = raw_payload.using_encoded(|payload| signer.sign(payload));
let (function, tx_ext, _) = raw_payload.deconstruct();
let (function, extra, _) = raw_payload.deconstruct();
index += 1;
UncheckedExtrinsic::new_signed(function, from.into(), signature.into(), tx_ext)
UncheckedExtrinsic::new_signed(function, from.into(), signature.into(), extra)
.into()
},
);
+13 -13
View File
@@ -67,7 +67,7 @@ fn transfer_fee<E: Encode>(extrinsic: &E) -> Balance {
fn xt() -> UncheckedExtrinsic {
sign(CheckedExtrinsic {
format: sp_runtime::generic::ExtrinsicFormat::Signed(alice(), tx_ext(0, 0)),
signed: Some((alice(), signed_extra(0, 0))),
function: RuntimeCall::Balances(default_transfer_call()),
})
}
@@ -84,11 +84,11 @@ fn changes_trie_block() -> (Vec<u8>, Hash) {
GENESIS_HASH.into(),
vec![
CheckedExtrinsic {
format: sp_runtime::generic::ExtrinsicFormat::Bare,
signed: None,
function: RuntimeCall::Timestamp(pallet_timestamp::Call::set { now: time }),
},
CheckedExtrinsic {
format: sp_runtime::generic::ExtrinsicFormat::Signed(alice(), tx_ext(0, 0)),
signed: Some((alice(), signed_extra(0, 0))),
function: RuntimeCall::Balances(pallet_balances::Call::transfer_allow_death {
dest: bob().into(),
value: 69 * DOLLARS,
@@ -111,11 +111,11 @@ fn blocks() -> ((Vec<u8>, Hash), (Vec<u8>, Hash)) {
GENESIS_HASH.into(),
vec![
CheckedExtrinsic {
format: sp_runtime::generic::ExtrinsicFormat::Bare,
signed: None,
function: RuntimeCall::Timestamp(pallet_timestamp::Call::set { now: time1 }),
},
CheckedExtrinsic {
format: sp_runtime::generic::ExtrinsicFormat::Signed(alice(), tx_ext(0, 0)),
signed: Some((alice(), signed_extra(0, 0))),
function: RuntimeCall::Balances(pallet_balances::Call::transfer_allow_death {
dest: bob().into(),
value: 69 * DOLLARS,
@@ -131,18 +131,18 @@ fn blocks() -> ((Vec<u8>, Hash), (Vec<u8>, Hash)) {
block1.1,
vec![
CheckedExtrinsic {
format: sp_runtime::generic::ExtrinsicFormat::Bare,
signed: None,
function: RuntimeCall::Timestamp(pallet_timestamp::Call::set { now: time2 }),
},
CheckedExtrinsic {
format: sp_runtime::generic::ExtrinsicFormat::Signed(bob(), tx_ext(0, 0)),
signed: Some((bob(), signed_extra(0, 0))),
function: RuntimeCall::Balances(pallet_balances::Call::transfer_allow_death {
dest: alice().into(),
value: 5 * DOLLARS,
}),
},
CheckedExtrinsic {
format: sp_runtime::generic::ExtrinsicFormat::Signed(alice(), tx_ext(1, 0)),
signed: Some((alice(), signed_extra(1, 0))),
function: RuntimeCall::Balances(pallet_balances::Call::transfer_allow_death {
dest: bob().into(),
value: 15 * DOLLARS,
@@ -166,11 +166,11 @@ fn block_with_size(time: u64, nonce: u32, size: usize) -> (Vec<u8>, Hash) {
GENESIS_HASH.into(),
vec![
CheckedExtrinsic {
format: sp_runtime::generic::ExtrinsicFormat::Bare,
signed: None,
function: RuntimeCall::Timestamp(pallet_timestamp::Call::set { now: time * 1000 }),
},
CheckedExtrinsic {
format: sp_runtime::generic::ExtrinsicFormat::Signed(alice(), tx_ext(nonce, 0)),
signed: Some((alice(), signed_extra(nonce, 0))),
function: RuntimeCall::System(frame_system::Call::remark { remark: vec![0; size] }),
},
],
@@ -677,11 +677,11 @@ fn deploying_wasm_contract_should_work() {
GENESIS_HASH.into(),
vec![
CheckedExtrinsic {
format: sp_runtime::generic::ExtrinsicFormat::Bare,
signed: None,
function: RuntimeCall::Timestamp(pallet_timestamp::Call::set { now: time }),
},
CheckedExtrinsic {
format: sp_runtime::generic::ExtrinsicFormat::Signed(charlie(), tx_ext(0, 0)),
signed: Some((charlie(), signed_extra(0, 0))),
function: RuntimeCall::Contracts(pallet_contracts::Call::instantiate_with_code::<
Runtime,
> {
@@ -694,7 +694,7 @@ fn deploying_wasm_contract_should_work() {
}),
},
CheckedExtrinsic {
format: sp_runtime::generic::ExtrinsicFormat::Signed(charlie(), tx_ext(1, 0)),
signed: Some((charlie(), signed_extra(1, 0))),
function: RuntimeCall::Contracts(pallet_contracts::Call::call::<Runtime> {
dest: sp_runtime::MultiAddress::Id(addr.clone()),
value: 10,
+9 -15
View File
@@ -54,11 +54,11 @@ fn fee_multiplier_increases_and_decreases_on_big_weight() {
GENESIS_HASH.into(),
vec![
CheckedExtrinsic {
format: sp_runtime::generic::ExtrinsicFormat::Bare,
signed: None,
function: RuntimeCall::Timestamp(pallet_timestamp::Call::set { now: time1 }),
},
CheckedExtrinsic {
format: sp_runtime::generic::ExtrinsicFormat::Signed(charlie(), tx_ext(0, 0)),
signed: Some((charlie(), signed_extra(0, 0))),
function: RuntimeCall::Sudo(pallet_sudo::Call::sudo {
call: Box::new(RuntimeCall::RootTesting(
pallet_root_testing::Call::fill_block { ratio: Perbill::from_percent(60) },
@@ -77,11 +77,11 @@ fn fee_multiplier_increases_and_decreases_on_big_weight() {
block1.1,
vec![
CheckedExtrinsic {
format: sp_runtime::generic::ExtrinsicFormat::Bare,
signed: None,
function: RuntimeCall::Timestamp(pallet_timestamp::Call::set { now: time2 }),
},
CheckedExtrinsic {
format: sp_runtime::generic::ExtrinsicFormat::Signed(charlie(), tx_ext(1, 0)),
signed: Some((charlie(), signed_extra(1, 0))),
function: RuntimeCall::System(frame_system::Call::remark { remark: vec![0; 1] }),
},
],
@@ -147,7 +147,7 @@ fn transaction_fee_is_correct() {
let tip = 1_000_000;
let xt = sign(CheckedExtrinsic {
format: sp_runtime::generic::ExtrinsicFormat::Signed(alice(), tx_ext(0, tip)),
signed: Some((alice(), signed_extra(0, tip))),
function: RuntimeCall::Balances(default_transfer_call()),
});
@@ -211,10 +211,7 @@ fn block_weight_capacity_report() {
let num_transfers = block_number * factor;
let mut xts = (0..num_transfers)
.map(|i| CheckedExtrinsic {
format: sp_runtime::generic::ExtrinsicFormat::Signed(
charlie(),
tx_ext(nonce + i as Nonce, 0),
),
signed: Some((charlie(), signed_extra(nonce + i as Nonce, 0))),
function: RuntimeCall::Balances(pallet_balances::Call::transfer_allow_death {
dest: bob().into(),
value: 0,
@@ -225,7 +222,7 @@ fn block_weight_capacity_report() {
xts.insert(
0,
CheckedExtrinsic {
format: sp_runtime::generic::ExtrinsicFormat::Bare,
signed: None,
function: RuntimeCall::Timestamp(pallet_timestamp::Call::set { now: time * 1000 }),
},
);
@@ -288,16 +285,13 @@ fn block_length_capacity_report() {
previous_hash,
vec![
CheckedExtrinsic {
format: sp_runtime::generic::ExtrinsicFormat::Bare,
signed: None,
function: RuntimeCall::Timestamp(pallet_timestamp::Call::set {
now: time * 1000,
}),
},
CheckedExtrinsic {
format: sp_runtime::generic::ExtrinsicFormat::Signed(
charlie(),
tx_ext(nonce, 0),
),
signed: Some((charlie(), signed_extra(nonce, 0))),
function: RuntimeCall::System(frame_system::Call::remark {
remark: vec![0u8; (block_number * factor) as usize],
}),
@@ -130,8 +130,8 @@ fn should_submit_signed_twice_from_the_same_account() {
// now check that the transaction nonces are not equal
let s = state.read();
fn nonce(tx: UncheckedExtrinsic) -> frame_system::CheckNonce<Runtime> {
let extra = tx.preamble.to_signed().unwrap().2;
(extra.0).5
let extra = tx.signature.unwrap().2;
extra.5
}
let nonce1 = nonce(UncheckedExtrinsic::decode(&mut &*s.transactions[0]).unwrap());
let nonce2 = nonce(UncheckedExtrinsic::decode(&mut &*s.transactions[1]).unwrap());
@@ -179,8 +179,8 @@ fn should_submit_signed_twice_from_all_accounts() {
// now check that the transaction nonces are not equal
let s = state.read();
fn nonce(tx: UncheckedExtrinsic) -> frame_system::CheckNonce<Runtime> {
let extra = tx.preamble.to_signed().unwrap().2;
(extra.0).5
let extra = tx.signature.unwrap().2;
extra.5
}
let nonce1 = nonce(UncheckedExtrinsic::decode(&mut &*s.transactions[0]).unwrap());
let nonce2 = nonce(UncheckedExtrinsic::decode(&mut &*s.transactions[1]).unwrap());
@@ -236,7 +236,7 @@ fn submitted_transaction_should_be_valid() {
let source = TransactionSource::External;
let extrinsic = UncheckedExtrinsic::decode(&mut &*tx0).unwrap();
// add balance to the account
let author = extrinsic.preamble.clone().to_signed().clone().unwrap().0;
let author = extrinsic.signature.clone().unwrap().0;
let address = Indices::lookup(author).unwrap();
let data = pallet_balances::AccountData { free: 5_000_000_000_000, ..Default::default() };
let account = frame_system::AccountInfo { providers: 1, data, ..Default::default() };
-2
View File
@@ -276,7 +276,6 @@ runtime-benchmarks = [
"frame-system-benchmarking/runtime-benchmarks",
"frame-system/runtime-benchmarks",
"pallet-alliance/runtime-benchmarks",
"pallet-asset-conversion-tx-payment/runtime-benchmarks",
"pallet-asset-conversion/runtime-benchmarks",
"pallet-asset-rate/runtime-benchmarks",
"pallet-asset-tx-payment/runtime-benchmarks",
@@ -334,7 +333,6 @@ runtime-benchmarks = [
"pallet-sudo/runtime-benchmarks",
"pallet-timestamp/runtime-benchmarks",
"pallet-tips/runtime-benchmarks",
"pallet-transaction-payment/runtime-benchmarks",
"pallet-transaction-storage/runtime-benchmarks",
"pallet-treasury/runtime-benchmarks",
"pallet-tx-pause/runtime-benchmarks",
+23 -142
View File
@@ -560,7 +560,6 @@ impl pallet_transaction_payment::Config for Runtime {
MinimumMultiplier,
MaximumMultiplier,
>;
type WeightInfo = pallet_transaction_payment::weights::SubstrateWeight<Runtime>;
}
impl pallet_asset_tx_payment::Config for Runtime {
@@ -570,9 +569,6 @@ impl pallet_asset_tx_payment::Config for Runtime {
pallet_assets::BalanceToAssetBalance<Balances, Runtime, ConvertInto, Instance1>,
CreditToBlockAuthor,
>;
type WeightInfo = pallet_asset_tx_payment::weights::SubstrateWeight<Runtime>;
#[cfg(feature = "runtime-benchmarks")]
type BenchmarkHelper = AssetTxHelper;
}
impl pallet_asset_conversion_tx_payment::Config for Runtime {
@@ -583,9 +579,6 @@ impl pallet_asset_conversion_tx_payment::Config for Runtime {
AssetConversion,
Native,
>;
type WeightInfo = pallet_asset_conversion_tx_payment::weights::SubstrateWeight<Runtime>;
#[cfg(feature = "runtime-benchmarks")]
type BenchmarkHelper = AssetConversionTxHelper;
}
impl pallet_skip_feeless_payment::Config for Runtime {
@@ -1416,33 +1409,29 @@ where
// so the actual block number is `n`.
.saturating_sub(1);
let era = Era::mortal(period, current_block);
let tx_ext: TxExtension = (
(
frame_system::CheckNonZeroSender::<Runtime>::new(),
frame_system::CheckSpecVersion::<Runtime>::new(),
frame_system::CheckTxVersion::<Runtime>::new(),
frame_system::CheckGenesis::<Runtime>::new(),
frame_system::CheckEra::<Runtime>::from(era),
frame_system::CheckNonce::<Runtime>::from(nonce),
frame_system::CheckWeight::<Runtime>::new(),
)
.into(),
let extra = (
frame_system::CheckNonZeroSender::<Runtime>::new(),
frame_system::CheckSpecVersion::<Runtime>::new(),
frame_system::CheckTxVersion::<Runtime>::new(),
frame_system::CheckGenesis::<Runtime>::new(),
frame_system::CheckEra::<Runtime>::from(era),
frame_system::CheckNonce::<Runtime>::from(nonce),
frame_system::CheckWeight::<Runtime>::new(),
pallet_skip_feeless_payment::SkipCheckIfFeeless::from(
pallet_asset_conversion_tx_payment::ChargeAssetTxPayment::<Runtime>::from(
tip, None,
),
),
);
let raw_payload = SignedPayload::new(call, tx_ext)
let raw_payload = SignedPayload::new(call, extra)
.map_err(|e| {
log::warn!("Unable to create signed payload: {:?}", e);
})
.ok()?;
let signature = raw_payload.using_encoded(|payload| C::sign(payload, public))?;
let address = Indices::unlookup(account);
let (call, tx_ext, _) = raw_payload.deconstruct();
Some((call, (address, signature, tx_ext)))
let (call, extra, _) = raw_payload.deconstruct();
Some((call, (address, signature, extra)))
}
}
@@ -2461,21 +2450,19 @@ pub type Block = generic::Block<Header, UncheckedExtrinsic>;
pub type SignedBlock = generic::SignedBlock<Block>;
/// BlockId type as expected by this runtime.
pub type BlockId = generic::BlockId<Block>;
/// The TransactionExtension to the basic transaction logic.
/// The SignedExtension to the basic transaction logic.
///
/// When you change this, you **MUST** modify [`sign`] in `bin/node/testing/src/keyring.rs`!
///
/// [`sign`]: <../../testing/src/keyring.rs.html>
pub type TxExtension = (
(
frame_system::CheckNonZeroSender<Runtime>,
frame_system::CheckSpecVersion<Runtime>,
frame_system::CheckTxVersion<Runtime>,
frame_system::CheckGenesis<Runtime>,
frame_system::CheckEra<Runtime>,
frame_system::CheckNonce<Runtime>,
frame_system::CheckWeight<Runtime>,
),
pub type SignedExtra = (
frame_system::CheckNonZeroSender<Runtime>,
frame_system::CheckSpecVersion<Runtime>,
frame_system::CheckTxVersion<Runtime>,
frame_system::CheckGenesis<Runtime>,
frame_system::CheckEra<Runtime>,
frame_system::CheckNonce<Runtime>,
frame_system::CheckWeight<Runtime>,
pallet_skip_feeless_payment::SkipCheckIfFeeless<
Runtime,
pallet_asset_conversion_tx_payment::ChargeAssetTxPayment<Runtime>,
@@ -2484,11 +2471,11 @@ pub type TxExtension = (
/// Unchecked extrinsic type as expected by this runtime.
pub type UncheckedExtrinsic =
generic::UncheckedExtrinsic<Address, RuntimeCall, Signature, TxExtension>;
generic::UncheckedExtrinsic<Address, RuntimeCall, Signature, SignedExtra>;
/// The payload being signed in transactions.
pub type SignedPayload = generic::SignedPayload<RuntimeCall, TxExtension>;
pub type SignedPayload = generic::SignedPayload<RuntimeCall, SignedExtra>;
/// Extrinsic type that has already been checked.
pub type CheckedExtrinsic = generic::CheckedExtrinsic<AccountId, RuntimeCall, TxExtension>;
pub type CheckedExtrinsic = generic::CheckedExtrinsic<AccountId, RuntimeCall, SignedExtra>;
/// Executive: handles dispatch to the various modules.
pub type Executive = frame_executive::Executive<
Runtime,
@@ -2543,106 +2530,6 @@ mod mmr {
pub type Hashing = <Runtime as pallet_mmr::Config>::Hashing;
}
#[cfg(feature = "runtime-benchmarks")]
pub struct AssetConversionTxHelper;
#[cfg(feature = "runtime-benchmarks")]
impl pallet_asset_conversion_tx_payment::BenchmarkHelperTrait<AccountId, u32, u32>
for AssetConversionTxHelper
{
fn create_asset_id_parameter(seed: u32) -> (u32, u32) {
(seed, seed)
}
fn setup_balances_and_pool(asset_id: u32, account: AccountId) {
use frame_support::{assert_ok, traits::fungibles::Mutate};
assert_ok!(Assets::force_create(
RuntimeOrigin::root(),
asset_id.into(),
account.clone().into(), /* owner */
true, /* is_sufficient */
1,
));
let lp_provider = account.clone();
let _ = Balances::deposit_creating(&lp_provider, ((u64::MAX as u128) * 100).into());
assert_ok!(Assets::mint_into(
asset_id.into(),
&lp_provider,
((u64::MAX as u128) * 100).into()
));
let token_native = Box::new(NativeOrWithId::Native);
let token_second = Box::new(NativeOrWithId::WithId(asset_id));
assert_ok!(AssetConversion::create_pool(
RuntimeOrigin::signed(lp_provider.clone()),
token_native.clone(),
token_second.clone()
));
assert_ok!(AssetConversion::add_liquidity(
RuntimeOrigin::signed(lp_provider.clone()),
token_native,
token_second,
u64::MAX.into(), // 1 desired
u64::MAX.into(), // 2 desired
1, // 1 min
1, // 2 min
lp_provider,
));
}
}
#[cfg(feature = "runtime-benchmarks")]
pub struct AssetTxHelper;
#[cfg(feature = "runtime-benchmarks")]
impl pallet_asset_tx_payment::BenchmarkHelperTrait<AccountId, u32, u32> for AssetTxHelper {
fn create_asset_id_parameter(seed: u32) -> (u32, u32) {
(seed, seed)
}
fn setup_balances_and_pool(asset_id: u32, account: AccountId) {
use frame_support::{assert_ok, traits::fungibles::Mutate};
assert_ok!(Assets::force_create(
RuntimeOrigin::root(),
asset_id.into(),
account.clone().into(), /* owner */
true, /* is_sufficient */
1,
));
let lp_provider = account.clone();
let _ = Balances::deposit_creating(&lp_provider, ((u64::MAX as u128) * 100).into());
assert_ok!(Assets::mint_into(
asset_id.into(),
&lp_provider,
((u64::MAX as u128) * 100).into()
));
let token_native = Box::new(NativeOrWithId::Native);
let token_second = Box::new(NativeOrWithId::WithId(asset_id));
assert_ok!(AssetConversion::create_pool(
RuntimeOrigin::signed(lp_provider.clone()),
token_native.clone(),
token_second.clone()
));
assert_ok!(AssetConversion::add_liquidity(
RuntimeOrigin::signed(lp_provider.clone()),
token_native,
token_second,
u64::MAX.into(), // 1 desired
u64::MAX.into(), // 2 desired
1, // 1 min
1, // 2 min
lp_provider,
));
}
}
#[cfg(feature = "runtime-benchmarks")]
mod benches {
frame_benchmarking::define_benchmarks!(
@@ -2663,9 +2550,6 @@ mod benches {
[tasks_example, TasksExample]
[pallet_democracy, Democracy]
[pallet_asset_conversion, AssetConversion]
[pallet_asset_conversion_tx_payment, AssetConversionTxPayment]
[pallet_asset_tx_payment, AssetTxPayment]
[pallet_transaction_payment, TransactionPayment]
[pallet_election_provider_multi_phase, ElectionProviderMultiPhase]
[pallet_election_provider_support_benchmarking, EPSBench::<Runtime>]
[pallet_elections_phragmen, Elections]
@@ -2699,7 +2583,6 @@ mod benches {
[pallet_state_trie_migration, StateTrieMigration]
[pallet_sudo, Sudo]
[frame_system, SystemBench::<Runtime>]
[frame_system_extensions, SystemExtensionsBench::<Runtime>]
[pallet_timestamp, Timestamp]
[pallet_tips, Tips]
[pallet_transaction_storage, TransactionStorage]
@@ -3247,7 +3130,6 @@ impl_runtime_apis! {
use pallet_offences_benchmarking::Pallet as OffencesBench;
use pallet_election_provider_support_benchmarking::Pallet as EPSBench;
use frame_system_benchmarking::Pallet as SystemBench;
use frame_system_benchmarking::extensions::Pallet as SystemExtensionsBench;
use baseline::Pallet as BaselineBench;
use pallet_nomination_pools_benchmarking::Pallet as NominationPoolsBench;
@@ -3272,7 +3154,6 @@ impl_runtime_apis! {
use pallet_offences_benchmarking::Pallet as OffencesBench;
use pallet_election_provider_support_benchmarking::Pallet as EPSBench;
use frame_system_benchmarking::Pallet as SystemBench;
use frame_system_benchmarking::extensions::Pallet as SystemExtensionsBench;
use baseline::Pallet as BaselineBench;
use pallet_nomination_pools_benchmarking::Pallet as NominationPoolsBench;
+8 -18
View File
@@ -51,7 +51,6 @@ use sp_core::{ed25519, sr25519, traits::SpawnNamed, Pair, Public};
use sp_crypto_hashing::blake2_256;
use sp_inherents::InherentData;
use sp_runtime::{
generic::{ExtrinsicFormat, Preamble},
traits::{Block as BlockT, IdentifyAccount, Verify},
OpaqueExtrinsic,
};
@@ -296,10 +295,10 @@ impl<'a> Iterator for BlockContentIterator<'a> {
let signed = self.keyring.sign(
CheckedExtrinsic {
format: ExtrinsicFormat::Signed(
signed: Some((
sender,
tx_ext(0, kitchensink_runtime::ExistentialDeposit::get() + 1),
),
signed_extra(0, kitchensink_runtime::ExistentialDeposit::get() + 1),
)),
function: match self.content.block_type {
BlockType::RandomTransfersKeepAlive =>
RuntimeCall::Balances(BalancesCall::transfer_keep_alive {
@@ -563,11 +562,11 @@ impl BenchKeyring {
tx_version: u32,
genesis_hash: [u8; 32],
) -> UncheckedExtrinsic {
match xt.format {
ExtrinsicFormat::Signed(signed, tx_ext) => {
match xt.signed {
Some((signed, extra)) => {
let payload = (
xt.function,
tx_ext.clone(),
extra.clone(),
spec_version,
tx_version,
genesis_hash,
@@ -582,20 +581,11 @@ impl BenchKeyring {
}
});
UncheckedExtrinsic {
preamble: Preamble::Signed(
sp_runtime::MultiAddress::Id(signed),
signature,
tx_ext,
),
signature: Some((sp_runtime::MultiAddress::Id(signed), signature, extra)),
function: payload.0,
}
},
ExtrinsicFormat::Bare =>
UncheckedExtrinsic { preamble: Preamble::Bare, function: xt.function },
ExtrinsicFormat::General(tx_ext) => UncheckedExtrinsic {
preamble: sp_runtime::generic::Preamble::General(tx_ext),
function: xt.function,
},
None => UncheckedExtrinsic { signature: None, function: xt.function },
}
}
+15 -29
View File
@@ -19,13 +19,13 @@
//! Test accounts.
use codec::Encode;
use kitchensink_runtime::{CheckedExtrinsic, SessionKeys, TxExtension, UncheckedExtrinsic};
use kitchensink_runtime::{CheckedExtrinsic, SessionKeys, SignedExtra, UncheckedExtrinsic};
use node_cli::chain_spec::get_from_seed;
use node_primitives::{AccountId, Balance, Nonce};
use sp_core::{ecdsa, ed25519, sr25519};
use sp_crypto_hashing::blake2_256;
use sp_keyring::AccountKeyring;
use sp_runtime::generic::{Era, ExtrinsicFormat};
use sp_runtime::generic::Era;
/// Alice's account id.
pub fn alice() -> AccountId {
@@ -70,18 +70,15 @@ pub fn session_keys_from_seed(seed: &str) -> SessionKeys {
}
/// Returns transaction extra.
pub fn tx_ext(nonce: Nonce, extra_fee: Balance) -> TxExtension {
pub fn signed_extra(nonce: Nonce, extra_fee: Balance) -> SignedExtra {
(
(
frame_system::CheckNonZeroSender::new(),
frame_system::CheckSpecVersion::new(),
frame_system::CheckTxVersion::new(),
frame_system::CheckGenesis::new(),
frame_system::CheckEra::from(Era::mortal(256, 0)),
frame_system::CheckNonce::from(nonce),
frame_system::CheckWeight::new(),
)
.into(),
frame_system::CheckNonZeroSender::new(),
frame_system::CheckSpecVersion::new(),
frame_system::CheckTxVersion::new(),
frame_system::CheckGenesis::new(),
frame_system::CheckEra::from(Era::mortal(256, 0)),
frame_system::CheckNonce::from(nonce),
frame_system::CheckWeight::new(),
pallet_skip_feeless_payment::SkipCheckIfFeeless::from(
pallet_asset_conversion_tx_payment::ChargeAssetTxPayment::from(extra_fee, None),
),
@@ -95,10 +92,10 @@ pub fn sign(
tx_version: u32,
genesis_hash: [u8; 32],
) -> UncheckedExtrinsic {
match xt.format {
ExtrinsicFormat::Signed(signed, tx_ext) => {
match xt.signed {
Some((signed, extra)) => {
let payload =
(xt.function, tx_ext.clone(), spec_version, tx_version, genesis_hash, genesis_hash);
(xt.function, extra.clone(), spec_version, tx_version, genesis_hash, genesis_hash);
let key = AccountKeyring::from_account_id(&signed).unwrap();
let signature =
payload
@@ -111,21 +108,10 @@ pub fn sign(
})
.into();
UncheckedExtrinsic {
preamble: sp_runtime::generic::Preamble::Signed(
sp_runtime::MultiAddress::Id(signed),
signature,
tx_ext,
),
signature: Some((sp_runtime::MultiAddress::Id(signed), signature, extra)),
function: payload.0,
}
},
ExtrinsicFormat::Bare => UncheckedExtrinsic {
preamble: sp_runtime::generic::Preamble::Bare,
function: xt.function,
},
ExtrinsicFormat::General(tx_ext) => UncheckedExtrinsic {
preamble: sp_runtime::generic::Preamble::General(tx_ext),
function: xt.function,
},
None => UncheckedExtrinsic { signature: None, function: xt.function },
}
}
@@ -18,10 +18,7 @@
use super::*;
use sp_runtime::{
generic::UncheckedExtrinsic,
testing::{Block as RawBlock, H256 as Hash},
};
use sp_runtime::testing::{Block as RawBlock, ExtrinsicWrapper, H256 as Hash};
use std::iter::{empty, Empty};
type TestChangeSet = (
@@ -53,7 +50,7 @@ impl PartialEq for StorageChangeSet {
}
}
type Block = RawBlock<UncheckedExtrinsic<u64, substrate_test_runtime::RuntimeCall, (), ()>>;
type Block = RawBlock<ExtrinsicWrapper<Hash>>;
#[test]
fn triggering_change_should_notify_wildcard_listeners() {
+2 -3
View File
@@ -22,13 +22,12 @@ use sc_client_api::{Backend as _, BlockImportOperation, NewBlockState, StateBack
use sc_client_db::{Backend, BlocksPruning, DatabaseSettings, DatabaseSource, PruningMode};
use sp_core::H256;
use sp_runtime::{
generic::UncheckedExtrinsic,
testing::{Block as RawBlock, Header, MockCallU64},
testing::{Block as RawBlock, ExtrinsicWrapper, Header},
StateVersion, Storage,
};
use tempfile::TempDir;
pub(crate) type Block = RawBlock<UncheckedExtrinsic<u64, MockCallU64, (), ()>>;
pub(crate) type Block = RawBlock<ExtrinsicWrapper<u64>>;
fn insert_blocks(db: &Backend<Block>, storage: Vec<(Vec<u8>, Vec<u8>)>) -> H256 {
let mut op = db.begin_operation().unwrap();
+62 -200
View File
@@ -2573,8 +2573,7 @@ pub(crate) mod tests {
use sp_blockchain::{lowest_common_ancestor, tree_route};
use sp_core::H256;
use sp_runtime::{
generic::UncheckedExtrinsic,
testing::{Block as RawBlock, Header, MockCallU64},
testing::{Block as RawBlock, ExtrinsicWrapper, Header},
traits::{BlakeTwo256, Hash},
ConsensusEngineId, StateVersion,
};
@@ -2582,8 +2581,7 @@ pub(crate) mod tests {
const CONS0_ENGINE_ID: ConsensusEngineId = *b"CON0";
const CONS1_ENGINE_ID: ConsensusEngineId = *b"CON1";
type UncheckedXt = UncheckedExtrinsic<u64, MockCallU64, (), ()>;
pub(crate) type Block = RawBlock<UncheckedXt>;
pub(crate) type Block = RawBlock<ExtrinsicWrapper<u64>>;
pub fn insert_header(
backend: &Backend<Block>,
@@ -2602,7 +2600,7 @@ pub(crate) mod tests {
parent_hash: H256,
_changes: Option<Vec<(Vec<u8>, Vec<u8>)>>,
extrinsics_root: H256,
body: Vec<UncheckedXt>,
body: Vec<ExtrinsicWrapper<u64>>,
transaction_index: Option<Vec<IndexOperation>>,
) -> Result<H256, sp_blockchain::Error> {
use sp_runtime::testing::Digest;
@@ -3416,7 +3414,7 @@ pub(crate) mod tests {
prev_hash,
None,
Default::default(),
vec![UncheckedXt::new_transaction(i.into(), ())],
vec![i.into()],
None,
)
.unwrap();
@@ -3438,20 +3436,11 @@ pub(crate) mod tests {
assert_eq!(None, bc.body(blocks[0]).unwrap());
assert_eq!(None, bc.body(blocks[1]).unwrap());
assert_eq!(None, bc.body(blocks[2]).unwrap());
assert_eq!(
Some(vec![UncheckedXt::new_transaction(3.into(), ())]),
bc.body(blocks[3]).unwrap()
);
assert_eq!(
Some(vec![UncheckedXt::new_transaction(4.into(), ())]),
bc.body(blocks[4]).unwrap()
);
assert_eq!(Some(vec![3.into()]), bc.body(blocks[3]).unwrap());
assert_eq!(Some(vec![4.into()]), bc.body(blocks[4]).unwrap());
} else {
for i in 0..5 {
assert_eq!(
Some(vec![UncheckedXt::new_transaction((i as u64).into(), ())]),
bc.body(blocks[i]).unwrap()
);
assert_eq!(Some(vec![(i as u64).into()]), bc.body(blocks[i]).unwrap());
}
}
}
@@ -3475,7 +3464,7 @@ pub(crate) mod tests {
prev_hash,
None,
Default::default(),
vec![UncheckedXt::new_transaction(i.into(), ())],
vec![i.into()],
None,
)
.unwrap();
@@ -3484,26 +3473,16 @@ pub(crate) mod tests {
}
// insert a fork at block 2
let fork_hash_root = insert_block(
&backend,
2,
blocks[1],
None,
H256::random(),
vec![UncheckedXt::new_transaction(2.into(), ())],
None,
)
.unwrap();
let fork_hash_root =
insert_block(&backend, 2, blocks[1], None, H256::random(), vec![2.into()], None)
.unwrap();
insert_block(
&backend,
3,
fork_hash_root,
None,
H256::random(),
vec![
UncheckedXt::new_transaction(3.into(), ()),
UncheckedXt::new_transaction(11.into(), ()),
],
vec![3.into(), 11.into()],
None,
)
.unwrap();
@@ -3513,10 +3492,7 @@ pub(crate) mod tests {
backend.commit_operation(op).unwrap();
let bc = backend.blockchain();
assert_eq!(
Some(vec![UncheckedXt::new_transaction(2.into(), ())]),
bc.body(fork_hash_root).unwrap()
);
assert_eq!(Some(vec![2.into()]), bc.body(fork_hash_root).unwrap());
for i in 1..5 {
let mut op = backend.begin_operation().unwrap();
@@ -3530,28 +3506,16 @@ pub(crate) mod tests {
assert_eq!(None, bc.body(blocks[1]).unwrap());
assert_eq!(None, bc.body(blocks[2]).unwrap());
assert_eq!(
Some(vec![UncheckedXt::new_transaction(3.into(), ())]),
bc.body(blocks[3]).unwrap()
);
assert_eq!(
Some(vec![UncheckedXt::new_transaction(4.into(), ())]),
bc.body(blocks[4]).unwrap()
);
assert_eq!(Some(vec![3.into()]), bc.body(blocks[3]).unwrap());
assert_eq!(Some(vec![4.into()]), bc.body(blocks[4]).unwrap());
} else {
for i in 0..5 {
assert_eq!(
Some(vec![UncheckedXt::new_transaction((i as u64).into(), ())]),
bc.body(blocks[i]).unwrap()
);
assert_eq!(Some(vec![(i as u64).into()]), bc.body(blocks[i]).unwrap());
}
}
if matches!(pruning, BlocksPruning::KeepAll) {
assert_eq!(
Some(vec![UncheckedXt::new_transaction(2.into(), ())]),
bc.body(fork_hash_root).unwrap()
);
assert_eq!(Some(vec![2.into()]), bc.body(fork_hash_root).unwrap());
} else {
assert_eq!(None, bc.body(fork_hash_root).unwrap());
}
@@ -3572,16 +3536,8 @@ pub(crate) mod tests {
let backend = Backend::<Block>::new_test_with_tx_storage(BlocksPruning::Some(10), 10);
let make_block = |index, parent, val: u64| {
insert_block(
&backend,
index,
parent,
None,
H256::random(),
vec![UncheckedXt::new_transaction(val.into(), ())],
None,
)
.unwrap()
insert_block(&backend, index, parent, None, H256::random(), vec![val.into()], None)
.unwrap()
};
let block_0 = make_block(0, Default::default(), 0x00);
@@ -3609,30 +3565,18 @@ pub(crate) mod tests {
let bc = backend.blockchain();
assert_eq!(None, bc.body(block_1b).unwrap());
assert_eq!(None, bc.body(block_2b).unwrap());
assert_eq!(
Some(vec![UncheckedXt::new_transaction(0x00.into(), ())]),
bc.body(block_0).unwrap()
);
assert_eq!(
Some(vec![UncheckedXt::new_transaction(0x1a.into(), ())]),
bc.body(block_1a).unwrap()
);
assert_eq!(
Some(vec![UncheckedXt::new_transaction(0x2a.into(), ())]),
bc.body(block_2a).unwrap()
);
assert_eq!(
Some(vec![UncheckedXt::new_transaction(0x3a.into(), ())]),
bc.body(block_3a).unwrap()
);
assert_eq!(Some(vec![0x00.into()]), bc.body(block_0).unwrap());
assert_eq!(Some(vec![0x1a.into()]), bc.body(block_1a).unwrap());
assert_eq!(Some(vec![0x2a.into()]), bc.body(block_2a).unwrap());
assert_eq!(Some(vec![0x3a.into()]), bc.body(block_3a).unwrap());
}
#[test]
fn indexed_data_block_body() {
let backend = Backend::<Block>::new_test_with_tx_storage(BlocksPruning::Some(1), 10);
let x0 = UncheckedXt::new_transaction(0.into(), ()).encode();
let x1 = UncheckedXt::new_transaction(1.into(), ()).encode();
let x0 = ExtrinsicWrapper::from(0u64).encode();
let x1 = ExtrinsicWrapper::from(1u64).encode();
let x0_hash = <HashingFor<Block> as sp_core::Hasher>::hash(&x0[1..]);
let x1_hash = <HashingFor<Block> as sp_core::Hasher>::hash(&x1[1..]);
let index = vec![
@@ -3653,10 +3597,7 @@ pub(crate) mod tests {
Default::default(),
None,
Default::default(),
vec![
UncheckedXt::new_transaction(0.into(), ()),
UncheckedXt::new_transaction(1.into(), ()),
],
vec![0u64.into(), 1u64.into()],
Some(index),
)
.unwrap();
@@ -3678,9 +3619,8 @@ pub(crate) mod tests {
fn index_invalid_size() {
let backend = Backend::<Block>::new_test_with_tx_storage(BlocksPruning::Some(1), 10);
let x0 = UncheckedXt::new_transaction(0.into(), ()).encode();
let x1 = UncheckedXt::new_transaction(1.into(), ()).encode();
let x0 = ExtrinsicWrapper::from(0u64).encode();
let x1 = ExtrinsicWrapper::from(1u64).encode();
let x0_hash = <HashingFor<Block> as sp_core::Hasher>::hash(&x0[..]);
let x1_hash = <HashingFor<Block> as sp_core::Hasher>::hash(&x1[..]);
let index = vec![
@@ -3701,10 +3641,7 @@ pub(crate) mod tests {
Default::default(),
None,
Default::default(),
vec![
UncheckedXt::new_transaction(0.into(), ()),
UncheckedXt::new_transaction(1.into(), ()),
],
vec![0u64.into(), 1u64.into()],
Some(index),
)
.unwrap();
@@ -3718,7 +3655,7 @@ pub(crate) mod tests {
let backend = Backend::<Block>::new_test_with_tx_storage(BlocksPruning::Some(2), 10);
let mut blocks = Vec::new();
let mut prev_hash = Default::default();
let x1 = UncheckedXt::new_transaction(0.into(), ()).encode();
let x1 = ExtrinsicWrapper::from(0u64).encode();
let x1_hash = <HashingFor<Block> as sp_core::Hasher>::hash(&x1[1..]);
for i in 0..10 {
let mut index = Vec::new();
@@ -3738,7 +3675,7 @@ pub(crate) mod tests {
prev_hash,
None,
Default::default(),
vec![UncheckedXt::new_transaction(i.into(), ())],
vec![i.into()],
Some(index),
)
.unwrap();
@@ -3772,7 +3709,7 @@ pub(crate) mod tests {
prev_hash,
None,
Default::default(),
vec![UncheckedXt::new_transaction(i.into(), ())],
vec![i.into()],
None,
)
.unwrap();
@@ -3787,7 +3724,7 @@ pub(crate) mod tests {
blocks[1],
None,
sp_core::H256::random(),
vec![UncheckedXt::new_transaction(i.into(), ())],
vec![i.into()],
None,
)
.unwrap();
@@ -3801,7 +3738,7 @@ pub(crate) mod tests {
blocks[0],
None,
sp_core::H256::random(),
vec![UncheckedXt::new_transaction(42.into(), ())],
vec![42.into()],
None,
)
.unwrap();
@@ -4274,7 +4211,7 @@ pub(crate) mod tests {
prev_hash,
None,
Default::default(),
vec![UncheckedXt::new_transaction(i.into(), ())],
vec![i.into()],
None,
)
.unwrap();
@@ -4289,10 +4226,7 @@ pub(crate) mod tests {
// Check that we can properly access values when there is reference count
// but no value.
assert_eq!(
Some(vec![UncheckedXt::new_transaction(1.into(), ())]),
bc.body(blocks[1]).unwrap()
);
assert_eq!(Some(vec![1.into()]), bc.body(blocks[1]).unwrap());
// Block 1 gets pinned three times
backend.pin_block(blocks[1]).unwrap();
@@ -4309,42 +4243,27 @@ pub(crate) mod tests {
// Block 0, 1, 2, 3 are pinned, so all values should be cached.
// Block 4 is inside the pruning window, its value is in db.
assert_eq!(
Some(vec![UncheckedXt::new_transaction(0.into(), ())]),
bc.body(blocks[0]).unwrap()
);
assert_eq!(Some(vec![0.into()]), bc.body(blocks[0]).unwrap());
assert_eq!(
Some(vec![UncheckedXt::new_transaction(1.into(), ())]),
bc.body(blocks[1]).unwrap()
);
assert_eq!(Some(vec![1.into()]), bc.body(blocks[1]).unwrap());
assert_eq!(
Some(Justifications::from(build_justification(1))),
bc.justifications(blocks[1]).unwrap()
);
assert_eq!(
Some(vec![UncheckedXt::new_transaction(2.into(), ())]),
bc.body(blocks[2]).unwrap()
);
assert_eq!(Some(vec![2.into()]), bc.body(blocks[2]).unwrap());
assert_eq!(
Some(Justifications::from(build_justification(2))),
bc.justifications(blocks[2]).unwrap()
);
assert_eq!(
Some(vec![UncheckedXt::new_transaction(3.into(), ())]),
bc.body(blocks[3]).unwrap()
);
assert_eq!(Some(vec![3.into()]), bc.body(blocks[3]).unwrap());
assert_eq!(
Some(Justifications::from(build_justification(3))),
bc.justifications(blocks[3]).unwrap()
);
assert_eq!(
Some(vec![UncheckedXt::new_transaction(4.into(), ())]),
bc.body(blocks[4]).unwrap()
);
assert_eq!(Some(vec![4.into()]), bc.body(blocks[4]).unwrap());
assert_eq!(
Some(Justifications::from(build_justification(4))),
bc.justifications(blocks[4]).unwrap()
@@ -4375,10 +4294,7 @@ pub(crate) mod tests {
assert!(bc.justifications(blocks[1]).unwrap().is_none());
// Block 4 is inside the pruning window and still kept
assert_eq!(
Some(vec![UncheckedXt::new_transaction(4.into(), ())]),
bc.body(blocks[4]).unwrap()
);
assert_eq!(Some(vec![4.into()]), bc.body(blocks[4]).unwrap());
assert_eq!(
Some(Justifications::from(build_justification(4))),
bc.justifications(blocks[4]).unwrap()
@@ -4386,16 +4302,9 @@ pub(crate) mod tests {
// Block tree:
// 0 -> 1 -> 2 -> 3 -> 4 -> 5
let hash = insert_block(
&backend,
5,
prev_hash,
None,
Default::default(),
vec![UncheckedXt::new_transaction(5.into(), ())],
None,
)
.unwrap();
let hash =
insert_block(&backend, 5, prev_hash, None, Default::default(), vec![5.into()], None)
.unwrap();
blocks.push(hash);
backend.pin_block(blocks[4]).unwrap();
@@ -4410,18 +4319,12 @@ pub(crate) mod tests {
assert!(bc.body(blocks[2]).unwrap().is_none());
assert!(bc.body(blocks[3]).unwrap().is_none());
assert_eq!(
Some(vec![UncheckedXt::new_transaction(4.into(), ())]),
bc.body(blocks[4]).unwrap()
);
assert_eq!(Some(vec![4.into()]), bc.body(blocks[4]).unwrap());
assert_eq!(
Some(Justifications::from(build_justification(4))),
bc.justifications(blocks[4]).unwrap()
);
assert_eq!(
Some(vec![UncheckedXt::new_transaction(5.into(), ())]),
bc.body(blocks[5]).unwrap()
);
assert_eq!(Some(vec![5.into()]), bc.body(blocks[5]).unwrap());
assert!(bc.header(blocks[5]).ok().flatten().is_some());
backend.unpin_block(blocks[4]);
@@ -4431,16 +4334,9 @@ pub(crate) mod tests {
// Append a justification to block 5.
backend.append_justification(blocks[5], ([0, 0, 0, 1], vec![42])).unwrap();
let hash = insert_block(
&backend,
6,
blocks[5],
None,
Default::default(),
vec![UncheckedXt::new_transaction(6.into(), ())],
None,
)
.unwrap();
let hash =
insert_block(&backend, 6, blocks[5], None, Default::default(), vec![6.into()], None)
.unwrap();
blocks.push(hash);
// Pin block 5 so it gets loaded into the cache on prune
@@ -4453,10 +4349,7 @@ pub(crate) mod tests {
op.mark_finalized(blocks[6], None).unwrap();
backend.commit_operation(op).unwrap();
assert_eq!(
Some(vec![UncheckedXt::new_transaction(5.into(), ())]),
bc.body(blocks[5]).unwrap()
);
assert_eq!(Some(vec![5.into()]), bc.body(blocks[5]).unwrap());
assert!(bc.header(blocks[5]).ok().flatten().is_some());
let mut expected = Justifications::from(build_justification(5));
expected.append(([0, 0, 0, 1], vec![42]));
@@ -4478,7 +4371,7 @@ pub(crate) mod tests {
prev_hash,
None,
Default::default(),
vec![UncheckedXt::new_transaction(i.into(), ())],
vec![i.into()],
None,
)
.unwrap();
@@ -4494,26 +4387,16 @@ pub(crate) mod tests {
// Block tree:
// 0 -> 1 -> 2 -> 3 -> 4
// \ -> 2 -> 3
let fork_hash_root = insert_block(
&backend,
2,
blocks[1],
None,
H256::random(),
vec![UncheckedXt::new_transaction(2.into(), ())],
None,
)
.unwrap();
let fork_hash_root =
insert_block(&backend, 2, blocks[1], None, H256::random(), vec![2.into()], None)
.unwrap();
let fork_hash_3 = insert_block(
&backend,
3,
fork_hash_root,
None,
H256::random(),
vec![
UncheckedXt::new_transaction(3.into(), ()),
UncheckedXt::new_transaction(11.into(), ()),
],
vec![3.into(), 11.into()],
None,
)
.unwrap();
@@ -4534,35 +4417,14 @@ pub(crate) mod tests {
}
let bc = backend.blockchain();
assert_eq!(
Some(vec![UncheckedXt::new_transaction(0.into(), ())]),
bc.body(blocks[0]).unwrap()
);
assert_eq!(
Some(vec![UncheckedXt::new_transaction(1.into(), ())]),
bc.body(blocks[1]).unwrap()
);
assert_eq!(
Some(vec![UncheckedXt::new_transaction(2.into(), ())]),
bc.body(blocks[2]).unwrap()
);
assert_eq!(
Some(vec![UncheckedXt::new_transaction(3.into(), ())]),
bc.body(blocks[3]).unwrap()
);
assert_eq!(
Some(vec![UncheckedXt::new_transaction(4.into(), ())]),
bc.body(blocks[4]).unwrap()
);
assert_eq!(Some(vec![0.into()]), bc.body(blocks[0]).unwrap());
assert_eq!(Some(vec![1.into()]), bc.body(blocks[1]).unwrap());
assert_eq!(Some(vec![2.into()]), bc.body(blocks[2]).unwrap());
assert_eq!(Some(vec![3.into()]), bc.body(blocks[3]).unwrap());
assert_eq!(Some(vec![4.into()]), bc.body(blocks[4]).unwrap());
// Check the fork hashes.
assert_eq!(None, bc.body(fork_hash_root).unwrap());
assert_eq!(
Some(vec![
UncheckedXt::new_transaction(3.into(), ()),
UncheckedXt::new_transaction(11.into(), ())
]),
bc.body(fork_hash_3).unwrap()
);
assert_eq!(Some(vec![3.into(), 11.into()]), bc.body(fork_hash_3).unwrap());
// Unpin all blocks, except the forked one.
for block in &blocks {
+3 -8
View File
@@ -582,19 +582,14 @@ impl<'a, 'b> codec::Input for JoinInput<'a, 'b> {
mod tests {
use super::*;
use codec::Input;
use sp_runtime::{
generic::UncheckedExtrinsic,
testing::{Block as RawBlock, MockCallU64},
};
pub type UncheckedXt = UncheckedExtrinsic<u64, MockCallU64, (), ()>;
type Block = RawBlock<UncheckedXt>;
use sp_runtime::testing::{Block as RawBlock, ExtrinsicWrapper};
type Block = RawBlock<ExtrinsicWrapper<u32>>;
#[cfg(feature = "rocksdb")]
#[test]
fn database_type_subdir_migration() {
use std::path::PathBuf;
type Block = RawBlock<UncheckedXt>;
type Block = RawBlock<ExtrinsicWrapper<u64>>;
fn check_dir_for_db_type(
db_type: DatabaseType,
@@ -550,8 +550,7 @@ mod tests {
NotificationSenderError, NotificationSenderT as NotificationSender, ReputationChange,
};
use sp_runtime::{
generic::UncheckedExtrinsic,
testing::{Block as RawBlock, MockCallU64, H256},
testing::{Block as RawBlock, ExtrinsicWrapper, H256},
traits::NumberFor,
};
use std::{
@@ -560,7 +559,7 @@ mod tests {
sync::{Arc, Mutex},
};
type Block = RawBlock<UncheckedExtrinsic<u64, MockCallU64, (), ()>>;
type Block = RawBlock<ExtrinsicWrapper<u64>>;
macro_rules! push_msg {
($consensus:expr, $topic:expr, $hash: expr, $m:expr) => {
+2 -5
View File
@@ -265,12 +265,9 @@ mod test {
use libp2p::PeerId;
use sc_network_common::sync::message;
use sp_core::H256;
use sp_runtime::{
generic::UncheckedExtrinsic,
testing::{Block as RawBlock, MockCallU64},
};
use sp_runtime::testing::{Block as RawBlock, ExtrinsicWrapper};
type Block = RawBlock<UncheckedExtrinsic<u64, MockCallU64, (), ()>>;
type Block = RawBlock<ExtrinsicWrapper<u64>>;
fn is_empty(bc: &BlockCollection<Block>) -> bool {
bc.blocks.is_empty() && bc.peer_requests.is_empty()
+2 -7
View File
@@ -659,13 +659,8 @@ where
})
.unwrap_or_default()
.into_iter()
// TODO [#2415]: This isn't really what we mean - we really want a
// `tx.is_transaction`, since bare transactions may be gossipped as in the case
// of Frontier txs or claims. This will be sorted once we dispense with the
// concept of bare transactions and make inherents the only possible type of
// extrinsics which are bare. At this point we can change this to
// `tx.is_transaction()`.
.filter(|tx| !tx.is_bare());
.filter(|tx| tx.is_signed().unwrap_or(true));
let mut resubmitted_to_report = 0;
resubmit_transactions.extend(block_transactions.into_iter().filter(|tx| {
+513 -520
View File
File diff suppressed because it is too large Load Diff
+74 -78
View File
@@ -17,28 +17,24 @@
//! Autogenerated weights for `pallet_asset_conversion`
//!
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0
//! DATE: 2024-03-01, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
//! DATE: 2023-10-30, STEPS: `5`, REPEAT: `2`, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! WORST CASE MAP SIZE: `1000000`
//! HOSTNAME: `runner-bn-ce5rx-project-674-concurrent-0`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz`
//! HOSTNAME: `cob`, CPU: `<UNKNOWN>`
//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("dev")`, DB CACHE: `1024`
// Executed Command:
// ./target/production/substrate-node
// ./target/debug/substrate-node
// benchmark
// pallet
// --chain=dev
// --steps=50
// --repeat=20
// --pallet=pallet_asset_conversion
// --no-storage-info
// --no-median-slopes
// --no-min-squares
// --steps=5
// --repeat=2
// --pallet=pallet-asset-conversion
// --extrinsic=*
// --wasm-execution=compiled
// --heap-pages=4096
// --output=./substrate/frame/asset-conversion/src/weights.rs
// --header=./substrate/HEADER-APACHE2
// --template=./substrate/.maintain/frame-weight-template.hbs
#![cfg_attr(rustfmt, rustfmt_skip)]
@@ -63,9 +59,11 @@ pub struct SubstrateWeight<T>(PhantomData<T>);
impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
/// Storage: `AssetConversion::Pools` (r:1 w:1)
/// Proof: `AssetConversion::Pools` (`max_values`: None, `max_size`: Some(30), added: 2505, mode: `MaxEncodedLen`)
/// Storage: `System::Account` (r:1 w:1)
/// Storage: `System::Account` (r:2 w:2)
/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
/// Storage: `Assets::Asset` (r:2 w:0)
/// Storage: `Assets::Account` (r:2 w:2)
/// Proof: `Assets::Account` (`max_values`: None, `max_size`: Some(134), added: 2609, mode: `MaxEncodedLen`)
/// Storage: `Assets::Asset` (r:2 w:2)
/// Proof: `Assets::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`)
/// Storage: `AssetConversion::NextPoolAssetId` (r:1 w:1)
/// Proof: `AssetConversion::NextPoolAssetId` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
@@ -75,32 +73,11 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
/// Proof: `PoolAssets::Account` (`max_values`: None, `max_size`: Some(134), added: 2609, mode: `MaxEncodedLen`)
fn create_pool() -> Weight {
// Proof Size summary in bytes:
// Measured: `910`
// Measured: `1081`
// Estimated: `6360`
// Minimum execution time: 82_941_000 picoseconds.
Weight::from_parts(85_526_000, 6360)
.saturating_add(T::DbWeight::get().reads(7_u64))
.saturating_add(T::DbWeight::get().writes(5_u64))
}
/// Storage: `AssetConversion::Pools` (r:1 w:0)
/// Proof: `AssetConversion::Pools` (`max_values`: None, `max_size`: Some(30), added: 2505, mode: `MaxEncodedLen`)
/// Storage: `Assets::Asset` (r:2 w:2)
/// Proof: `Assets::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`)
/// Storage: `Assets::Account` (r:4 w:4)
/// Proof: `Assets::Account` (`max_values`: None, `max_size`: Some(134), added: 2609, mode: `MaxEncodedLen`)
/// Storage: `System::Account` (r:1 w:1)
/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
/// Storage: `PoolAssets::Asset` (r:1 w:1)
/// Proof: `PoolAssets::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`)
/// Storage: `PoolAssets::Account` (r:2 w:2)
/// Proof: `PoolAssets::Account` (`max_values`: None, `max_size`: Some(134), added: 2609, mode: `MaxEncodedLen`)
fn add_liquidity() -> Weight {
// Proof Size summary in bytes:
// Measured: `1507`
// Estimated: `11426`
// Minimum execution time: 138_424_000 picoseconds.
Weight::from_parts(142_083_000, 11426)
.saturating_add(T::DbWeight::get().reads(11_u64))
// Minimum execution time: 1_576_000_000 picoseconds.
Weight::from_parts(1_668_000_000, 6360)
.saturating_add(T::DbWeight::get().reads(10_u64))
.saturating_add(T::DbWeight::get().writes(10_u64))
}
/// Storage: `AssetConversion::Pools` (r:1 w:0)
@@ -111,14 +88,33 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
/// Proof: `Assets::Account` (`max_values`: None, `max_size`: Some(134), added: 2609, mode: `MaxEncodedLen`)
/// Storage: `PoolAssets::Asset` (r:1 w:1)
/// Proof: `PoolAssets::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`)
/// Storage: `PoolAssets::Account` (r:2 w:2)
/// Proof: `PoolAssets::Account` (`max_values`: None, `max_size`: Some(134), added: 2609, mode: `MaxEncodedLen`)
fn add_liquidity() -> Weight {
// Proof Size summary in bytes:
// Measured: `1761`
// Estimated: `11426`
// Minimum execution time: 1_636_000_000 picoseconds.
Weight::from_parts(1_894_000_000, 11426)
.saturating_add(T::DbWeight::get().reads(10_u64))
.saturating_add(T::DbWeight::get().writes(9_u64))
}
/// Storage: `AssetConversion::Pools` (r:1 w:0)
/// Proof: `AssetConversion::Pools` (`max_values`: None, `max_size`: Some(30), added: 2505, mode: `MaxEncodedLen`)
/// Storage: `Assets::Asset` (r:2 w:2)
/// Proof: `Assets::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`)
/// Storage: `Assets::Account` (r:4 w:4)
/// Proof: `Assets::Account` (`max_values`: None, `max_size`: Some(134), added: 2609, mode: `MaxEncodedLen`)
/// Storage: `PoolAssets::Asset` (r:1 w:1)
/// Proof: `PoolAssets::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`)
/// Storage: `PoolAssets::Account` (r:1 w:1)
/// Proof: `PoolAssets::Account` (`max_values`: None, `max_size`: Some(134), added: 2609, mode: `MaxEncodedLen`)
fn remove_liquidity() -> Weight {
// Proof Size summary in bytes:
// Measured: `1650`
// Measured: `1750`
// Estimated: `11426`
// Minimum execution time: 122_132_000 picoseconds.
Weight::from_parts(125_143_000, 11426)
// Minimum execution time: 1_507_000_000 picoseconds.
Weight::from_parts(1_524_000_000, 11426)
.saturating_add(T::DbWeight::get().reads(9_u64))
.saturating_add(T::DbWeight::get().writes(8_u64))
}
@@ -129,12 +125,12 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
/// The range of component `n` is `[2, 4]`.
fn swap_exact_tokens_for_tokens(n: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `89 + n * (419 ±0)`
// Measured: `0 + n * (522 ±0)`
// Estimated: `990 + n * (5218 ±0)`
// Minimum execution time: 77_183_000 picoseconds.
Weight::from_parts(78_581_000, 990)
// Standard Error: 306_918
.saturating_add(Weight::from_parts(10_581_054, 0).saturating_mul(n.into()))
// Minimum execution time: 937_000_000 picoseconds.
Weight::from_parts(941_000_000, 990)
// Standard Error: 40_863_477
.saturating_add(Weight::from_parts(205_862_068, 0).saturating_mul(n.into()))
.saturating_add(T::DbWeight::get().reads((3_u64).saturating_mul(n.into())))
.saturating_add(T::DbWeight::get().writes((3_u64).saturating_mul(n.into())))
.saturating_add(Weight::from_parts(0, 5218).saturating_mul(n.into()))
@@ -146,12 +142,12 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
/// The range of component `n` is `[2, 4]`.
fn swap_tokens_for_exact_tokens(n: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `89 + n * (419 ±0)`
// Measured: `0 + n * (522 ±0)`
// Estimated: `990 + n * (5218 ±0)`
// Minimum execution time: 76_962_000 picoseconds.
Weight::from_parts(78_315_000, 990)
// Standard Error: 311_204
.saturating_add(Weight::from_parts(10_702_400, 0).saturating_mul(n.into()))
// Minimum execution time: 935_000_000 picoseconds.
Weight::from_parts(947_000_000, 990)
// Standard Error: 46_904_620
.saturating_add(Weight::from_parts(218_275_862, 0).saturating_mul(n.into()))
.saturating_add(T::DbWeight::get().reads((3_u64).saturating_mul(n.into())))
.saturating_add(T::DbWeight::get().writes((3_u64).saturating_mul(n.into())))
.saturating_add(Weight::from_parts(0, 5218).saturating_mul(n.into()))
@@ -162,9 +158,11 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
impl WeightInfo for () {
/// Storage: `AssetConversion::Pools` (r:1 w:1)
/// Proof: `AssetConversion::Pools` (`max_values`: None, `max_size`: Some(30), added: 2505, mode: `MaxEncodedLen`)
/// Storage: `System::Account` (r:1 w:1)
/// Storage: `System::Account` (r:2 w:2)
/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
/// Storage: `Assets::Asset` (r:2 w:0)
/// Storage: `Assets::Account` (r:2 w:2)
/// Proof: `Assets::Account` (`max_values`: None, `max_size`: Some(134), added: 2609, mode: `MaxEncodedLen`)
/// Storage: `Assets::Asset` (r:2 w:2)
/// Proof: `Assets::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`)
/// Storage: `AssetConversion::NextPoolAssetId` (r:1 w:1)
/// Proof: `AssetConversion::NextPoolAssetId` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
@@ -174,12 +172,12 @@ impl WeightInfo for () {
/// Proof: `PoolAssets::Account` (`max_values`: None, `max_size`: Some(134), added: 2609, mode: `MaxEncodedLen`)
fn create_pool() -> Weight {
// Proof Size summary in bytes:
// Measured: `910`
// Measured: `1081`
// Estimated: `6360`
// Minimum execution time: 82_941_000 picoseconds.
Weight::from_parts(85_526_000, 6360)
.saturating_add(RocksDbWeight::get().reads(7_u64))
.saturating_add(RocksDbWeight::get().writes(5_u64))
// Minimum execution time: 1_576_000_000 picoseconds.
Weight::from_parts(1_668_000_000, 6360)
.saturating_add(RocksDbWeight::get().reads(10_u64))
.saturating_add(RocksDbWeight::get().writes(10_u64))
}
/// Storage: `AssetConversion::Pools` (r:1 w:0)
/// Proof: `AssetConversion::Pools` (`max_values`: None, `max_size`: Some(30), added: 2505, mode: `MaxEncodedLen`)
@@ -187,20 +185,18 @@ impl WeightInfo for () {
/// Proof: `Assets::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`)
/// Storage: `Assets::Account` (r:4 w:4)
/// Proof: `Assets::Account` (`max_values`: None, `max_size`: Some(134), added: 2609, mode: `MaxEncodedLen`)
/// Storage: `System::Account` (r:1 w:1)
/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
/// Storage: `PoolAssets::Asset` (r:1 w:1)
/// Proof: `PoolAssets::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`)
/// Storage: `PoolAssets::Account` (r:2 w:2)
/// Proof: `PoolAssets::Account` (`max_values`: None, `max_size`: Some(134), added: 2609, mode: `MaxEncodedLen`)
fn add_liquidity() -> Weight {
// Proof Size summary in bytes:
// Measured: `1507`
// Measured: `1761`
// Estimated: `11426`
// Minimum execution time: 138_424_000 picoseconds.
Weight::from_parts(142_083_000, 11426)
.saturating_add(RocksDbWeight::get().reads(11_u64))
.saturating_add(RocksDbWeight::get().writes(10_u64))
// Minimum execution time: 1_636_000_000 picoseconds.
Weight::from_parts(1_894_000_000, 11426)
.saturating_add(RocksDbWeight::get().reads(10_u64))
.saturating_add(RocksDbWeight::get().writes(9_u64))
}
/// Storage: `AssetConversion::Pools` (r:1 w:0)
/// Proof: `AssetConversion::Pools` (`max_values`: None, `max_size`: Some(30), added: 2505, mode: `MaxEncodedLen`)
@@ -214,10 +210,10 @@ impl WeightInfo for () {
/// Proof: `PoolAssets::Account` (`max_values`: None, `max_size`: Some(134), added: 2609, mode: `MaxEncodedLen`)
fn remove_liquidity() -> Weight {
// Proof Size summary in bytes:
// Measured: `1650`
// Measured: `1750`
// Estimated: `11426`
// Minimum execution time: 122_132_000 picoseconds.
Weight::from_parts(125_143_000, 11426)
// Minimum execution time: 1_507_000_000 picoseconds.
Weight::from_parts(1_524_000_000, 11426)
.saturating_add(RocksDbWeight::get().reads(9_u64))
.saturating_add(RocksDbWeight::get().writes(8_u64))
}
@@ -228,12 +224,12 @@ impl WeightInfo for () {
/// The range of component `n` is `[2, 4]`.
fn swap_exact_tokens_for_tokens(n: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `89 + n * (419 ±0)`
// Measured: `0 + n * (522 ±0)`
// Estimated: `990 + n * (5218 ±0)`
// Minimum execution time: 77_183_000 picoseconds.
Weight::from_parts(78_581_000, 990)
// Standard Error: 306_918
.saturating_add(Weight::from_parts(10_581_054, 0).saturating_mul(n.into()))
// Minimum execution time: 937_000_000 picoseconds.
Weight::from_parts(941_000_000, 990)
// Standard Error: 40_863_477
.saturating_add(Weight::from_parts(205_862_068, 0).saturating_mul(n.into()))
.saturating_add(RocksDbWeight::get().reads((3_u64).saturating_mul(n.into())))
.saturating_add(RocksDbWeight::get().writes((3_u64).saturating_mul(n.into())))
.saturating_add(Weight::from_parts(0, 5218).saturating_mul(n.into()))
@@ -245,12 +241,12 @@ impl WeightInfo for () {
/// The range of component `n` is `[2, 4]`.
fn swap_tokens_for_exact_tokens(n: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `89 + n * (419 ±0)`
// Measured: `0 + n * (522 ±0)`
// Estimated: `990 + n * (5218 ±0)`
// Minimum execution time: 76_962_000 picoseconds.
Weight::from_parts(78_315_000, 990)
// Standard Error: 311_204
.saturating_add(Weight::from_parts(10_702_400, 0).saturating_mul(n.into()))
// Minimum execution time: 935_000_000 picoseconds.
Weight::from_parts(947_000_000, 990)
// Standard Error: 46_904_620
.saturating_add(Weight::from_parts(218_275_862, 0).saturating_mul(n.into()))
.saturating_add(RocksDbWeight::get().reads((3_u64).saturating_mul(n.into())))
.saturating_add(RocksDbWeight::get().writes((3_u64).saturating_mul(n.into())))
.saturating_add(Weight::from_parts(0, 5218).saturating_mul(n.into()))
+37 -36
View File
@@ -15,16 +15,16 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//! Autogenerated weights for `pallet_asset_rate`
//! Autogenerated weights for pallet_asset_rate
//!
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0
//! DATE: 2024-03-01, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
//! DATE: 2023-06-16, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! WORST CASE MAP SIZE: `1000000`
//! HOSTNAME: `runner-bn-ce5rx-project-674-concurrent-0`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz`
//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("dev")`, DB CACHE: `1024`
//! HOSTNAME: `runner-e8ezs4ez-project-145-concurrent-0`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz`
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024
// Executed Command:
// ./target/production/substrate-node
// ./target/production/substrate
// benchmark
// pallet
// --chain=dev
@@ -35,11 +35,12 @@
// --no-median-slopes
// --no-min-squares
// --extrinsic=*
// --execution=wasm
// --wasm-execution=compiled
// --heap-pages=4096
// --output=./substrate/frame/asset-rate/src/weights.rs
// --header=./substrate/HEADER-APACHE2
// --template=./substrate/.maintain/frame-weight-template.hbs
// --output=./frame/asset-rate/src/weights.rs
// --header=./HEADER-APACHE2
// --template=./.maintain/frame-weight-template.hbs
#![cfg_attr(rustfmt, rustfmt_skip)]
#![allow(unused_parens)]
@@ -49,83 +50,83 @@
use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}};
use core::marker::PhantomData;
/// Weight functions needed for `pallet_asset_rate`.
/// Weight functions needed for pallet_asset_rate.
pub trait WeightInfo {
fn create() -> Weight;
fn update() -> Weight;
fn remove() -> Weight;
}
/// Weights for `pallet_asset_rate` using the Substrate node and recommended hardware.
/// Weights for pallet_asset_rate using the Substrate node and recommended hardware.
pub struct SubstrateWeight<T>(PhantomData<T>);
impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
/// Storage: `AssetRate::ConversionRateToNative` (r:1 w:1)
/// Proof: `AssetRate::ConversionRateToNative` (`max_values`: None, `max_size`: Some(36), added: 2511, mode: `MaxEncodedLen`)
/// Storage: AssetRate ConversionRateToNative (r:1 w:1)
/// Proof: AssetRate ConversionRateToNative (max_values: None, max_size: Some(36), added: 2511, mode: MaxEncodedLen)
fn create() -> Weight {
// Proof Size summary in bytes:
// Measured: `76`
// Estimated: `3501`
// Minimum execution time: 9_447_000 picoseconds.
Weight::from_parts(10_078_000, 3501)
// Minimum execution time: 11_700_000 picoseconds.
Weight::from_parts(12_158_000, 3501)
.saturating_add(T::DbWeight::get().reads(1_u64))
.saturating_add(T::DbWeight::get().writes(1_u64))
}
/// Storage: `AssetRate::ConversionRateToNative` (r:1 w:1)
/// Proof: `AssetRate::ConversionRateToNative` (`max_values`: None, `max_size`: Some(36), added: 2511, mode: `MaxEncodedLen`)
/// Storage: AssetRate ConversionRateToNative (r:1 w:1)
/// Proof: AssetRate ConversionRateToNative (max_values: None, max_size: Some(36), added: 2511, mode: MaxEncodedLen)
fn update() -> Weight {
// Proof Size summary in bytes:
// Measured: `137`
// Estimated: `3501`
// Minimum execution time: 9_844_000 picoseconds.
Weight::from_parts(10_240_000, 3501)
// Minimum execution time: 12_119_000 picoseconds.
Weight::from_parts(12_548_000, 3501)
.saturating_add(T::DbWeight::get().reads(1_u64))
.saturating_add(T::DbWeight::get().writes(1_u64))
}
/// Storage: `AssetRate::ConversionRateToNative` (r:1 w:1)
/// Proof: `AssetRate::ConversionRateToNative` (`max_values`: None, `max_size`: Some(36), added: 2511, mode: `MaxEncodedLen`)
/// Storage: AssetRate ConversionRateToNative (r:1 w:1)
/// Proof: AssetRate ConversionRateToNative (max_values: None, max_size: Some(36), added: 2511, mode: MaxEncodedLen)
fn remove() -> Weight {
// Proof Size summary in bytes:
// Measured: `137`
// Estimated: `3501`
// Minimum execution time: 10_411_000 picoseconds.
Weight::from_parts(10_686_000, 3501)
// Minimum execution time: 12_541_000 picoseconds.
Weight::from_parts(12_956_000, 3501)
.saturating_add(T::DbWeight::get().reads(1_u64))
.saturating_add(T::DbWeight::get().writes(1_u64))
}
}
// For backwards compatibility and tests.
// For backwards compatibility and tests
impl WeightInfo for () {
/// Storage: `AssetRate::ConversionRateToNative` (r:1 w:1)
/// Proof: `AssetRate::ConversionRateToNative` (`max_values`: None, `max_size`: Some(36), added: 2511, mode: `MaxEncodedLen`)
/// Storage: AssetRate ConversionRateToNative (r:1 w:1)
/// Proof: AssetRate ConversionRateToNative (max_values: None, max_size: Some(36), added: 2511, mode: MaxEncodedLen)
fn create() -> Weight {
// Proof Size summary in bytes:
// Measured: `76`
// Estimated: `3501`
// Minimum execution time: 9_447_000 picoseconds.
Weight::from_parts(10_078_000, 3501)
// Minimum execution time: 11_700_000 picoseconds.
Weight::from_parts(12_158_000, 3501)
.saturating_add(RocksDbWeight::get().reads(1_u64))
.saturating_add(RocksDbWeight::get().writes(1_u64))
}
/// Storage: `AssetRate::ConversionRateToNative` (r:1 w:1)
/// Proof: `AssetRate::ConversionRateToNative` (`max_values`: None, `max_size`: Some(36), added: 2511, mode: `MaxEncodedLen`)
/// Storage: AssetRate ConversionRateToNative (r:1 w:1)
/// Proof: AssetRate ConversionRateToNative (max_values: None, max_size: Some(36), added: 2511, mode: MaxEncodedLen)
fn update() -> Weight {
// Proof Size summary in bytes:
// Measured: `137`
// Estimated: `3501`
// Minimum execution time: 9_844_000 picoseconds.
Weight::from_parts(10_240_000, 3501)
// Minimum execution time: 12_119_000 picoseconds.
Weight::from_parts(12_548_000, 3501)
.saturating_add(RocksDbWeight::get().reads(1_u64))
.saturating_add(RocksDbWeight::get().writes(1_u64))
}
/// Storage: `AssetRate::ConversionRateToNative` (r:1 w:1)
/// Proof: `AssetRate::ConversionRateToNative` (`max_values`: None, `max_size`: Some(36), added: 2511, mode: `MaxEncodedLen`)
/// Storage: AssetRate ConversionRateToNative (r:1 w:1)
/// Proof: AssetRate ConversionRateToNative (max_values: None, max_size: Some(36), added: 2511, mode: MaxEncodedLen)
fn remove() -> Weight {
// Proof Size summary in bytes:
// Measured: `137`
// Estimated: `3501`
// Minimum execution time: 10_411_000 picoseconds.
Weight::from_parts(10_686_000, 3501)
// Minimum execution time: 12_541_000 picoseconds.
Weight::from_parts(12_956_000, 3501)
.saturating_add(RocksDbWeight::get().reads(1_u64))
.saturating_add(RocksDbWeight::get().writes(1_u64))
}
+417 -424
View File
File diff suppressed because it is too large Load Diff
+2 -3
View File
@@ -37,9 +37,8 @@ use sp_core::{
use sp_io;
use sp_runtime::{
curve::PiecewiseLinear,
generic::UncheckedExtrinsic,
impl_opaque_keys,
testing::{Digest, DigestItem, Header},
testing::{Digest, DigestItem, Header, TestXt},
traits::{Header as _, OpaqueKeys},
BuildStorage, Perbill,
};
@@ -75,7 +74,7 @@ where
RuntimeCall: From<C>,
{
type OverarchingCall = RuntimeCall;
type Extrinsic = UncheckedExtrinsic<u64, RuntimeCall, (), ()>;
type Extrinsic = TestXt<RuntimeCall, ()>;
}
impl_opaque_keys! {
+83 -82
View File
@@ -15,16 +15,16 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//! Autogenerated weights for `pallet_bags_list`
//! Autogenerated weights for pallet_bags_list
//!
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0
//! DATE: 2024-03-01, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
//! DATE: 2023-06-16, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! WORST CASE MAP SIZE: `1000000`
//! HOSTNAME: `runner-bn-ce5rx-project-674-concurrent-0`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz`
//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("dev")`, DB CACHE: `1024`
//! HOSTNAME: `runner-e8ezs4ez-project-145-concurrent-0`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz`
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024
// Executed Command:
// ./target/production/substrate-node
// ./target/production/substrate
// benchmark
// pallet
// --chain=dev
@@ -35,11 +35,12 @@
// --no-median-slopes
// --no-min-squares
// --extrinsic=*
// --execution=wasm
// --wasm-execution=compiled
// --heap-pages=4096
// --output=./substrate/frame/bags-list/src/weights.rs
// --header=./substrate/HEADER-APACHE2
// --template=./substrate/.maintain/frame-weight-template.hbs
// --output=./frame/bags-list/src/weights.rs
// --header=./HEADER-APACHE2
// --template=./.maintain/frame-weight-template.hbs
#![cfg_attr(rustfmt, rustfmt_skip)]
#![allow(unused_parens)]
@@ -49,123 +50,123 @@
use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}};
use core::marker::PhantomData;
/// Weight functions needed for `pallet_bags_list`.
/// Weight functions needed for pallet_bags_list.
pub trait WeightInfo {
fn rebag_non_terminal() -> Weight;
fn rebag_terminal() -> Weight;
fn put_in_front_of() -> Weight;
}
/// Weights for `pallet_bags_list` using the Substrate node and recommended hardware.
/// Weights for pallet_bags_list using the Substrate node and recommended hardware.
pub struct SubstrateWeight<T>(PhantomData<T>);
impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
/// Storage: `Staking::Bonded` (r:1 w:0)
/// Proof: `Staking::Bonded` (`max_values`: None, `max_size`: Some(72), added: 2547, mode: `MaxEncodedLen`)
/// Storage: `Staking::Ledger` (r:1 w:0)
/// Proof: `Staking::Ledger` (`max_values`: None, `max_size`: Some(1091), added: 3566, mode: `MaxEncodedLen`)
/// Storage: `VoterList::ListNodes` (r:4 w:4)
/// Proof: `VoterList::ListNodes` (`max_values`: None, `max_size`: Some(154), added: 2629, mode: `MaxEncodedLen`)
/// Storage: `VoterList::ListBags` (r:1 w:1)
/// Proof: `VoterList::ListBags` (`max_values`: None, `max_size`: Some(82), added: 2557, mode: `MaxEncodedLen`)
/// Storage: Staking Bonded (r:1 w:0)
/// Proof: Staking Bonded (max_values: None, max_size: Some(72), added: 2547, mode: MaxEncodedLen)
/// Storage: Staking Ledger (r:1 w:0)
/// Proof: Staking Ledger (max_values: None, max_size: Some(1091), added: 3566, mode: MaxEncodedLen)
/// Storage: VoterList ListNodes (r:4 w:4)
/// Proof: VoterList ListNodes (max_values: None, max_size: Some(154), added: 2629, mode: MaxEncodedLen)
/// Storage: VoterList ListBags (r:1 w:1)
/// Proof: VoterList ListBags (max_values: None, max_size: Some(82), added: 2557, mode: MaxEncodedLen)
fn rebag_non_terminal() -> Weight {
// Proof Size summary in bytes:
// Measured: `1719`
// Measured: `1724`
// Estimated: `11506`
// Minimum execution time: 55_856_000 picoseconds.
Weight::from_parts(59_022_000, 11506)
// Minimum execution time: 62_137_000 picoseconds.
Weight::from_parts(64_050_000, 11506)
.saturating_add(T::DbWeight::get().reads(7_u64))
.saturating_add(T::DbWeight::get().writes(5_u64))
}
/// Storage: `Staking::Bonded` (r:1 w:0)
/// Proof: `Staking::Bonded` (`max_values`: None, `max_size`: Some(72), added: 2547, mode: `MaxEncodedLen`)
/// Storage: `Staking::Ledger` (r:1 w:0)
/// Proof: `Staking::Ledger` (`max_values`: None, `max_size`: Some(1091), added: 3566, mode: `MaxEncodedLen`)
/// Storage: `VoterList::ListNodes` (r:3 w:3)
/// Proof: `VoterList::ListNodes` (`max_values`: None, `max_size`: Some(154), added: 2629, mode: `MaxEncodedLen`)
/// Storage: `VoterList::ListBags` (r:2 w:2)
/// Proof: `VoterList::ListBags` (`max_values`: None, `max_size`: Some(82), added: 2557, mode: `MaxEncodedLen`)
/// Storage: Staking Bonded (r:1 w:0)
/// Proof: Staking Bonded (max_values: None, max_size: Some(72), added: 2547, mode: MaxEncodedLen)
/// Storage: Staking Ledger (r:1 w:0)
/// Proof: Staking Ledger (max_values: None, max_size: Some(1091), added: 3566, mode: MaxEncodedLen)
/// Storage: VoterList ListNodes (r:3 w:3)
/// Proof: VoterList ListNodes (max_values: None, max_size: Some(154), added: 2629, mode: MaxEncodedLen)
/// Storage: VoterList ListBags (r:2 w:2)
/// Proof: VoterList ListBags (max_values: None, max_size: Some(82), added: 2557, mode: MaxEncodedLen)
fn rebag_terminal() -> Weight {
// Proof Size summary in bytes:
// Measured: `1613`
// Measured: `1618`
// Estimated: `8877`
// Minimum execution time: 55_418_000 picoseconds.
Weight::from_parts(57_352_000, 8877)
// Minimum execution time: 60_880_000 picoseconds.
Weight::from_parts(62_078_000, 8877)
.saturating_add(T::DbWeight::get().reads(7_u64))
.saturating_add(T::DbWeight::get().writes(5_u64))
}
/// Storage: `VoterList::ListNodes` (r:4 w:4)
/// Proof: `VoterList::ListNodes` (`max_values`: None, `max_size`: Some(154), added: 2629, mode: `MaxEncodedLen`)
/// Storage: `Staking::Bonded` (r:2 w:0)
/// Proof: `Staking::Bonded` (`max_values`: None, `max_size`: Some(72), added: 2547, mode: `MaxEncodedLen`)
/// Storage: `Staking::Ledger` (r:2 w:0)
/// Proof: `Staking::Ledger` (`max_values`: None, `max_size`: Some(1091), added: 3566, mode: `MaxEncodedLen`)
/// Storage: `VoterList::CounterForListNodes` (r:1 w:1)
/// Proof: `VoterList::CounterForListNodes` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
/// Storage: `VoterList::ListBags` (r:1 w:1)
/// Proof: `VoterList::ListBags` (`max_values`: None, `max_size`: Some(82), added: 2557, mode: `MaxEncodedLen`)
/// Storage: VoterList ListNodes (r:4 w:4)
/// Proof: VoterList ListNodes (max_values: None, max_size: Some(154), added: 2629, mode: MaxEncodedLen)
/// Storage: Staking Bonded (r:2 w:0)
/// Proof: Staking Bonded (max_values: None, max_size: Some(72), added: 2547, mode: MaxEncodedLen)
/// Storage: Staking Ledger (r:2 w:0)
/// Proof: Staking Ledger (max_values: None, max_size: Some(1091), added: 3566, mode: MaxEncodedLen)
/// Storage: VoterList CounterForListNodes (r:1 w:1)
/// Proof: VoterList CounterForListNodes (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
/// Storage: VoterList ListBags (r:1 w:1)
/// Proof: VoterList ListBags (max_values: None, max_size: Some(82), added: 2557, mode: MaxEncodedLen)
fn put_in_front_of() -> Weight {
// Proof Size summary in bytes:
// Measured: `1925`
// Measured: `1930`
// Estimated: `11506`
// Minimum execution time: 63_820_000 picoseconds.
Weight::from_parts(65_530_000, 11506)
// Minimum execution time: 68_911_000 picoseconds.
Weight::from_parts(70_592_000, 11506)
.saturating_add(T::DbWeight::get().reads(10_u64))
.saturating_add(T::DbWeight::get().writes(6_u64))
}
}
// For backwards compatibility and tests.
// For backwards compatibility and tests
impl WeightInfo for () {
/// Storage: `Staking::Bonded` (r:1 w:0)
/// Proof: `Staking::Bonded` (`max_values`: None, `max_size`: Some(72), added: 2547, mode: `MaxEncodedLen`)
/// Storage: `Staking::Ledger` (r:1 w:0)
/// Proof: `Staking::Ledger` (`max_values`: None, `max_size`: Some(1091), added: 3566, mode: `MaxEncodedLen`)
/// Storage: `VoterList::ListNodes` (r:4 w:4)
/// Proof: `VoterList::ListNodes` (`max_values`: None, `max_size`: Some(154), added: 2629, mode: `MaxEncodedLen`)
/// Storage: `VoterList::ListBags` (r:1 w:1)
/// Proof: `VoterList::ListBags` (`max_values`: None, `max_size`: Some(82), added: 2557, mode: `MaxEncodedLen`)
/// Storage: Staking Bonded (r:1 w:0)
/// Proof: Staking Bonded (max_values: None, max_size: Some(72), added: 2547, mode: MaxEncodedLen)
/// Storage: Staking Ledger (r:1 w:0)
/// Proof: Staking Ledger (max_values: None, max_size: Some(1091), added: 3566, mode: MaxEncodedLen)
/// Storage: VoterList ListNodes (r:4 w:4)
/// Proof: VoterList ListNodes (max_values: None, max_size: Some(154), added: 2629, mode: MaxEncodedLen)
/// Storage: VoterList ListBags (r:1 w:1)
/// Proof: VoterList ListBags (max_values: None, max_size: Some(82), added: 2557, mode: MaxEncodedLen)
fn rebag_non_terminal() -> Weight {
// Proof Size summary in bytes:
// Measured: `1719`
// Measured: `1724`
// Estimated: `11506`
// Minimum execution time: 55_856_000 picoseconds.
Weight::from_parts(59_022_000, 11506)
// Minimum execution time: 62_137_000 picoseconds.
Weight::from_parts(64_050_000, 11506)
.saturating_add(RocksDbWeight::get().reads(7_u64))
.saturating_add(RocksDbWeight::get().writes(5_u64))
}
/// Storage: `Staking::Bonded` (r:1 w:0)
/// Proof: `Staking::Bonded` (`max_values`: None, `max_size`: Some(72), added: 2547, mode: `MaxEncodedLen`)
/// Storage: `Staking::Ledger` (r:1 w:0)
/// Proof: `Staking::Ledger` (`max_values`: None, `max_size`: Some(1091), added: 3566, mode: `MaxEncodedLen`)
/// Storage: `VoterList::ListNodes` (r:3 w:3)
/// Proof: `VoterList::ListNodes` (`max_values`: None, `max_size`: Some(154), added: 2629, mode: `MaxEncodedLen`)
/// Storage: `VoterList::ListBags` (r:2 w:2)
/// Proof: `VoterList::ListBags` (`max_values`: None, `max_size`: Some(82), added: 2557, mode: `MaxEncodedLen`)
/// Storage: Staking Bonded (r:1 w:0)
/// Proof: Staking Bonded (max_values: None, max_size: Some(72), added: 2547, mode: MaxEncodedLen)
/// Storage: Staking Ledger (r:1 w:0)
/// Proof: Staking Ledger (max_values: None, max_size: Some(1091), added: 3566, mode: MaxEncodedLen)
/// Storage: VoterList ListNodes (r:3 w:3)
/// Proof: VoterList ListNodes (max_values: None, max_size: Some(154), added: 2629, mode: MaxEncodedLen)
/// Storage: VoterList ListBags (r:2 w:2)
/// Proof: VoterList ListBags (max_values: None, max_size: Some(82), added: 2557, mode: MaxEncodedLen)
fn rebag_terminal() -> Weight {
// Proof Size summary in bytes:
// Measured: `1613`
// Measured: `1618`
// Estimated: `8877`
// Minimum execution time: 55_418_000 picoseconds.
Weight::from_parts(57_352_000, 8877)
// Minimum execution time: 60_880_000 picoseconds.
Weight::from_parts(62_078_000, 8877)
.saturating_add(RocksDbWeight::get().reads(7_u64))
.saturating_add(RocksDbWeight::get().writes(5_u64))
}
/// Storage: `VoterList::ListNodes` (r:4 w:4)
/// Proof: `VoterList::ListNodes` (`max_values`: None, `max_size`: Some(154), added: 2629, mode: `MaxEncodedLen`)
/// Storage: `Staking::Bonded` (r:2 w:0)
/// Proof: `Staking::Bonded` (`max_values`: None, `max_size`: Some(72), added: 2547, mode: `MaxEncodedLen`)
/// Storage: `Staking::Ledger` (r:2 w:0)
/// Proof: `Staking::Ledger` (`max_values`: None, `max_size`: Some(1091), added: 3566, mode: `MaxEncodedLen`)
/// Storage: `VoterList::CounterForListNodes` (r:1 w:1)
/// Proof: `VoterList::CounterForListNodes` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
/// Storage: `VoterList::ListBags` (r:1 w:1)
/// Proof: `VoterList::ListBags` (`max_values`: None, `max_size`: Some(82), added: 2557, mode: `MaxEncodedLen`)
/// Storage: VoterList ListNodes (r:4 w:4)
/// Proof: VoterList ListNodes (max_values: None, max_size: Some(154), added: 2629, mode: MaxEncodedLen)
/// Storage: Staking Bonded (r:2 w:0)
/// Proof: Staking Bonded (max_values: None, max_size: Some(72), added: 2547, mode: MaxEncodedLen)
/// Storage: Staking Ledger (r:2 w:0)
/// Proof: Staking Ledger (max_values: None, max_size: Some(1091), added: 3566, mode: MaxEncodedLen)
/// Storage: VoterList CounterForListNodes (r:1 w:1)
/// Proof: VoterList CounterForListNodes (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
/// Storage: VoterList ListBags (r:1 w:1)
/// Proof: VoterList ListBags (max_values: None, max_size: Some(82), added: 2557, mode: MaxEncodedLen)
fn put_in_front_of() -> Weight {
// Proof Size summary in bytes:
// Measured: `1925`
// Measured: `1930`
// Estimated: `11506`
// Minimum execution time: 63_820_000 picoseconds.
Weight::from_parts(65_530_000, 11506)
// Minimum execution time: 68_911_000 picoseconds.
Weight::from_parts(70_592_000, 11506)
.saturating_add(RocksDbWeight::get().reads(10_u64))
.saturating_add(RocksDbWeight::get().writes(6_u64))
}
-1
View File
@@ -53,7 +53,6 @@ runtime-benchmarks = [
"frame-benchmarking/runtime-benchmarks",
"frame-support/runtime-benchmarks",
"frame-system/runtime-benchmarks",
"pallet-transaction-payment/runtime-benchmarks",
"sp-runtime/runtime-benchmarks",
]
try-runtime = [
@@ -30,7 +30,6 @@ use frame_support::{
StorageNoopGuard,
};
use frame_system::Event as SysEvent;
use sp_runtime::traits::DispatchTransaction;
const ID_1: LockIdentifier = *b"1 ";
const ID_2: LockIdentifier = *b"2 ";
@@ -241,17 +240,17 @@ fn lock_should_work_reserve() {
TokenError::Frozen
);
assert_noop!(Balances::reserve(&1, 1), Error::<Test>::LiquidityRestrictions,);
assert!(ChargeTransactionPayment::<Test>::validate_and_prepare(
assert!(<ChargeTransactionPayment<Test> as SignedExtension>::pre_dispatch(
ChargeTransactionPayment::from(1),
Some(1).into(),
&1,
CALL,
&info_from_weight(Weight::from_parts(1, 0)),
1,
)
.is_err());
assert!(ChargeTransactionPayment::<Test>::validate_and_prepare(
assert!(<ChargeTransactionPayment<Test> as SignedExtension>::pre_dispatch(
ChargeTransactionPayment::from(0),
Some(1).into(),
&1,
CALL,
&info_from_weight(Weight::from_parts(1, 0)),
1,
@@ -272,17 +271,17 @@ fn lock_should_work_tx_fee() {
TokenError::Frozen
);
assert_noop!(Balances::reserve(&1, 1), Error::<Test>::LiquidityRestrictions,);
assert!(ChargeTransactionPayment::<Test>::validate_and_prepare(
assert!(<ChargeTransactionPayment<Test> as SignedExtension>::pre_dispatch(
ChargeTransactionPayment::from(1),
Some(1).into(),
&1,
CALL,
&info_from_weight(Weight::from_parts(1, 0)),
1,
)
.is_err());
assert!(ChargeTransactionPayment::<Test>::validate_and_prepare(
assert!(<ChargeTransactionPayment<Test> as SignedExtension>::pre_dispatch(
ChargeTransactionPayment::from(0),
Some(1).into(),
&1,
CALL,
&info_from_weight(Weight::from_parts(1, 0)),
1,
+2 -2
View File
@@ -37,7 +37,7 @@ use scale_info::TypeInfo;
use sp_core::hexdisplay::HexDisplay;
use sp_io;
use sp_runtime::{
traits::{BadOrigin, Zero},
traits::{BadOrigin, SignedExtension, Zero},
ArithmeticError, BuildStorage, DispatchError, DispatchResult, FixedPointNumber, RuntimeDebug,
TokenError,
};
@@ -96,13 +96,13 @@ impl frame_system::Config for Test {
type AccountData = super::AccountData<u64>;
}
#[derive_impl(pallet_transaction_payment::config_preludes::TestDefaultConfig as pallet_transaction_payment::DefaultConfig)]
impl pallet_transaction_payment::Config for Test {
type RuntimeEvent = RuntimeEvent;
type OnChargeTransaction = CurrencyAdapter<Pallet<Test>, ()>;
type OperationalFeeMultiplier = ConstU8<5>;
type WeightToFee = IdentityFee<u64>;
type LengthToFee = IdentityFee<u64>;
type FeeMultiplierUpdate = ();
}
pub(crate) type Balance = u64;
+48 -50
View File
@@ -17,28 +17,26 @@
//! Autogenerated weights for `pallet_balances`
//!
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0
//! DATE: 2024-03-01, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
//! DATE: 2024-01-20, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! WORST CASE MAP SIZE: `1000000`
//! HOSTNAME: `runner-bn-ce5rx-project-674-concurrent-0`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz`
//! HOSTNAME: `runner-j8vvqcjr-project-674-concurrent-0`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz`
//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("dev")`, DB CACHE: `1024`
// Executed Command:
// ./target/production/substrate-node
// target/production/substrate-node
// benchmark
// pallet
// --chain=dev
// --steps=50
// --repeat=20
// --pallet=pallet_balances
// --no-storage-info
// --no-median-slopes
// --no-min-squares
// --extrinsic=*
// --wasm-execution=compiled
// --heap-pages=4096
// --output=./substrate/frame/balances/src/weights.rs
// --json-file=/builds/parity/mirrors/polkadot-sdk/.git/.artifacts/bench.json
// --pallet=pallet_balances
// --chain=dev
// --header=./substrate/HEADER-APACHE2
// --output=./substrate/frame/balances/src/weights.rs
// --template=./substrate/.maintain/frame-weight-template.hbs
#![cfg_attr(rustfmt, rustfmt_skip)]
@@ -71,8 +69,8 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `3593`
// Minimum execution time: 46_407_000 picoseconds.
Weight::from_parts(47_561_000, 3593)
// Minimum execution time: 46_329_000 picoseconds.
Weight::from_parts(47_297_000, 3593)
.saturating_add(T::DbWeight::get().reads(1_u64))
.saturating_add(T::DbWeight::get().writes(1_u64))
}
@@ -82,8 +80,8 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `3593`
// Minimum execution time: 36_574_000 picoseconds.
Weight::from_parts(37_682_000, 3593)
// Minimum execution time: 36_187_000 picoseconds.
Weight::from_parts(36_900_000, 3593)
.saturating_add(T::DbWeight::get().reads(1_u64))
.saturating_add(T::DbWeight::get().writes(1_u64))
}
@@ -93,8 +91,8 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
// Proof Size summary in bytes:
// Measured: `174`
// Estimated: `3593`
// Minimum execution time: 13_990_000 picoseconds.
Weight::from_parts(14_568_000, 3593)
// Minimum execution time: 13_498_000 picoseconds.
Weight::from_parts(14_143_000, 3593)
.saturating_add(T::DbWeight::get().reads(1_u64))
.saturating_add(T::DbWeight::get().writes(1_u64))
}
@@ -104,8 +102,8 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
// Proof Size summary in bytes:
// Measured: `174`
// Estimated: `3593`
// Minimum execution time: 19_594_000 picoseconds.
Weight::from_parts(20_148_000, 3593)
// Minimum execution time: 18_756_000 picoseconds.
Weight::from_parts(19_553_000, 3593)
.saturating_add(T::DbWeight::get().reads(1_u64))
.saturating_add(T::DbWeight::get().writes(1_u64))
}
@@ -115,8 +113,8 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
// Proof Size summary in bytes:
// Measured: `103`
// Estimated: `6196`
// Minimum execution time: 47_945_000 picoseconds.
Weight::from_parts(49_363_000, 6196)
// Minimum execution time: 47_826_000 picoseconds.
Weight::from_parts(48_834_000, 6196)
.saturating_add(T::DbWeight::get().reads(2_u64))
.saturating_add(T::DbWeight::get().writes(2_u64))
}
@@ -126,8 +124,8 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `3593`
// Minimum execution time: 45_205_000 picoseconds.
Weight::from_parts(45_952_000, 3593)
// Minimum execution time: 44_621_000 picoseconds.
Weight::from_parts(45_151_000, 3593)
.saturating_add(T::DbWeight::get().reads(1_u64))
.saturating_add(T::DbWeight::get().writes(1_u64))
}
@@ -137,8 +135,8 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
// Proof Size summary in bytes:
// Measured: `174`
// Estimated: `3593`
// Minimum execution time: 16_593_000 picoseconds.
Weight::from_parts(17_123_000, 3593)
// Minimum execution time: 16_194_000 picoseconds.
Weight::from_parts(16_945_000, 3593)
.saturating_add(T::DbWeight::get().reads(1_u64))
.saturating_add(T::DbWeight::get().writes(1_u64))
}
@@ -149,10 +147,10 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
// Proof Size summary in bytes:
// Measured: `0 + u * (135 ±0)`
// Estimated: `990 + u * (2603 ±0)`
// Minimum execution time: 16_182_000 picoseconds.
Weight::from_parts(16_412_000, 990)
// Standard Error: 10_148
.saturating_add(Weight::from_parts(13_382_459, 0).saturating_mul(u.into()))
// Minimum execution time: 15_782_000 picoseconds.
Weight::from_parts(16_118_000, 990)
// Standard Error: 10_499
.saturating_add(Weight::from_parts(13_327_660, 0).saturating_mul(u.into()))
.saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(u.into())))
.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(u.into())))
.saturating_add(Weight::from_parts(0, 2603).saturating_mul(u.into()))
@@ -161,8 +159,8 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `0`
// Minimum execution time: 6_478_000 picoseconds.
Weight::from_parts(6_830_000, 0)
// Minimum execution time: 6_157_000 picoseconds.
Weight::from_parts(6_507_000, 0)
}
}
@@ -174,8 +172,8 @@ impl WeightInfo for () {
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `3593`
// Minimum execution time: 46_407_000 picoseconds.
Weight::from_parts(47_561_000, 3593)
// Minimum execution time: 46_329_000 picoseconds.
Weight::from_parts(47_297_000, 3593)
.saturating_add(RocksDbWeight::get().reads(1_u64))
.saturating_add(RocksDbWeight::get().writes(1_u64))
}
@@ -185,8 +183,8 @@ impl WeightInfo for () {
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `3593`
// Minimum execution time: 36_574_000 picoseconds.
Weight::from_parts(37_682_000, 3593)
// Minimum execution time: 36_187_000 picoseconds.
Weight::from_parts(36_900_000, 3593)
.saturating_add(RocksDbWeight::get().reads(1_u64))
.saturating_add(RocksDbWeight::get().writes(1_u64))
}
@@ -196,8 +194,8 @@ impl WeightInfo for () {
// Proof Size summary in bytes:
// Measured: `174`
// Estimated: `3593`
// Minimum execution time: 13_990_000 picoseconds.
Weight::from_parts(14_568_000, 3593)
// Minimum execution time: 13_498_000 picoseconds.
Weight::from_parts(14_143_000, 3593)
.saturating_add(RocksDbWeight::get().reads(1_u64))
.saturating_add(RocksDbWeight::get().writes(1_u64))
}
@@ -207,8 +205,8 @@ impl WeightInfo for () {
// Proof Size summary in bytes:
// Measured: `174`
// Estimated: `3593`
// Minimum execution time: 19_594_000 picoseconds.
Weight::from_parts(20_148_000, 3593)
// Minimum execution time: 18_756_000 picoseconds.
Weight::from_parts(19_553_000, 3593)
.saturating_add(RocksDbWeight::get().reads(1_u64))
.saturating_add(RocksDbWeight::get().writes(1_u64))
}
@@ -218,8 +216,8 @@ impl WeightInfo for () {
// Proof Size summary in bytes:
// Measured: `103`
// Estimated: `6196`
// Minimum execution time: 47_945_000 picoseconds.
Weight::from_parts(49_363_000, 6196)
// Minimum execution time: 47_826_000 picoseconds.
Weight::from_parts(48_834_000, 6196)
.saturating_add(RocksDbWeight::get().reads(2_u64))
.saturating_add(RocksDbWeight::get().writes(2_u64))
}
@@ -229,8 +227,8 @@ impl WeightInfo for () {
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `3593`
// Minimum execution time: 45_205_000 picoseconds.
Weight::from_parts(45_952_000, 3593)
// Minimum execution time: 44_621_000 picoseconds.
Weight::from_parts(45_151_000, 3593)
.saturating_add(RocksDbWeight::get().reads(1_u64))
.saturating_add(RocksDbWeight::get().writes(1_u64))
}
@@ -240,8 +238,8 @@ impl WeightInfo for () {
// Proof Size summary in bytes:
// Measured: `174`
// Estimated: `3593`
// Minimum execution time: 16_593_000 picoseconds.
Weight::from_parts(17_123_000, 3593)
// Minimum execution time: 16_194_000 picoseconds.
Weight::from_parts(16_945_000, 3593)
.saturating_add(RocksDbWeight::get().reads(1_u64))
.saturating_add(RocksDbWeight::get().writes(1_u64))
}
@@ -252,10 +250,10 @@ impl WeightInfo for () {
// Proof Size summary in bytes:
// Measured: `0 + u * (135 ±0)`
// Estimated: `990 + u * (2603 ±0)`
// Minimum execution time: 16_182_000 picoseconds.
Weight::from_parts(16_412_000, 990)
// Standard Error: 10_148
.saturating_add(Weight::from_parts(13_382_459, 0).saturating_mul(u.into()))
// Minimum execution time: 15_782_000 picoseconds.
Weight::from_parts(16_118_000, 990)
// Standard Error: 10_499
.saturating_add(Weight::from_parts(13_327_660, 0).saturating_mul(u.into()))
.saturating_add(RocksDbWeight::get().reads((1_u64).saturating_mul(u.into())))
.saturating_add(RocksDbWeight::get().writes((1_u64).saturating_mul(u.into())))
.saturating_add(Weight::from_parts(0, 2603).saturating_mul(u.into()))
@@ -264,7 +262,7 @@ impl WeightInfo for () {
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `0`
// Minimum execution time: 6_478_000 picoseconds.
Weight::from_parts(6_830_000, 0)
// Minimum execution time: 6_157_000 picoseconds.
Weight::from_parts(6_507_000, 0)
}
}
+3 -3
View File
@@ -29,8 +29,8 @@ use pallet_session::historical as pallet_session_historical;
use sp_core::{crypto::KeyTypeId, ConstU128};
use sp_io::TestExternalities;
use sp_runtime::{
app_crypto::ecdsa::Public, curve::PiecewiseLinear, generic::UncheckedExtrinsic,
impl_opaque_keys, traits::OpaqueKeys, BuildStorage, Perbill,
app_crypto::ecdsa::Public, curve::PiecewiseLinear, impl_opaque_keys, testing::TestXt,
traits::OpaqueKeys, BuildStorage, Perbill,
};
use sp_staking::{EraIndex, SessionIndex};
use sp_state_machine::BasicExternalities;
@@ -73,7 +73,7 @@ where
RuntimeCall: From<C>,
{
type OverarchingCall = RuntimeCall;
type Extrinsic = UncheckedExtrinsic<u64, RuntimeCall, (), ()>;
type Extrinsic = TestXt<RuntimeCall, ()>;
}
parameter_types! {
+41 -40
View File
@@ -15,16 +15,16 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//! Autogenerated weights for `frame_benchmarking`
//! Autogenerated weights for frame_benchmarking
//!
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0
//! DATE: 2024-03-01, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
//! DATE: 2023-06-16, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! WORST CASE MAP SIZE: `1000000`
//! HOSTNAME: `runner-bn-ce5rx-project-674-concurrent-0`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz`
//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("dev")`, DB CACHE: `1024`
//! HOSTNAME: `runner-e8ezs4ez-project-145-concurrent-0`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz`
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024
// Executed Command:
// ./target/production/substrate-node
// ./target/production/substrate
// benchmark
// pallet
// --chain=dev
@@ -35,11 +35,12 @@
// --no-median-slopes
// --no-min-squares
// --extrinsic=*
// --execution=wasm
// --wasm-execution=compiled
// --heap-pages=4096
// --output=./substrate/frame/benchmarking/src/weights.rs
// --header=./substrate/HEADER-APACHE2
// --template=./substrate/.maintain/frame-weight-template.hbs
// --output=./frame/benchmarking/src/weights.rs
// --header=./HEADER-APACHE2
// --template=./.maintain/frame-weight-template.hbs
#![cfg_attr(rustfmt, rustfmt_skip)]
#![allow(unused_parens)]
@@ -49,7 +50,7 @@
use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}};
use core::marker::PhantomData;
/// Weight functions needed for `frame_benchmarking`.
/// Weight functions needed for frame_benchmarking.
pub trait WeightInfo {
fn addition(i: u32, ) -> Weight;
fn subtraction(i: u32, ) -> Weight;
@@ -59,7 +60,7 @@ pub trait WeightInfo {
fn sr25519_verification(i: u32, ) -> Weight;
}
/// Weights for `frame_benchmarking` using the Substrate node and recommended hardware.
/// Weights for frame_benchmarking using the Substrate node and recommended hardware.
pub struct SubstrateWeight<T>(PhantomData<T>);
impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
/// The range of component `i` is `[0, 1000000]`.
@@ -67,101 +68,101 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `0`
// Minimum execution time: 150_000 picoseconds.
Weight::from_parts(190_440, 0)
// Minimum execution time: 147_000 picoseconds.
Weight::from_parts(185_656, 0)
}
/// The range of component `i` is `[0, 1000000]`.
fn subtraction(_i: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `0`
// Minimum execution time: 151_000 picoseconds.
Weight::from_parts(201_397, 0)
// Minimum execution time: 146_000 picoseconds.
Weight::from_parts(189_816, 0)
}
/// The range of component `i` is `[0, 1000000]`.
fn multiplication(_i: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `0`
// Minimum execution time: 152_000 picoseconds.
Weight::from_parts(187_862, 0)
// Minimum execution time: 148_000 picoseconds.
Weight::from_parts(202_367, 0)
}
/// The range of component `i` is `[0, 1000000]`.
fn division(_i: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `0`
// Minimum execution time: 146_000 picoseconds.
Weight::from_parts(215_191, 0)
// Minimum execution time: 143_000 picoseconds.
Weight::from_parts(189_693, 0)
}
fn hashing() -> Weight {
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `0`
// Minimum execution time: 25_432_823_000 picoseconds.
Weight::from_parts(25_568_846_000, 0)
// Minimum execution time: 24_167_071_000 picoseconds.
Weight::from_parts(24_391_749_000, 0)
}
/// The range of component `i` is `[0, 100]`.
fn sr25519_verification(i: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `0`
// Minimum execution time: 193_000 picoseconds.
Weight::from_parts(3_846_690, 0)
// Standard Error: 6_694
.saturating_add(Weight::from_parts(40_647_582, 0).saturating_mul(i.into()))
// Minimum execution time: 231_000 picoseconds.
Weight::from_parts(2_998_013, 0)
// Standard Error: 6_256
.saturating_add(Weight::from_parts(55_456_705, 0).saturating_mul(i.into()))
}
}
// For backwards compatibility and tests.
// For backwards compatibility and tests
impl WeightInfo for () {
/// The range of component `i` is `[0, 1000000]`.
fn addition(_i: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `0`
// Minimum execution time: 150_000 picoseconds.
Weight::from_parts(190_440, 0)
// Minimum execution time: 147_000 picoseconds.
Weight::from_parts(185_656, 0)
}
/// The range of component `i` is `[0, 1000000]`.
fn subtraction(_i: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `0`
// Minimum execution time: 151_000 picoseconds.
Weight::from_parts(201_397, 0)
// Minimum execution time: 146_000 picoseconds.
Weight::from_parts(189_816, 0)
}
/// The range of component `i` is `[0, 1000000]`.
fn multiplication(_i: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `0`
// Minimum execution time: 152_000 picoseconds.
Weight::from_parts(187_862, 0)
// Minimum execution time: 148_000 picoseconds.
Weight::from_parts(202_367, 0)
}
/// The range of component `i` is `[0, 1000000]`.
fn division(_i: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `0`
// Minimum execution time: 146_000 picoseconds.
Weight::from_parts(215_191, 0)
// Minimum execution time: 143_000 picoseconds.
Weight::from_parts(189_693, 0)
}
fn hashing() -> Weight {
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `0`
// Minimum execution time: 25_432_823_000 picoseconds.
Weight::from_parts(25_568_846_000, 0)
// Minimum execution time: 24_167_071_000 picoseconds.
Weight::from_parts(24_391_749_000, 0)
}
/// The range of component `i` is `[0, 100]`.
fn sr25519_verification(i: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `0`
// Minimum execution time: 193_000 picoseconds.
Weight::from_parts(3_846_690, 0)
// Standard Error: 6_694
.saturating_add(Weight::from_parts(40_647_582, 0).saturating_mul(i.into()))
// Minimum execution time: 231_000 picoseconds.
Weight::from_parts(2_998_013, 0)
// Standard Error: 6_256
.saturating_add(Weight::from_parts(55_456_705, 0).saturating_mul(i.into()))
}
}
+203 -202
View File
@@ -15,16 +15,16 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//! Autogenerated weights for `pallet_bounties`
//! Autogenerated weights for pallet_bounties
//!
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0
//! DATE: 2024-03-01, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
//! DATE: 2023-06-16, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! WORST CASE MAP SIZE: `1000000`
//! HOSTNAME: `runner-bn-ce5rx-project-674-concurrent-0`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz`
//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("dev")`, DB CACHE: `1024`
//! HOSTNAME: `runner-e8ezs4ez-project-145-concurrent-0`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz`
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024
// Executed Command:
// ./target/production/substrate-node
// ./target/production/substrate
// benchmark
// pallet
// --chain=dev
@@ -35,11 +35,12 @@
// --no-median-slopes
// --no-min-squares
// --extrinsic=*
// --execution=wasm
// --wasm-execution=compiled
// --heap-pages=4096
// --output=./substrate/frame/bounties/src/weights.rs
// --header=./substrate/HEADER-APACHE2
// --template=./substrate/.maintain/frame-weight-template.hbs
// --output=./frame/bounties/src/weights.rs
// --header=./HEADER-APACHE2
// --template=./.maintain/frame-weight-template.hbs
#![cfg_attr(rustfmt, rustfmt_skip)]
#![allow(unused_parens)]
@@ -49,7 +50,7 @@
use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}};
use core::marker::PhantomData;
/// Weight functions needed for `pallet_bounties`.
/// Weight functions needed for pallet_bounties.
pub trait WeightInfo {
fn propose_bounty(d: u32, ) -> Weight;
fn approve_bounty() -> Weight;
@@ -64,169 +65,169 @@ pub trait WeightInfo {
fn spend_funds(b: u32, ) -> Weight;
}
/// Weights for `pallet_bounties` using the Substrate node and recommended hardware.
/// Weights for pallet_bounties using the Substrate node and recommended hardware.
pub struct SubstrateWeight<T>(PhantomData<T>);
impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
/// Storage: `Bounties::BountyCount` (r:1 w:1)
/// Proof: `Bounties::BountyCount` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
/// Storage: `System::Account` (r:1 w:1)
/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
/// Storage: `Bounties::BountyDescriptions` (r:0 w:1)
/// Proof: `Bounties::BountyDescriptions` (`max_values`: None, `max_size`: Some(314), added: 2789, mode: `MaxEncodedLen`)
/// Storage: `Bounties::Bounties` (r:0 w:1)
/// Proof: `Bounties::Bounties` (`max_values`: None, `max_size`: Some(177), added: 2652, mode: `MaxEncodedLen`)
/// Storage: Bounties BountyCount (r:1 w:1)
/// Proof: Bounties BountyCount (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
/// Storage: System Account (r:1 w:1)
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
/// Storage: Bounties BountyDescriptions (r:0 w:1)
/// Proof: Bounties BountyDescriptions (max_values: None, max_size: Some(314), added: 2789, mode: MaxEncodedLen)
/// Storage: Bounties Bounties (r:0 w:1)
/// Proof: Bounties Bounties (max_values: None, max_size: Some(177), added: 2652, mode: MaxEncodedLen)
/// The range of component `d` is `[0, 300]`.
fn propose_bounty(d: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `309`
// Measured: `276`
// Estimated: `3593`
// Minimum execution time: 24_286_000 picoseconds.
Weight::from_parts(25_657_314, 3593)
// Standard Error: 215
.saturating_add(Weight::from_parts(1_116, 0).saturating_mul(d.into()))
// Minimum execution time: 29_384_000 picoseconds.
Weight::from_parts(30_820_018, 3593)
// Standard Error: 298
.saturating_add(Weight::from_parts(2_920, 0).saturating_mul(d.into()))
.saturating_add(T::DbWeight::get().reads(2_u64))
.saturating_add(T::DbWeight::get().writes(4_u64))
}
/// Storage: `Bounties::Bounties` (r:1 w:1)
/// Proof: `Bounties::Bounties` (`max_values`: None, `max_size`: Some(177), added: 2652, mode: `MaxEncodedLen`)
/// Storage: `Bounties::BountyApprovals` (r:1 w:1)
/// Proof: `Bounties::BountyApprovals` (`max_values`: Some(1), `max_size`: Some(402), added: 897, mode: `MaxEncodedLen`)
/// Storage: Bounties Bounties (r:1 w:1)
/// Proof: Bounties Bounties (max_values: None, max_size: Some(177), added: 2652, mode: MaxEncodedLen)
/// Storage: Bounties BountyApprovals (r:1 w:1)
/// Proof: Bounties BountyApprovals (max_values: Some(1), max_size: Some(402), added: 897, mode: MaxEncodedLen)
fn approve_bounty() -> Weight {
// Proof Size summary in bytes:
// Measured: `401`
// Measured: `368`
// Estimated: `3642`
// Minimum execution time: 12_526_000 picoseconds.
Weight::from_parts(13_373_000, 3642)
// Minimum execution time: 10_873_000 picoseconds.
Weight::from_parts(11_421_000, 3642)
.saturating_add(T::DbWeight::get().reads(2_u64))
.saturating_add(T::DbWeight::get().writes(2_u64))
}
/// Storage: `Bounties::Bounties` (r:1 w:1)
/// Proof: `Bounties::Bounties` (`max_values`: None, `max_size`: Some(177), added: 2652, mode: `MaxEncodedLen`)
/// Storage: Bounties Bounties (r:1 w:1)
/// Proof: Bounties Bounties (max_values: None, max_size: Some(177), added: 2652, mode: MaxEncodedLen)
fn propose_curator() -> Weight {
// Proof Size summary in bytes:
// Measured: `421`
// Measured: `388`
// Estimated: `3642`
// Minimum execution time: 11_807_000 picoseconds.
Weight::from_parts(12_340_000, 3642)
// Minimum execution time: 9_181_000 picoseconds.
Weight::from_parts(9_726_000, 3642)
.saturating_add(T::DbWeight::get().reads(1_u64))
.saturating_add(T::DbWeight::get().writes(1_u64))
}
/// Storage: `Bounties::Bounties` (r:1 w:1)
/// Proof: `Bounties::Bounties` (`max_values`: None, `max_size`: Some(177), added: 2652, mode: `MaxEncodedLen`)
/// Storage: `System::Account` (r:1 w:1)
/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
/// Storage: Bounties Bounties (r:1 w:1)
/// Proof: Bounties Bounties (max_values: None, max_size: Some(177), added: 2652, mode: MaxEncodedLen)
/// Storage: System Account (r:1 w:1)
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
fn unassign_curator() -> Weight {
// Proof Size summary in bytes:
// Measured: `597`
// Measured: `564`
// Estimated: `3642`
// Minimum execution time: 27_183_000 picoseconds.
Weight::from_parts(28_250_000, 3642)
// Minimum execution time: 30_257_000 picoseconds.
Weight::from_parts(30_751_000, 3642)
.saturating_add(T::DbWeight::get().reads(2_u64))
.saturating_add(T::DbWeight::get().writes(2_u64))
}
/// Storage: `Bounties::Bounties` (r:1 w:1)
/// Proof: `Bounties::Bounties` (`max_values`: None, `max_size`: Some(177), added: 2652, mode: `MaxEncodedLen`)
/// Storage: `System::Account` (r:1 w:1)
/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
/// Storage: Bounties Bounties (r:1 w:1)
/// Proof: Bounties Bounties (max_values: None, max_size: Some(177), added: 2652, mode: MaxEncodedLen)
/// Storage: System Account (r:1 w:1)
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
fn accept_curator() -> Weight {
// Proof Size summary in bytes:
// Measured: `593`
// Measured: `560`
// Estimated: `3642`
// Minimum execution time: 26_775_000 picoseconds.
Weight::from_parts(27_667_000, 3642)
// Minimum execution time: 27_850_000 picoseconds.
Weight::from_parts(28_821_000, 3642)
.saturating_add(T::DbWeight::get().reads(2_u64))
.saturating_add(T::DbWeight::get().writes(2_u64))
}
/// Storage: `Bounties::Bounties` (r:1 w:1)
/// Proof: `Bounties::Bounties` (`max_values`: None, `max_size`: Some(177), added: 2652, mode: `MaxEncodedLen`)
/// Storage: `ChildBounties::ParentChildBounties` (r:1 w:0)
/// Proof: `ChildBounties::ParentChildBounties` (`max_values`: None, `max_size`: Some(16), added: 2491, mode: `MaxEncodedLen`)
/// Storage: Bounties Bounties (r:1 w:1)
/// Proof: Bounties Bounties (max_values: None, max_size: Some(177), added: 2652, mode: MaxEncodedLen)
/// Storage: ChildBounties ParentChildBounties (r:1 w:0)
/// Proof: ChildBounties ParentChildBounties (max_values: None, max_size: Some(16), added: 2491, mode: MaxEncodedLen)
fn award_bounty() -> Weight {
// Proof Size summary in bytes:
// Measured: `605`
// Measured: `572`
// Estimated: `3642`
// Minimum execution time: 16_089_000 picoseconds.
Weight::from_parts(16_909_000, 3642)
// Minimum execution time: 19_164_000 picoseconds.
Weight::from_parts(20_136_000, 3642)
.saturating_add(T::DbWeight::get().reads(2_u64))
.saturating_add(T::DbWeight::get().writes(1_u64))
}
/// Storage: `Bounties::Bounties` (r:1 w:1)
/// Proof: `Bounties::Bounties` (`max_values`: None, `max_size`: Some(177), added: 2652, mode: `MaxEncodedLen`)
/// Storage: `System::Account` (r:3 w:3)
/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
/// Storage: `ChildBounties::ChildrenCuratorFees` (r:1 w:1)
/// Proof: `ChildBounties::ChildrenCuratorFees` (`max_values`: None, `max_size`: Some(28), added: 2503, mode: `MaxEncodedLen`)
/// Storage: `Bounties::BountyDescriptions` (r:0 w:1)
/// Proof: `Bounties::BountyDescriptions` (`max_values`: None, `max_size`: Some(314), added: 2789, mode: `MaxEncodedLen`)
/// Storage: Bounties Bounties (r:1 w:1)
/// Proof: Bounties Bounties (max_values: None, max_size: Some(177), added: 2652, mode: MaxEncodedLen)
/// Storage: System Account (r:3 w:3)
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
/// Storage: ChildBounties ChildrenCuratorFees (r:1 w:1)
/// Proof: ChildBounties ChildrenCuratorFees (max_values: None, max_size: Some(28), added: 2503, mode: MaxEncodedLen)
/// Storage: Bounties BountyDescriptions (r:0 w:1)
/// Proof: Bounties BountyDescriptions (max_values: None, max_size: Some(314), added: 2789, mode: MaxEncodedLen)
fn claim_bounty() -> Weight {
// Proof Size summary in bytes:
// Measured: `969`
// Measured: `936`
// Estimated: `8799`
// Minimum execution time: 104_973_000 picoseconds.
Weight::from_parts(107_696_000, 8799)
// Minimum execution time: 120_235_000 picoseconds.
Weight::from_parts(121_673_000, 8799)
.saturating_add(T::DbWeight::get().reads(5_u64))
.saturating_add(T::DbWeight::get().writes(6_u64))
}
/// Storage: `Bounties::Bounties` (r:1 w:1)
/// Proof: `Bounties::Bounties` (`max_values`: None, `max_size`: Some(177), added: 2652, mode: `MaxEncodedLen`)
/// Storage: `ChildBounties::ParentChildBounties` (r:1 w:0)
/// Proof: `ChildBounties::ParentChildBounties` (`max_values`: None, `max_size`: Some(16), added: 2491, mode: `MaxEncodedLen`)
/// Storage: `System::Account` (r:1 w:1)
/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
/// Storage: `Bounties::BountyDescriptions` (r:0 w:1)
/// Proof: `Bounties::BountyDescriptions` (`max_values`: None, `max_size`: Some(314), added: 2789, mode: `MaxEncodedLen`)
/// Storage: Bounties Bounties (r:1 w:1)
/// Proof: Bounties Bounties (max_values: None, max_size: Some(177), added: 2652, mode: MaxEncodedLen)
/// Storage: ChildBounties ParentChildBounties (r:1 w:0)
/// Proof: ChildBounties ParentChildBounties (max_values: None, max_size: Some(16), added: 2491, mode: MaxEncodedLen)
/// Storage: System Account (r:1 w:1)
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
/// Storage: Bounties BountyDescriptions (r:0 w:1)
/// Proof: Bounties BountyDescriptions (max_values: None, max_size: Some(314), added: 2789, mode: MaxEncodedLen)
fn close_bounty_proposed() -> Weight {
// Proof Size summary in bytes:
// Measured: `649`
// Measured: `616`
// Estimated: `3642`
// Minimum execution time: 30_702_000 picoseconds.
Weight::from_parts(32_615_000, 3642)
// Minimum execution time: 35_713_000 picoseconds.
Weight::from_parts(37_174_000, 3642)
.saturating_add(T::DbWeight::get().reads(3_u64))
.saturating_add(T::DbWeight::get().writes(3_u64))
}
/// Storage: `Bounties::Bounties` (r:1 w:1)
/// Proof: `Bounties::Bounties` (`max_values`: None, `max_size`: Some(177), added: 2652, mode: `MaxEncodedLen`)
/// Storage: `ChildBounties::ParentChildBounties` (r:1 w:0)
/// Proof: `ChildBounties::ParentChildBounties` (`max_values`: None, `max_size`: Some(16), added: 2491, mode: `MaxEncodedLen`)
/// Storage: `System::Account` (r:2 w:2)
/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
/// Storage: `Bounties::BountyDescriptions` (r:0 w:1)
/// Proof: `Bounties::BountyDescriptions` (`max_values`: None, `max_size`: Some(314), added: 2789, mode: `MaxEncodedLen`)
/// Storage: Bounties Bounties (r:1 w:1)
/// Proof: Bounties Bounties (max_values: None, max_size: Some(177), added: 2652, mode: MaxEncodedLen)
/// Storage: ChildBounties ParentChildBounties (r:1 w:0)
/// Proof: ChildBounties ParentChildBounties (max_values: None, max_size: Some(16), added: 2491, mode: MaxEncodedLen)
/// Storage: System Account (r:2 w:2)
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
/// Storage: Bounties BountyDescriptions (r:0 w:1)
/// Proof: Bounties BountyDescriptions (max_values: None, max_size: Some(314), added: 2789, mode: MaxEncodedLen)
fn close_bounty_active() -> Weight {
// Proof Size summary in bytes:
// Measured: `885`
// Measured: `852`
// Estimated: `6196`
// Minimum execution time: 72_055_000 picoseconds.
Weight::from_parts(73_900_000, 6196)
// Minimum execution time: 81_037_000 picoseconds.
Weight::from_parts(83_294_000, 6196)
.saturating_add(T::DbWeight::get().reads(4_u64))
.saturating_add(T::DbWeight::get().writes(4_u64))
}
/// Storage: `Bounties::Bounties` (r:1 w:1)
/// Proof: `Bounties::Bounties` (`max_values`: None, `max_size`: Some(177), added: 2652, mode: `MaxEncodedLen`)
/// Storage: Bounties Bounties (r:1 w:1)
/// Proof: Bounties Bounties (max_values: None, max_size: Some(177), added: 2652, mode: MaxEncodedLen)
fn extend_bounty_expiry() -> Weight {
// Proof Size summary in bytes:
// Measured: `457`
// Measured: `424`
// Estimated: `3642`
// Minimum execution time: 12_057_000 picoseconds.
Weight::from_parts(12_744_000, 3642)
// Minimum execution time: 15_348_000 picoseconds.
Weight::from_parts(15_776_000, 3642)
.saturating_add(T::DbWeight::get().reads(1_u64))
.saturating_add(T::DbWeight::get().writes(1_u64))
}
/// Storage: `Bounties::BountyApprovals` (r:1 w:1)
/// Proof: `Bounties::BountyApprovals` (`max_values`: Some(1), `max_size`: Some(402), added: 897, mode: `MaxEncodedLen`)
/// Storage: `Bounties::Bounties` (r:100 w:100)
/// Proof: `Bounties::Bounties` (`max_values`: None, `max_size`: Some(177), added: 2652, mode: `MaxEncodedLen`)
/// Storage: `System::Account` (r:200 w:200)
/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
/// Storage: Bounties BountyApprovals (r:1 w:1)
/// Proof: Bounties BountyApprovals (max_values: Some(1), max_size: Some(402), added: 897, mode: MaxEncodedLen)
/// Storage: Bounties Bounties (r:100 w:100)
/// Proof: Bounties Bounties (max_values: None, max_size: Some(177), added: 2652, mode: MaxEncodedLen)
/// Storage: System Account (r:200 w:200)
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
/// The range of component `b` is `[0, 100]`.
fn spend_funds(b: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `37 + b * (297 ±0)`
// Measured: `4 + b * (297 ±0)`
// Estimated: `1887 + b * (5206 ±0)`
// Minimum execution time: 3_489_000 picoseconds.
Weight::from_parts(8_384_129, 1887)
// Standard Error: 18_066
.saturating_add(Weight::from_parts(31_612_331, 0).saturating_mul(b.into()))
// Minimum execution time: 5_082_000 picoseconds.
Weight::from_parts(5_126_000, 1887)
// Standard Error: 21_949
.saturating_add(Weight::from_parts(42_635_308, 0).saturating_mul(b.into()))
.saturating_add(T::DbWeight::get().reads(1_u64))
.saturating_add(T::DbWeight::get().reads((3_u64).saturating_mul(b.into())))
.saturating_add(T::DbWeight::get().writes(1_u64))
@@ -235,168 +236,168 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
}
}
// For backwards compatibility and tests.
// For backwards compatibility and tests
impl WeightInfo for () {
/// Storage: `Bounties::BountyCount` (r:1 w:1)
/// Proof: `Bounties::BountyCount` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
/// Storage: `System::Account` (r:1 w:1)
/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
/// Storage: `Bounties::BountyDescriptions` (r:0 w:1)
/// Proof: `Bounties::BountyDescriptions` (`max_values`: None, `max_size`: Some(314), added: 2789, mode: `MaxEncodedLen`)
/// Storage: `Bounties::Bounties` (r:0 w:1)
/// Proof: `Bounties::Bounties` (`max_values`: None, `max_size`: Some(177), added: 2652, mode: `MaxEncodedLen`)
/// Storage: Bounties BountyCount (r:1 w:1)
/// Proof: Bounties BountyCount (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
/// Storage: System Account (r:1 w:1)
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
/// Storage: Bounties BountyDescriptions (r:0 w:1)
/// Proof: Bounties BountyDescriptions (max_values: None, max_size: Some(314), added: 2789, mode: MaxEncodedLen)
/// Storage: Bounties Bounties (r:0 w:1)
/// Proof: Bounties Bounties (max_values: None, max_size: Some(177), added: 2652, mode: MaxEncodedLen)
/// The range of component `d` is `[0, 300]`.
fn propose_bounty(d: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `309`
// Measured: `276`
// Estimated: `3593`
// Minimum execution time: 24_286_000 picoseconds.
Weight::from_parts(25_657_314, 3593)
// Standard Error: 215
.saturating_add(Weight::from_parts(1_116, 0).saturating_mul(d.into()))
// Minimum execution time: 29_384_000 picoseconds.
Weight::from_parts(30_820_018, 3593)
// Standard Error: 298
.saturating_add(Weight::from_parts(2_920, 0).saturating_mul(d.into()))
.saturating_add(RocksDbWeight::get().reads(2_u64))
.saturating_add(RocksDbWeight::get().writes(4_u64))
}
/// Storage: `Bounties::Bounties` (r:1 w:1)
/// Proof: `Bounties::Bounties` (`max_values`: None, `max_size`: Some(177), added: 2652, mode: `MaxEncodedLen`)
/// Storage: `Bounties::BountyApprovals` (r:1 w:1)
/// Proof: `Bounties::BountyApprovals` (`max_values`: Some(1), `max_size`: Some(402), added: 897, mode: `MaxEncodedLen`)
/// Storage: Bounties Bounties (r:1 w:1)
/// Proof: Bounties Bounties (max_values: None, max_size: Some(177), added: 2652, mode: MaxEncodedLen)
/// Storage: Bounties BountyApprovals (r:1 w:1)
/// Proof: Bounties BountyApprovals (max_values: Some(1), max_size: Some(402), added: 897, mode: MaxEncodedLen)
fn approve_bounty() -> Weight {
// Proof Size summary in bytes:
// Measured: `401`
// Measured: `368`
// Estimated: `3642`
// Minimum execution time: 12_526_000 picoseconds.
Weight::from_parts(13_373_000, 3642)
// Minimum execution time: 10_873_000 picoseconds.
Weight::from_parts(11_421_000, 3642)
.saturating_add(RocksDbWeight::get().reads(2_u64))
.saturating_add(RocksDbWeight::get().writes(2_u64))
}
/// Storage: `Bounties::Bounties` (r:1 w:1)
/// Proof: `Bounties::Bounties` (`max_values`: None, `max_size`: Some(177), added: 2652, mode: `MaxEncodedLen`)
/// Storage: Bounties Bounties (r:1 w:1)
/// Proof: Bounties Bounties (max_values: None, max_size: Some(177), added: 2652, mode: MaxEncodedLen)
fn propose_curator() -> Weight {
// Proof Size summary in bytes:
// Measured: `421`
// Measured: `388`
// Estimated: `3642`
// Minimum execution time: 11_807_000 picoseconds.
Weight::from_parts(12_340_000, 3642)
// Minimum execution time: 9_181_000 picoseconds.
Weight::from_parts(9_726_000, 3642)
.saturating_add(RocksDbWeight::get().reads(1_u64))
.saturating_add(RocksDbWeight::get().writes(1_u64))
}
/// Storage: `Bounties::Bounties` (r:1 w:1)
/// Proof: `Bounties::Bounties` (`max_values`: None, `max_size`: Some(177), added: 2652, mode: `MaxEncodedLen`)
/// Storage: `System::Account` (r:1 w:1)
/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
/// Storage: Bounties Bounties (r:1 w:1)
/// Proof: Bounties Bounties (max_values: None, max_size: Some(177), added: 2652, mode: MaxEncodedLen)
/// Storage: System Account (r:1 w:1)
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
fn unassign_curator() -> Weight {
// Proof Size summary in bytes:
// Measured: `597`
// Measured: `564`
// Estimated: `3642`
// Minimum execution time: 27_183_000 picoseconds.
Weight::from_parts(28_250_000, 3642)
// Minimum execution time: 30_257_000 picoseconds.
Weight::from_parts(30_751_000, 3642)
.saturating_add(RocksDbWeight::get().reads(2_u64))
.saturating_add(RocksDbWeight::get().writes(2_u64))
}
/// Storage: `Bounties::Bounties` (r:1 w:1)
/// Proof: `Bounties::Bounties` (`max_values`: None, `max_size`: Some(177), added: 2652, mode: `MaxEncodedLen`)
/// Storage: `System::Account` (r:1 w:1)
/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
/// Storage: Bounties Bounties (r:1 w:1)
/// Proof: Bounties Bounties (max_values: None, max_size: Some(177), added: 2652, mode: MaxEncodedLen)
/// Storage: System Account (r:1 w:1)
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
fn accept_curator() -> Weight {
// Proof Size summary in bytes:
// Measured: `593`
// Measured: `560`
// Estimated: `3642`
// Minimum execution time: 26_775_000 picoseconds.
Weight::from_parts(27_667_000, 3642)
// Minimum execution time: 27_850_000 picoseconds.
Weight::from_parts(28_821_000, 3642)
.saturating_add(RocksDbWeight::get().reads(2_u64))
.saturating_add(RocksDbWeight::get().writes(2_u64))
}
/// Storage: `Bounties::Bounties` (r:1 w:1)
/// Proof: `Bounties::Bounties` (`max_values`: None, `max_size`: Some(177), added: 2652, mode: `MaxEncodedLen`)
/// Storage: `ChildBounties::ParentChildBounties` (r:1 w:0)
/// Proof: `ChildBounties::ParentChildBounties` (`max_values`: None, `max_size`: Some(16), added: 2491, mode: `MaxEncodedLen`)
/// Storage: Bounties Bounties (r:1 w:1)
/// Proof: Bounties Bounties (max_values: None, max_size: Some(177), added: 2652, mode: MaxEncodedLen)
/// Storage: ChildBounties ParentChildBounties (r:1 w:0)
/// Proof: ChildBounties ParentChildBounties (max_values: None, max_size: Some(16), added: 2491, mode: MaxEncodedLen)
fn award_bounty() -> Weight {
// Proof Size summary in bytes:
// Measured: `605`
// Measured: `572`
// Estimated: `3642`
// Minimum execution time: 16_089_000 picoseconds.
Weight::from_parts(16_909_000, 3642)
// Minimum execution time: 19_164_000 picoseconds.
Weight::from_parts(20_136_000, 3642)
.saturating_add(RocksDbWeight::get().reads(2_u64))
.saturating_add(RocksDbWeight::get().writes(1_u64))
}
/// Storage: `Bounties::Bounties` (r:1 w:1)
/// Proof: `Bounties::Bounties` (`max_values`: None, `max_size`: Some(177), added: 2652, mode: `MaxEncodedLen`)
/// Storage: `System::Account` (r:3 w:3)
/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
/// Storage: `ChildBounties::ChildrenCuratorFees` (r:1 w:1)
/// Proof: `ChildBounties::ChildrenCuratorFees` (`max_values`: None, `max_size`: Some(28), added: 2503, mode: `MaxEncodedLen`)
/// Storage: `Bounties::BountyDescriptions` (r:0 w:1)
/// Proof: `Bounties::BountyDescriptions` (`max_values`: None, `max_size`: Some(314), added: 2789, mode: `MaxEncodedLen`)
/// Storage: Bounties Bounties (r:1 w:1)
/// Proof: Bounties Bounties (max_values: None, max_size: Some(177), added: 2652, mode: MaxEncodedLen)
/// Storage: System Account (r:3 w:3)
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
/// Storage: ChildBounties ChildrenCuratorFees (r:1 w:1)
/// Proof: ChildBounties ChildrenCuratorFees (max_values: None, max_size: Some(28), added: 2503, mode: MaxEncodedLen)
/// Storage: Bounties BountyDescriptions (r:0 w:1)
/// Proof: Bounties BountyDescriptions (max_values: None, max_size: Some(314), added: 2789, mode: MaxEncodedLen)
fn claim_bounty() -> Weight {
// Proof Size summary in bytes:
// Measured: `969`
// Measured: `936`
// Estimated: `8799`
// Minimum execution time: 104_973_000 picoseconds.
Weight::from_parts(107_696_000, 8799)
// Minimum execution time: 120_235_000 picoseconds.
Weight::from_parts(121_673_000, 8799)
.saturating_add(RocksDbWeight::get().reads(5_u64))
.saturating_add(RocksDbWeight::get().writes(6_u64))
}
/// Storage: `Bounties::Bounties` (r:1 w:1)
/// Proof: `Bounties::Bounties` (`max_values`: None, `max_size`: Some(177), added: 2652, mode: `MaxEncodedLen`)
/// Storage: `ChildBounties::ParentChildBounties` (r:1 w:0)
/// Proof: `ChildBounties::ParentChildBounties` (`max_values`: None, `max_size`: Some(16), added: 2491, mode: `MaxEncodedLen`)
/// Storage: `System::Account` (r:1 w:1)
/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
/// Storage: `Bounties::BountyDescriptions` (r:0 w:1)
/// Proof: `Bounties::BountyDescriptions` (`max_values`: None, `max_size`: Some(314), added: 2789, mode: `MaxEncodedLen`)
/// Storage: Bounties Bounties (r:1 w:1)
/// Proof: Bounties Bounties (max_values: None, max_size: Some(177), added: 2652, mode: MaxEncodedLen)
/// Storage: ChildBounties ParentChildBounties (r:1 w:0)
/// Proof: ChildBounties ParentChildBounties (max_values: None, max_size: Some(16), added: 2491, mode: MaxEncodedLen)
/// Storage: System Account (r:1 w:1)
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
/// Storage: Bounties BountyDescriptions (r:0 w:1)
/// Proof: Bounties BountyDescriptions (max_values: None, max_size: Some(314), added: 2789, mode: MaxEncodedLen)
fn close_bounty_proposed() -> Weight {
// Proof Size summary in bytes:
// Measured: `649`
// Measured: `616`
// Estimated: `3642`
// Minimum execution time: 30_702_000 picoseconds.
Weight::from_parts(32_615_000, 3642)
// Minimum execution time: 35_713_000 picoseconds.
Weight::from_parts(37_174_000, 3642)
.saturating_add(RocksDbWeight::get().reads(3_u64))
.saturating_add(RocksDbWeight::get().writes(3_u64))
}
/// Storage: `Bounties::Bounties` (r:1 w:1)
/// Proof: `Bounties::Bounties` (`max_values`: None, `max_size`: Some(177), added: 2652, mode: `MaxEncodedLen`)
/// Storage: `ChildBounties::ParentChildBounties` (r:1 w:0)
/// Proof: `ChildBounties::ParentChildBounties` (`max_values`: None, `max_size`: Some(16), added: 2491, mode: `MaxEncodedLen`)
/// Storage: `System::Account` (r:2 w:2)
/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
/// Storage: `Bounties::BountyDescriptions` (r:0 w:1)
/// Proof: `Bounties::BountyDescriptions` (`max_values`: None, `max_size`: Some(314), added: 2789, mode: `MaxEncodedLen`)
/// Storage: Bounties Bounties (r:1 w:1)
/// Proof: Bounties Bounties (max_values: None, max_size: Some(177), added: 2652, mode: MaxEncodedLen)
/// Storage: ChildBounties ParentChildBounties (r:1 w:0)
/// Proof: ChildBounties ParentChildBounties (max_values: None, max_size: Some(16), added: 2491, mode: MaxEncodedLen)
/// Storage: System Account (r:2 w:2)
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
/// Storage: Bounties BountyDescriptions (r:0 w:1)
/// Proof: Bounties BountyDescriptions (max_values: None, max_size: Some(314), added: 2789, mode: MaxEncodedLen)
fn close_bounty_active() -> Weight {
// Proof Size summary in bytes:
// Measured: `885`
// Measured: `852`
// Estimated: `6196`
// Minimum execution time: 72_055_000 picoseconds.
Weight::from_parts(73_900_000, 6196)
// Minimum execution time: 81_037_000 picoseconds.
Weight::from_parts(83_294_000, 6196)
.saturating_add(RocksDbWeight::get().reads(4_u64))
.saturating_add(RocksDbWeight::get().writes(4_u64))
}
/// Storage: `Bounties::Bounties` (r:1 w:1)
/// Proof: `Bounties::Bounties` (`max_values`: None, `max_size`: Some(177), added: 2652, mode: `MaxEncodedLen`)
/// Storage: Bounties Bounties (r:1 w:1)
/// Proof: Bounties Bounties (max_values: None, max_size: Some(177), added: 2652, mode: MaxEncodedLen)
fn extend_bounty_expiry() -> Weight {
// Proof Size summary in bytes:
// Measured: `457`
// Measured: `424`
// Estimated: `3642`
// Minimum execution time: 12_057_000 picoseconds.
Weight::from_parts(12_744_000, 3642)
// Minimum execution time: 15_348_000 picoseconds.
Weight::from_parts(15_776_000, 3642)
.saturating_add(RocksDbWeight::get().reads(1_u64))
.saturating_add(RocksDbWeight::get().writes(1_u64))
}
/// Storage: `Bounties::BountyApprovals` (r:1 w:1)
/// Proof: `Bounties::BountyApprovals` (`max_values`: Some(1), `max_size`: Some(402), added: 897, mode: `MaxEncodedLen`)
/// Storage: `Bounties::Bounties` (r:100 w:100)
/// Proof: `Bounties::Bounties` (`max_values`: None, `max_size`: Some(177), added: 2652, mode: `MaxEncodedLen`)
/// Storage: `System::Account` (r:200 w:200)
/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
/// Storage: Bounties BountyApprovals (r:1 w:1)
/// Proof: Bounties BountyApprovals (max_values: Some(1), max_size: Some(402), added: 897, mode: MaxEncodedLen)
/// Storage: Bounties Bounties (r:100 w:100)
/// Proof: Bounties Bounties (max_values: None, max_size: Some(177), added: 2652, mode: MaxEncodedLen)
/// Storage: System Account (r:200 w:200)
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
/// The range of component `b` is `[0, 100]`.
fn spend_funds(b: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `37 + b * (297 ±0)`
// Measured: `4 + b * (297 ±0)`
// Estimated: `1887 + b * (5206 ±0)`
// Minimum execution time: 3_489_000 picoseconds.
Weight::from_parts(8_384_129, 1887)
// Standard Error: 18_066
.saturating_add(Weight::from_parts(31_612_331, 0).saturating_mul(b.into()))
// Minimum execution time: 5_082_000 picoseconds.
Weight::from_parts(5_126_000, 1887)
// Standard Error: 21_949
.saturating_add(Weight::from_parts(42_635_308, 0).saturating_mul(b.into()))
.saturating_add(RocksDbWeight::get().reads(1_u64))
.saturating_add(RocksDbWeight::get().reads((3_u64).saturating_mul(b.into())))
.saturating_add(RocksDbWeight::get().writes(1_u64))
+175 -182
View File
@@ -17,28 +17,26 @@
//! Autogenerated weights for `pallet_broker`
//!
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0
//! DATE: 2024-03-01, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
//! DATE: 2023-09-04, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! WORST CASE MAP SIZE: `1000000`
//! HOSTNAME: `runner-bn-ce5rx-project-674-concurrent-0`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz`
//! HOSTNAME: `runner-pzhd7p6z-project-674-concurrent-0`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz`
//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("dev")`, DB CACHE: `1024`
// Executed Command:
// ./target/production/substrate-node
// target/production/substrate-node
// benchmark
// pallet
// --chain=dev
// --steps=50
// --repeat=20
// --pallet=pallet_broker
// --no-storage-info
// --no-median-slopes
// --no-min-squares
// --extrinsic=*
// --wasm-execution=compiled
// --heap-pages=4096
// --output=./substrate/frame/broker/src/weights.rs
// --json-file=/builds/parity/mirrors/polkadot-sdk/.git/.artifacts/bench.json
// --pallet=pallet_broker
// --chain=dev
// --header=./substrate/HEADER-APACHE2
// --output=./substrate/frame/broker/src/weights.rs
// --template=./substrate/.maintain/frame-weight-template.hbs
#![cfg_attr(rustfmt, rustfmt_skip)]
@@ -89,8 +87,8 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `0`
// Minimum execution time: 2_701_000 picoseconds.
Weight::from_parts(2_902_000, 0)
// Minimum execution time: 3_040_000 picoseconds.
Weight::from_parts(3_344_000, 0)
.saturating_add(T::DbWeight::get().writes(1_u64))
}
/// Storage: `Broker::Reservations` (r:1 w:1)
@@ -99,8 +97,8 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
// Proof Size summary in bytes:
// Measured: `5016`
// Estimated: `7496`
// Minimum execution time: 18_056_000 picoseconds.
Weight::from_parts(19_093_000, 7496)
// Minimum execution time: 21_259_000 picoseconds.
Weight::from_parts(22_110_000, 7496)
.saturating_add(T::DbWeight::get().reads(1_u64))
.saturating_add(T::DbWeight::get().writes(1_u64))
}
@@ -110,8 +108,8 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
// Proof Size summary in bytes:
// Measured: `6218`
// Estimated: `7496`
// Minimum execution time: 17_233_000 picoseconds.
Weight::from_parts(17_788_000, 7496)
// Minimum execution time: 20_330_000 picoseconds.
Weight::from_parts(20_826_000, 7496)
.saturating_add(T::DbWeight::get().reads(1_u64))
.saturating_add(T::DbWeight::get().writes(1_u64))
}
@@ -121,8 +119,8 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
// Proof Size summary in bytes:
// Measured: `239`
// Estimated: `1526`
// Minimum execution time: 9_740_000 picoseconds.
Weight::from_parts(10_504_000, 1526)
// Minimum execution time: 13_411_000 picoseconds.
Weight::from_parts(13_960_000, 1526)
.saturating_add(T::DbWeight::get().reads(1_u64))
.saturating_add(T::DbWeight::get().writes(1_u64))
}
@@ -141,12 +139,14 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
/// Storage: `Broker::Workplan` (r:0 w:10)
/// Proof: `Broker::Workplan` (`max_values`: None, `max_size`: Some(1216), added: 3691, mode: `MaxEncodedLen`)
/// The range of component `n` is `[0, 1000]`.
fn start_sales(_n: u32, ) -> Weight {
fn start_sales(n: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `6330`
// Estimated: `8499`
// Minimum execution time: 49_728_000 picoseconds.
Weight::from_parts(52_765_861, 8499)
// Minimum execution time: 57_770_000 picoseconds.
Weight::from_parts(61_047_512, 8499)
// Standard Error: 165
.saturating_add(Weight::from_parts(3, 0).saturating_mul(n.into()))
.saturating_add(T::DbWeight::get().reads(6_u64))
.saturating_add(T::DbWeight::get().writes(16_u64))
}
@@ -162,10 +162,10 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
/// Proof: `Broker::Regions` (`max_values`: None, `max_size`: Some(85), added: 2560, mode: `MaxEncodedLen`)
fn purchase() -> Weight {
// Proof Size summary in bytes:
// Measured: `635`
// Estimated: `2120`
// Minimum execution time: 41_986_000 picoseconds.
Weight::from_parts(43_465_000, 2120)
// Measured: `568`
// Estimated: `2053`
// Minimum execution time: 51_196_000 picoseconds.
Weight::from_parts(52_382_000, 2053)
.saturating_add(T::DbWeight::get().reads(4_u64))
.saturating_add(T::DbWeight::get().writes(2_u64))
}
@@ -185,10 +185,10 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
/// Proof: `Broker::Workplan` (`max_values`: None, `max_size`: Some(1216), added: 3691, mode: `MaxEncodedLen`)
fn renew() -> Weight {
// Proof Size summary in bytes:
// Measured: `753`
// Measured: `686`
// Estimated: `4698`
// Minimum execution time: 61_779_000 picoseconds.
Weight::from_parts(62_563_000, 4698)
// Minimum execution time: 71_636_000 picoseconds.
Weight::from_parts(73_679_000, 4698)
.saturating_add(T::DbWeight::get().reads(6_u64))
.saturating_add(T::DbWeight::get().writes(4_u64))
}
@@ -198,8 +198,8 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
// Proof Size summary in bytes:
// Measured: `495`
// Estimated: `3550`
// Minimum execution time: 16_962_000 picoseconds.
Weight::from_parts(17_733_000, 3550)
// Minimum execution time: 19_182_000 picoseconds.
Weight::from_parts(19_775_000, 3550)
.saturating_add(T::DbWeight::get().reads(1_u64))
.saturating_add(T::DbWeight::get().writes(1_u64))
}
@@ -209,21 +209,21 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
// Proof Size summary in bytes:
// Measured: `495`
// Estimated: `3550`
// Minimum execution time: 18_380_000 picoseconds.
Weight::from_parts(19_105_000, 3550)
// Minimum execution time: 20_688_000 picoseconds.
Weight::from_parts(21_557_000, 3550)
.saturating_add(T::DbWeight::get().reads(1_u64))
.saturating_add(T::DbWeight::get().writes(2_u64))
}
/// Storage: `Broker::Regions` (r:1 w:3)
/// Storage: `Broker::Regions` (r:1 w:2)
/// Proof: `Broker::Regions` (`max_values`: None, `max_size`: Some(85), added: 2560, mode: `MaxEncodedLen`)
fn interlace() -> Weight {
// Proof Size summary in bytes:
// Measured: `495`
// Estimated: `3550`
// Minimum execution time: 20_115_000 picoseconds.
Weight::from_parts(20_741_000, 3550)
// Minimum execution time: 21_190_000 picoseconds.
Weight::from_parts(22_215_000, 3550)
.saturating_add(T::DbWeight::get().reads(1_u64))
.saturating_add(T::DbWeight::get().writes(3_u64))
.saturating_add(T::DbWeight::get().writes(2_u64))
}
/// Storage: `Broker::Configuration` (r:1 w:0)
/// Proof: `Broker::Configuration` (`max_values`: Some(1), `max_size`: Some(31), added: 526, mode: `MaxEncodedLen`)
@@ -237,8 +237,8 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
// Proof Size summary in bytes:
// Measured: `740`
// Estimated: `4681`
// Minimum execution time: 31_339_000 picoseconds.
Weight::from_parts(32_639_000, 4681)
// Minimum execution time: 34_591_000 picoseconds.
Weight::from_parts(36_227_000, 4681)
.saturating_add(T::DbWeight::get().reads(4_u64))
.saturating_add(T::DbWeight::get().writes(2_u64))
}
@@ -256,8 +256,8 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
// Proof Size summary in bytes:
// Measured: `775`
// Estimated: `5996`
// Minimum execution time: 37_542_000 picoseconds.
Weight::from_parts(38_521_000, 5996)
// Minimum execution time: 40_346_000 picoseconds.
Weight::from_parts(41_951_000, 5996)
.saturating_add(T::DbWeight::get().reads(5_u64))
.saturating_add(T::DbWeight::get().writes(5_u64))
}
@@ -272,10 +272,10 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
// Proof Size summary in bytes:
// Measured: `859`
// Estimated: `6196 + m * (2520 ±0)`
// Minimum execution time: 66_176_000 picoseconds.
Weight::from_parts(68_356_745, 6196)
// Standard Error: 68_008
.saturating_add(Weight::from_parts(1_558_419, 0).saturating_mul(m.into()))
// Minimum execution time: 75_734_000 picoseconds.
Weight::from_parts(78_168_395, 6196)
// Standard Error: 63_180
.saturating_add(Weight::from_parts(1_076_259, 0).saturating_mul(m.into()))
.saturating_add(T::DbWeight::get().reads(3_u64))
.saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(m.into())))
.saturating_add(T::DbWeight::get().writes(5_u64))
@@ -287,8 +287,8 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
// Proof Size summary in bytes:
// Measured: `103`
// Estimated: `3593`
// Minimum execution time: 41_130_000 picoseconds.
Weight::from_parts(41_914_000, 3593)
// Minimum execution time: 46_383_000 picoseconds.
Weight::from_parts(47_405_000, 3593)
.saturating_add(T::DbWeight::get().reads(1_u64))
.saturating_add(T::DbWeight::get().writes(1_u64))
}
@@ -300,8 +300,8 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
// Proof Size summary in bytes:
// Measured: `603`
// Estimated: `3550`
// Minimum execution time: 31_042_000 picoseconds.
Weight::from_parts(34_087_000, 3550)
// Minimum execution time: 30_994_000 picoseconds.
Weight::from_parts(31_979_000, 3550)
.saturating_add(T::DbWeight::get().reads(2_u64))
.saturating_add(T::DbWeight::get().writes(1_u64))
}
@@ -315,8 +315,8 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
// Proof Size summary in bytes:
// Measured: `601`
// Estimated: `3533`
// Minimum execution time: 39_116_000 picoseconds.
Weight::from_parts(39_990_000, 3533)
// Minimum execution time: 37_584_000 picoseconds.
Weight::from_parts(44_010_000, 3533)
.saturating_add(T::DbWeight::get().reads(3_u64))
.saturating_add(T::DbWeight::get().writes(1_u64))
}
@@ -330,10 +330,10 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
fn drop_history() -> Weight {
// Proof Size summary in bytes:
// Measured: `995`
// Measured: `830`
// Estimated: `3593`
// Minimum execution time: 47_547_000 picoseconds.
Weight::from_parts(50_274_000, 3593)
// Minimum execution time: 45_266_000 picoseconds.
Weight::from_parts(48_000_000, 3593)
.saturating_add(T::DbWeight::get().reads(4_u64))
.saturating_add(T::DbWeight::get().writes(1_u64))
}
@@ -343,32 +343,34 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
/// Proof: `Broker::AllowedRenewals` (`max_values`: None, `max_size`: Some(1233), added: 3708, mode: `MaxEncodedLen`)
fn drop_renewal() -> Weight {
// Proof Size summary in bytes:
// Measured: `661`
// Measured: `525`
// Estimated: `4698`
// Minimum execution time: 26_707_000 picoseconds.
Weight::from_parts(27_217_000, 4698)
// Minimum execution time: 25_365_000 picoseconds.
Weight::from_parts(26_920_000, 4698)
.saturating_add(T::DbWeight::get().reads(2_u64))
.saturating_add(T::DbWeight::get().writes(1_u64))
}
/// The range of component `n` is `[0, 1000]`.
fn request_core_count(_n: u32, ) -> Weight {
fn request_core_count(n: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `0`
// Minimum execution time: 4_651_000 picoseconds.
Weight::from_parts(5_231_385, 0)
// Minimum execution time: 6_519_000 picoseconds.
Weight::from_parts(7_098_698, 0)
// Standard Error: 20
.saturating_add(Weight::from_parts(8, 0).saturating_mul(n.into()))
}
/// Storage: `Broker::CoreCountInbox` (r:1 w:1)
/// Proof: `Broker::CoreCountInbox` (`max_values`: Some(1), `max_size`: Some(2), added: 497, mode: `MaxEncodedLen`)
/// Storage: UNKNOWN KEY `0x18194fcb5c1fcace44d2d0a004272614` (r:1 w:1)
/// Proof: UNKNOWN KEY `0x18194fcb5c1fcace44d2d0a004272614` (r:1 w:1)
/// The range of component `n` is `[0, 1000]`.
fn process_core_count(n: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `404`
// Estimated: `1487`
// Minimum execution time: 6_806_000 picoseconds.
Weight::from_parts(7_264_002, 1487)
// Standard Error: 21
.saturating_add(Weight::from_parts(31, 0).saturating_mul(n.into()))
// Measured: `98`
// Estimated: `3563`
// Minimum execution time: 7_608_000 picoseconds.
Weight::from_parts(8_157_815, 3563)
// Standard Error: 26
.saturating_add(Weight::from_parts(48, 0).saturating_mul(n.into()))
.saturating_add(T::DbWeight::get().reads(1_u64))
.saturating_add(T::DbWeight::get().writes(1_u64))
}
@@ -384,10 +386,10 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
/// Proof: `System::Digest` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
fn process_revenue() -> Weight {
// Proof Size summary in bytes:
// Measured: `972`
// Estimated: `4437`
// Minimum execution time: 48_297_000 picoseconds.
Weight::from_parts(49_613_000, 4437)
// Measured: `905`
// Estimated: `4370`
// Minimum execution time: 59_993_000 picoseconds.
Weight::from_parts(61_752_000, 4370)
.saturating_add(T::DbWeight::get().reads(5_u64))
.saturating_add(T::DbWeight::get().writes(3_u64))
}
@@ -406,10 +408,10 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
// Proof Size summary in bytes:
// Measured: `6281`
// Estimated: `8499`
// Minimum execution time: 36_715_000 picoseconds.
Weight::from_parts(38_580_380, 8499)
// Standard Error: 91
.saturating_add(Weight::from_parts(1_163, 0).saturating_mul(n.into()))
// Minimum execution time: 41_863_000 picoseconds.
Weight::from_parts(44_033_031, 8499)
// Standard Error: 116
.saturating_add(Weight::from_parts(764, 0).saturating_mul(n.into()))
.saturating_add(T::DbWeight::get().reads(5_u64))
.saturating_add(T::DbWeight::get().writes(15_u64))
}
@@ -421,8 +423,8 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
// Proof Size summary in bytes:
// Measured: `180`
// Estimated: `3493`
// Minimum execution time: 7_564_000 picoseconds.
Weight::from_parts(7_932_000, 3493)
// Minimum execution time: 9_588_000 picoseconds.
Weight::from_parts(9_925_000, 3493)
.saturating_add(T::DbWeight::get().reads(1_u64))
.saturating_add(T::DbWeight::get().writes(1_u64))
}
@@ -434,8 +436,8 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
// Proof Size summary in bytes:
// Measured: `1423`
// Estimated: `4681`
// Minimum execution time: 17_082_000 picoseconds.
Weight::from_parts(17_662_000, 4681)
// Minimum execution time: 19_308_000 picoseconds.
Weight::from_parts(20_482_000, 4681)
.saturating_add(T::DbWeight::get().reads(2_u64))
.saturating_add(T::DbWeight::get().writes(2_u64))
}
@@ -443,35 +445,28 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `0`
// Minimum execution time: 175_000 picoseconds.
Weight::from_parts(223_000, 0)
// Minimum execution time: 147_000 picoseconds.
Weight::from_parts(184_000, 0)
}
/// Storage: `Broker::CoreCountInbox` (r:0 w:1)
/// Proof: `Broker::CoreCountInbox` (`max_values`: Some(1), `max_size`: Some(2), added: 497, mode: `MaxEncodedLen`)
fn notify_core_count() -> Weight {
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `0`
// Minimum execution time: 2_432_000 picoseconds.
Weight::from_parts(2_536_000, 0)
.saturating_add(T::DbWeight::get().writes(1_u64))
T::DbWeight::get().reads_writes(1, 1)
}
/// Storage: `Broker::Status` (r:1 w:1)
/// Proof: `Broker::Status` (`max_values`: Some(1), `max_size`: Some(18), added: 513, mode: `MaxEncodedLen`)
/// Storage: `Broker::Configuration` (r:1 w:0)
/// Proof: `Broker::Configuration` (`max_values`: Some(1), `max_size`: Some(31), added: 526, mode: `MaxEncodedLen`)
/// Storage: `Broker::CoreCountInbox` (r:1 w:0)
/// Proof: `Broker::CoreCountInbox` (`max_values`: Some(1), `max_size`: Some(2), added: 497, mode: `MaxEncodedLen`)
/// Storage: UNKNOWN KEY `0x18194fcb5c1fcace44d2d0a004272614` (r:1 w:1)
/// Proof: UNKNOWN KEY `0x18194fcb5c1fcace44d2d0a004272614` (r:1 w:1)
/// Storage: UNKNOWN KEY `0xf308d869daf021a7724e69c557dd8dbe` (r:1 w:1)
/// Proof: UNKNOWN KEY `0xf308d869daf021a7724e69c557dd8dbe` (r:1 w:1)
fn do_tick_base() -> Weight {
// Proof Size summary in bytes:
// Measured: `603`
// Estimated: `4068`
// Minimum execution time: 13_080_000 picoseconds.
Weight::from_parts(13_937_000, 4068)
// Measured: `699`
// Estimated: `4164`
// Minimum execution time: 19_824_000 picoseconds.
Weight::from_parts(20_983_000, 4164)
.saturating_add(T::DbWeight::get().reads(4_u64))
.saturating_add(T::DbWeight::get().writes(2_u64))
.saturating_add(T::DbWeight::get().writes(3_u64))
}
}
@@ -483,8 +478,8 @@ impl WeightInfo for () {
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `0`
// Minimum execution time: 2_701_000 picoseconds.
Weight::from_parts(2_902_000, 0)
// Minimum execution time: 3_040_000 picoseconds.
Weight::from_parts(3_344_000, 0)
.saturating_add(RocksDbWeight::get().writes(1_u64))
}
/// Storage: `Broker::Reservations` (r:1 w:1)
@@ -493,8 +488,8 @@ impl WeightInfo for () {
// Proof Size summary in bytes:
// Measured: `5016`
// Estimated: `7496`
// Minimum execution time: 18_056_000 picoseconds.
Weight::from_parts(19_093_000, 7496)
// Minimum execution time: 21_259_000 picoseconds.
Weight::from_parts(22_110_000, 7496)
.saturating_add(RocksDbWeight::get().reads(1_u64))
.saturating_add(RocksDbWeight::get().writes(1_u64))
}
@@ -504,8 +499,8 @@ impl WeightInfo for () {
// Proof Size summary in bytes:
// Measured: `6218`
// Estimated: `7496`
// Minimum execution time: 17_233_000 picoseconds.
Weight::from_parts(17_788_000, 7496)
// Minimum execution time: 20_330_000 picoseconds.
Weight::from_parts(20_826_000, 7496)
.saturating_add(RocksDbWeight::get().reads(1_u64))
.saturating_add(RocksDbWeight::get().writes(1_u64))
}
@@ -515,8 +510,8 @@ impl WeightInfo for () {
// Proof Size summary in bytes:
// Measured: `239`
// Estimated: `1526`
// Minimum execution time: 9_740_000 picoseconds.
Weight::from_parts(10_504_000, 1526)
// Minimum execution time: 13_411_000 picoseconds.
Weight::from_parts(13_960_000, 1526)
.saturating_add(RocksDbWeight::get().reads(1_u64))
.saturating_add(RocksDbWeight::get().writes(1_u64))
}
@@ -535,12 +530,14 @@ impl WeightInfo for () {
/// Storage: `Broker::Workplan` (r:0 w:10)
/// Proof: `Broker::Workplan` (`max_values`: None, `max_size`: Some(1216), added: 3691, mode: `MaxEncodedLen`)
/// The range of component `n` is `[0, 1000]`.
fn start_sales(_n: u32, ) -> Weight {
fn start_sales(n: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `6330`
// Estimated: `8499`
// Minimum execution time: 49_728_000 picoseconds.
Weight::from_parts(52_765_861, 8499)
// Minimum execution time: 57_770_000 picoseconds.
Weight::from_parts(61_047_512, 8499)
// Standard Error: 165
.saturating_add(Weight::from_parts(3, 0).saturating_mul(n.into()))
.saturating_add(RocksDbWeight::get().reads(6_u64))
.saturating_add(RocksDbWeight::get().writes(16_u64))
}
@@ -556,10 +553,10 @@ impl WeightInfo for () {
/// Proof: `Broker::Regions` (`max_values`: None, `max_size`: Some(85), added: 2560, mode: `MaxEncodedLen`)
fn purchase() -> Weight {
// Proof Size summary in bytes:
// Measured: `635`
// Estimated: `2120`
// Minimum execution time: 41_986_000 picoseconds.
Weight::from_parts(43_465_000, 2120)
// Measured: `568`
// Estimated: `2053`
// Minimum execution time: 51_196_000 picoseconds.
Weight::from_parts(52_382_000, 2053)
.saturating_add(RocksDbWeight::get().reads(4_u64))
.saturating_add(RocksDbWeight::get().writes(2_u64))
}
@@ -579,10 +576,10 @@ impl WeightInfo for () {
/// Proof: `Broker::Workplan` (`max_values`: None, `max_size`: Some(1216), added: 3691, mode: `MaxEncodedLen`)
fn renew() -> Weight {
// Proof Size summary in bytes:
// Measured: `753`
// Measured: `686`
// Estimated: `4698`
// Minimum execution time: 61_779_000 picoseconds.
Weight::from_parts(62_563_000, 4698)
// Minimum execution time: 71_636_000 picoseconds.
Weight::from_parts(73_679_000, 4698)
.saturating_add(RocksDbWeight::get().reads(6_u64))
.saturating_add(RocksDbWeight::get().writes(4_u64))
}
@@ -592,8 +589,8 @@ impl WeightInfo for () {
// Proof Size summary in bytes:
// Measured: `495`
// Estimated: `3550`
// Minimum execution time: 16_962_000 picoseconds.
Weight::from_parts(17_733_000, 3550)
// Minimum execution time: 19_182_000 picoseconds.
Weight::from_parts(19_775_000, 3550)
.saturating_add(RocksDbWeight::get().reads(1_u64))
.saturating_add(RocksDbWeight::get().writes(1_u64))
}
@@ -603,21 +600,21 @@ impl WeightInfo for () {
// Proof Size summary in bytes:
// Measured: `495`
// Estimated: `3550`
// Minimum execution time: 18_380_000 picoseconds.
Weight::from_parts(19_105_000, 3550)
// Minimum execution time: 20_688_000 picoseconds.
Weight::from_parts(21_557_000, 3550)
.saturating_add(RocksDbWeight::get().reads(1_u64))
.saturating_add(RocksDbWeight::get().writes(2_u64))
}
/// Storage: `Broker::Regions` (r:1 w:3)
/// Storage: `Broker::Regions` (r:1 w:2)
/// Proof: `Broker::Regions` (`max_values`: None, `max_size`: Some(85), added: 2560, mode: `MaxEncodedLen`)
fn interlace() -> Weight {
// Proof Size summary in bytes:
// Measured: `495`
// Estimated: `3550`
// Minimum execution time: 20_115_000 picoseconds.
Weight::from_parts(20_741_000, 3550)
// Minimum execution time: 21_190_000 picoseconds.
Weight::from_parts(22_215_000, 3550)
.saturating_add(RocksDbWeight::get().reads(1_u64))
.saturating_add(RocksDbWeight::get().writes(3_u64))
.saturating_add(RocksDbWeight::get().writes(2_u64))
}
/// Storage: `Broker::Configuration` (r:1 w:0)
/// Proof: `Broker::Configuration` (`max_values`: Some(1), `max_size`: Some(31), added: 526, mode: `MaxEncodedLen`)
@@ -631,8 +628,8 @@ impl WeightInfo for () {
// Proof Size summary in bytes:
// Measured: `740`
// Estimated: `4681`
// Minimum execution time: 31_339_000 picoseconds.
Weight::from_parts(32_639_000, 4681)
// Minimum execution time: 34_591_000 picoseconds.
Weight::from_parts(36_227_000, 4681)
.saturating_add(RocksDbWeight::get().reads(4_u64))
.saturating_add(RocksDbWeight::get().writes(2_u64))
}
@@ -650,8 +647,8 @@ impl WeightInfo for () {
// Proof Size summary in bytes:
// Measured: `775`
// Estimated: `5996`
// Minimum execution time: 37_542_000 picoseconds.
Weight::from_parts(38_521_000, 5996)
// Minimum execution time: 40_346_000 picoseconds.
Weight::from_parts(41_951_000, 5996)
.saturating_add(RocksDbWeight::get().reads(5_u64))
.saturating_add(RocksDbWeight::get().writes(5_u64))
}
@@ -666,10 +663,10 @@ impl WeightInfo for () {
// Proof Size summary in bytes:
// Measured: `859`
// Estimated: `6196 + m * (2520 ±0)`
// Minimum execution time: 66_176_000 picoseconds.
Weight::from_parts(68_356_745, 6196)
// Standard Error: 68_008
.saturating_add(Weight::from_parts(1_558_419, 0).saturating_mul(m.into()))
// Minimum execution time: 75_734_000 picoseconds.
Weight::from_parts(78_168_395, 6196)
// Standard Error: 63_180
.saturating_add(Weight::from_parts(1_076_259, 0).saturating_mul(m.into()))
.saturating_add(RocksDbWeight::get().reads(3_u64))
.saturating_add(RocksDbWeight::get().reads((1_u64).saturating_mul(m.into())))
.saturating_add(RocksDbWeight::get().writes(5_u64))
@@ -681,8 +678,8 @@ impl WeightInfo for () {
// Proof Size summary in bytes:
// Measured: `103`
// Estimated: `3593`
// Minimum execution time: 41_130_000 picoseconds.
Weight::from_parts(41_914_000, 3593)
// Minimum execution time: 46_383_000 picoseconds.
Weight::from_parts(47_405_000, 3593)
.saturating_add(RocksDbWeight::get().reads(1_u64))
.saturating_add(RocksDbWeight::get().writes(1_u64))
}
@@ -694,8 +691,8 @@ impl WeightInfo for () {
// Proof Size summary in bytes:
// Measured: `603`
// Estimated: `3550`
// Minimum execution time: 31_042_000 picoseconds.
Weight::from_parts(34_087_000, 3550)
// Minimum execution time: 30_994_000 picoseconds.
Weight::from_parts(31_979_000, 3550)
.saturating_add(RocksDbWeight::get().reads(2_u64))
.saturating_add(RocksDbWeight::get().writes(1_u64))
}
@@ -709,8 +706,8 @@ impl WeightInfo for () {
// Proof Size summary in bytes:
// Measured: `601`
// Estimated: `3533`
// Minimum execution time: 39_116_000 picoseconds.
Weight::from_parts(39_990_000, 3533)
// Minimum execution time: 37_584_000 picoseconds.
Weight::from_parts(44_010_000, 3533)
.saturating_add(RocksDbWeight::get().reads(3_u64))
.saturating_add(RocksDbWeight::get().writes(1_u64))
}
@@ -724,10 +721,10 @@ impl WeightInfo for () {
/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
fn drop_history() -> Weight {
// Proof Size summary in bytes:
// Measured: `995`
// Measured: `830`
// Estimated: `3593`
// Minimum execution time: 47_547_000 picoseconds.
Weight::from_parts(50_274_000, 3593)
// Minimum execution time: 45_266_000 picoseconds.
Weight::from_parts(48_000_000, 3593)
.saturating_add(RocksDbWeight::get().reads(4_u64))
.saturating_add(RocksDbWeight::get().writes(1_u64))
}
@@ -737,32 +734,34 @@ impl WeightInfo for () {
/// Proof: `Broker::AllowedRenewals` (`max_values`: None, `max_size`: Some(1233), added: 3708, mode: `MaxEncodedLen`)
fn drop_renewal() -> Weight {
// Proof Size summary in bytes:
// Measured: `661`
// Measured: `525`
// Estimated: `4698`
// Minimum execution time: 26_707_000 picoseconds.
Weight::from_parts(27_217_000, 4698)
// Minimum execution time: 25_365_000 picoseconds.
Weight::from_parts(26_920_000, 4698)
.saturating_add(RocksDbWeight::get().reads(2_u64))
.saturating_add(RocksDbWeight::get().writes(1_u64))
}
/// The range of component `n` is `[0, 1000]`.
fn request_core_count(_n: u32, ) -> Weight {
fn request_core_count(n: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `0`
// Minimum execution time: 4_651_000 picoseconds.
Weight::from_parts(5_231_385, 0)
// Minimum execution time: 6_519_000 picoseconds.
Weight::from_parts(7_098_698, 0)
// Standard Error: 20
.saturating_add(Weight::from_parts(8, 0).saturating_mul(n.into()))
}
/// Storage: `Broker::CoreCountInbox` (r:1 w:1)
/// Proof: `Broker::CoreCountInbox` (`max_values`: Some(1), `max_size`: Some(2), added: 497, mode: `MaxEncodedLen`)
/// Storage: UNKNOWN KEY `0x18194fcb5c1fcace44d2d0a004272614` (r:1 w:1)
/// Proof: UNKNOWN KEY `0x18194fcb5c1fcace44d2d0a004272614` (r:1 w:1)
/// The range of component `n` is `[0, 1000]`.
fn process_core_count(n: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `404`
// Estimated: `1487`
// Minimum execution time: 6_806_000 picoseconds.
Weight::from_parts(7_264_002, 1487)
// Standard Error: 21
.saturating_add(Weight::from_parts(31, 0).saturating_mul(n.into()))
// Measured: `98`
// Estimated: `3563`
// Minimum execution time: 7_608_000 picoseconds.
Weight::from_parts(8_157_815, 3563)
// Standard Error: 26
.saturating_add(Weight::from_parts(48, 0).saturating_mul(n.into()))
.saturating_add(RocksDbWeight::get().reads(1_u64))
.saturating_add(RocksDbWeight::get().writes(1_u64))
}
@@ -778,10 +777,10 @@ impl WeightInfo for () {
/// Proof: `System::Digest` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
fn process_revenue() -> Weight {
// Proof Size summary in bytes:
// Measured: `972`
// Estimated: `4437`
// Minimum execution time: 48_297_000 picoseconds.
Weight::from_parts(49_613_000, 4437)
// Measured: `905`
// Estimated: `4370`
// Minimum execution time: 59_993_000 picoseconds.
Weight::from_parts(61_752_000, 4370)
.saturating_add(RocksDbWeight::get().reads(5_u64))
.saturating_add(RocksDbWeight::get().writes(3_u64))
}
@@ -800,10 +799,10 @@ impl WeightInfo for () {
// Proof Size summary in bytes:
// Measured: `6281`
// Estimated: `8499`
// Minimum execution time: 36_715_000 picoseconds.
Weight::from_parts(38_580_380, 8499)
// Standard Error: 91
.saturating_add(Weight::from_parts(1_163, 0).saturating_mul(n.into()))
// Minimum execution time: 41_863_000 picoseconds.
Weight::from_parts(44_033_031, 8499)
// Standard Error: 116
.saturating_add(Weight::from_parts(764, 0).saturating_mul(n.into()))
.saturating_add(RocksDbWeight::get().reads(5_u64))
.saturating_add(RocksDbWeight::get().writes(15_u64))
}
@@ -815,8 +814,8 @@ impl WeightInfo for () {
// Proof Size summary in bytes:
// Measured: `180`
// Estimated: `3493`
// Minimum execution time: 7_564_000 picoseconds.
Weight::from_parts(7_932_000, 3493)
// Minimum execution time: 9_588_000 picoseconds.
Weight::from_parts(9_925_000, 3493)
.saturating_add(RocksDbWeight::get().reads(1_u64))
.saturating_add(RocksDbWeight::get().writes(1_u64))
}
@@ -828,8 +827,8 @@ impl WeightInfo for () {
// Proof Size summary in bytes:
// Measured: `1423`
// Estimated: `4681`
// Minimum execution time: 17_082_000 picoseconds.
Weight::from_parts(17_662_000, 4681)
// Minimum execution time: 19_308_000 picoseconds.
Weight::from_parts(20_482_000, 4681)
.saturating_add(RocksDbWeight::get().reads(2_u64))
.saturating_add(RocksDbWeight::get().writes(2_u64))
}
@@ -837,34 +836,28 @@ impl WeightInfo for () {
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `0`
// Minimum execution time: 175_000 picoseconds.
Weight::from_parts(223_000, 0)
// Minimum execution time: 147_000 picoseconds.
Weight::from_parts(184_000, 0)
}
/// Storage: `Broker::CoreCountInbox` (r:0 w:1)
/// Proof: `Broker::CoreCountInbox` (`max_values`: Some(1), `max_size`: Some(2), added: 497, mode: `MaxEncodedLen`)
fn notify_core_count() -> Weight {
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `0`
// Minimum execution time: 2_432_000 picoseconds.
Weight::from_parts(2_536_000, 0)
.saturating_add(RocksDbWeight::get().writes(1_u64))
RocksDbWeight::get().reads(1)
.saturating_add(RocksDbWeight::get().writes(1))
}
/// Storage: `Broker::Status` (r:1 w:1)
/// Proof: `Broker::Status` (`max_values`: Some(1), `max_size`: Some(18), added: 513, mode: `MaxEncodedLen`)
/// Storage: `Broker::Configuration` (r:1 w:0)
/// Proof: `Broker::Configuration` (`max_values`: Some(1), `max_size`: Some(31), added: 526, mode: `MaxEncodedLen`)
/// Storage: `Broker::CoreCountInbox` (r:1 w:0)
/// Proof: `Broker::CoreCountInbox` (`max_values`: Some(1), `max_size`: Some(2), added: 497, mode: `MaxEncodedLen`)
/// Storage: UNKNOWN KEY `0x18194fcb5c1fcace44d2d0a004272614` (r:1 w:1)
/// Proof: UNKNOWN KEY `0x18194fcb5c1fcace44d2d0a004272614` (r:1 w:1)
/// Storage: UNKNOWN KEY `0xf308d869daf021a7724e69c557dd8dbe` (r:1 w:1)
/// Proof: UNKNOWN KEY `0xf308d869daf021a7724e69c557dd8dbe` (r:1 w:1)
fn do_tick_base() -> Weight {
// Proof Size summary in bytes:
// Measured: `603`
// Estimated: `4068`
// Minimum execution time: 13_080_000 picoseconds.
Weight::from_parts(13_937_000, 4068)
// Measured: `699`
// Estimated: `4164`
// Minimum execution time: 19_824_000 picoseconds.
Weight::from_parts(20_983_000, 4164)
.saturating_add(RocksDbWeight::get().reads(4_u64))
.saturating_add(RocksDbWeight::get().writes(2_u64))
.saturating_add(RocksDbWeight::get().writes(3_u64))
}
}
+191 -190
View File
@@ -15,16 +15,16 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//! Autogenerated weights for `pallet_child_bounties`
//! Autogenerated weights for pallet_child_bounties
//!
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0
//! DATE: 2024-03-01, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
//! DATE: 2023-06-16, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! WORST CASE MAP SIZE: `1000000`
//! HOSTNAME: `runner-bn-ce5rx-project-674-concurrent-0`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz`
//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("dev")`, DB CACHE: `1024`
//! HOSTNAME: `runner-e8ezs4ez-project-145-concurrent-0`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz`
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024
// Executed Command:
// ./target/production/substrate-node
// ./target/production/substrate
// benchmark
// pallet
// --chain=dev
@@ -35,11 +35,12 @@
// --no-median-slopes
// --no-min-squares
// --extrinsic=*
// --execution=wasm
// --wasm-execution=compiled
// --heap-pages=4096
// --output=./substrate/frame/child-bounties/src/weights.rs
// --header=./substrate/HEADER-APACHE2
// --template=./substrate/.maintain/frame-weight-template.hbs
// --output=./frame/child-bounties/src/weights.rs
// --header=./HEADER-APACHE2
// --template=./.maintain/frame-weight-template.hbs
#![cfg_attr(rustfmt, rustfmt_skip)]
#![allow(unused_parens)]
@@ -49,7 +50,7 @@
use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}};
use core::marker::PhantomData;
/// Weight functions needed for `pallet_child_bounties`.
/// Weight functions needed for pallet_child_bounties.
pub trait WeightInfo {
fn add_child_bounty(d: u32, ) -> Weight;
fn propose_curator() -> Weight;
@@ -61,288 +62,288 @@ pub trait WeightInfo {
fn close_child_bounty_active() -> Weight;
}
/// Weights for `pallet_child_bounties` using the Substrate node and recommended hardware.
/// Weights for pallet_child_bounties using the Substrate node and recommended hardware.
pub struct SubstrateWeight<T>(PhantomData<T>);
impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
/// Storage: `ChildBounties::ParentChildBounties` (r:1 w:1)
/// Proof: `ChildBounties::ParentChildBounties` (`max_values`: None, `max_size`: Some(16), added: 2491, mode: `MaxEncodedLen`)
/// Storage: `Bounties::Bounties` (r:1 w:0)
/// Proof: `Bounties::Bounties` (`max_values`: None, `max_size`: Some(177), added: 2652, mode: `MaxEncodedLen`)
/// Storage: `System::Account` (r:2 w:2)
/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
/// Storage: `ChildBounties::ChildBountyCount` (r:1 w:1)
/// Proof: `ChildBounties::ChildBountyCount` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
/// Storage: `ChildBounties::ChildBountyDescriptions` (r:0 w:1)
/// Proof: `ChildBounties::ChildBountyDescriptions` (`max_values`: None, `max_size`: Some(314), added: 2789, mode: `MaxEncodedLen`)
/// Storage: `ChildBounties::ChildBounties` (r:0 w:1)
/// Proof: `ChildBounties::ChildBounties` (`max_values`: None, `max_size`: Some(145), added: 2620, mode: `MaxEncodedLen`)
/// Storage: ChildBounties ParentChildBounties (r:1 w:1)
/// Proof: ChildBounties ParentChildBounties (max_values: None, max_size: Some(16), added: 2491, mode: MaxEncodedLen)
/// Storage: Bounties Bounties (r:1 w:0)
/// Proof: Bounties Bounties (max_values: None, max_size: Some(177), added: 2652, mode: MaxEncodedLen)
/// Storage: System Account (r:2 w:2)
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
/// Storage: ChildBounties ChildBountyCount (r:1 w:1)
/// Proof: ChildBounties ChildBountyCount (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
/// Storage: ChildBounties ChildBountyDescriptions (r:0 w:1)
/// Proof: ChildBounties ChildBountyDescriptions (max_values: None, max_size: Some(314), added: 2789, mode: MaxEncodedLen)
/// Storage: ChildBounties ChildBounties (r:0 w:1)
/// Proof: ChildBounties ChildBounties (max_values: None, max_size: Some(145), added: 2620, mode: MaxEncodedLen)
/// The range of component `d` is `[0, 300]`.
fn add_child_bounty(_d: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `745`
// Measured: `712`
// Estimated: `6196`
// Minimum execution time: 60_674_000 picoseconds.
Weight::from_parts(63_477_428, 6196)
// Minimum execution time: 69_805_000 picoseconds.
Weight::from_parts(73_216_717, 6196)
.saturating_add(T::DbWeight::get().reads(5_u64))
.saturating_add(T::DbWeight::get().writes(6_u64))
}
/// Storage: `Bounties::Bounties` (r:1 w:0)
/// Proof: `Bounties::Bounties` (`max_values`: None, `max_size`: Some(177), added: 2652, mode: `MaxEncodedLen`)
/// Storage: `ChildBounties::ChildBounties` (r:1 w:1)
/// Proof: `ChildBounties::ChildBounties` (`max_values`: None, `max_size`: Some(145), added: 2620, mode: `MaxEncodedLen`)
/// Storage: `ChildBounties::ChildrenCuratorFees` (r:1 w:1)
/// Proof: `ChildBounties::ChildrenCuratorFees` (`max_values`: None, `max_size`: Some(28), added: 2503, mode: `MaxEncodedLen`)
/// Storage: Bounties Bounties (r:1 w:0)
/// Proof: Bounties Bounties (max_values: None, max_size: Some(177), added: 2652, mode: MaxEncodedLen)
/// Storage: ChildBounties ChildBounties (r:1 w:1)
/// Proof: ChildBounties ChildBounties (max_values: None, max_size: Some(145), added: 2620, mode: MaxEncodedLen)
/// Storage: ChildBounties ChildrenCuratorFees (r:1 w:1)
/// Proof: ChildBounties ChildrenCuratorFees (max_values: None, max_size: Some(28), added: 2503, mode: MaxEncodedLen)
fn propose_curator() -> Weight {
// Proof Size summary in bytes:
// Measured: `799`
// Measured: `766`
// Estimated: `3642`
// Minimum execution time: 17_754_000 picoseconds.
Weight::from_parts(18_655_000, 3642)
// Minimum execution time: 18_190_000 picoseconds.
Weight::from_parts(18_932_000, 3642)
.saturating_add(T::DbWeight::get().reads(3_u64))
.saturating_add(T::DbWeight::get().writes(2_u64))
}
/// Storage: `Bounties::Bounties` (r:1 w:0)
/// Proof: `Bounties::Bounties` (`max_values`: None, `max_size`: Some(177), added: 2652, mode: `MaxEncodedLen`)
/// Storage: `ChildBounties::ChildBounties` (r:1 w:1)
/// Proof: `ChildBounties::ChildBounties` (`max_values`: None, `max_size`: Some(145), added: 2620, mode: `MaxEncodedLen`)
/// Storage: `System::Account` (r:1 w:1)
/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
/// Storage: Bounties Bounties (r:1 w:0)
/// Proof: Bounties Bounties (max_values: None, max_size: Some(177), added: 2652, mode: MaxEncodedLen)
/// Storage: ChildBounties ChildBounties (r:1 w:1)
/// Proof: ChildBounties ChildBounties (max_values: None, max_size: Some(145), added: 2620, mode: MaxEncodedLen)
/// Storage: System Account (r:1 w:1)
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
fn accept_curator() -> Weight {
// Proof Size summary in bytes:
// Measured: `945`
// Measured: `912`
// Estimated: `3642`
// Minimum execution time: 31_580_000 picoseconds.
Weight::from_parts(32_499_000, 3642)
// Minimum execution time: 35_035_000 picoseconds.
Weight::from_parts(35_975_000, 3642)
.saturating_add(T::DbWeight::get().reads(3_u64))
.saturating_add(T::DbWeight::get().writes(2_u64))
}
/// Storage: `ChildBounties::ChildBounties` (r:1 w:1)
/// Proof: `ChildBounties::ChildBounties` (`max_values`: None, `max_size`: Some(145), added: 2620, mode: `MaxEncodedLen`)
/// Storage: `Bounties::Bounties` (r:1 w:0)
/// Proof: `Bounties::Bounties` (`max_values`: None, `max_size`: Some(177), added: 2652, mode: `MaxEncodedLen`)
/// Storage: `System::Account` (r:1 w:1)
/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
/// Storage: ChildBounties ChildBounties (r:1 w:1)
/// Proof: ChildBounties ChildBounties (max_values: None, max_size: Some(145), added: 2620, mode: MaxEncodedLen)
/// Storage: Bounties Bounties (r:1 w:0)
/// Proof: Bounties Bounties (max_values: None, max_size: Some(177), added: 2652, mode: MaxEncodedLen)
/// Storage: System Account (r:1 w:1)
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
fn unassign_curator() -> Weight {
// Proof Size summary in bytes:
// Measured: `945`
// Measured: `912`
// Estimated: `3642`
// Minimum execution time: 33_536_000 picoseconds.
Weight::from_parts(34_102_000, 3642)
// Minimum execution time: 37_636_000 picoseconds.
Weight::from_parts(38_610_000, 3642)
.saturating_add(T::DbWeight::get().reads(3_u64))
.saturating_add(T::DbWeight::get().writes(2_u64))
}
/// Storage: `Bounties::Bounties` (r:1 w:0)
/// Proof: `Bounties::Bounties` (`max_values`: None, `max_size`: Some(177), added: 2652, mode: `MaxEncodedLen`)
/// Storage: `ChildBounties::ChildBounties` (r:1 w:1)
/// Proof: `ChildBounties::ChildBounties` (`max_values`: None, `max_size`: Some(145), added: 2620, mode: `MaxEncodedLen`)
/// Storage: Bounties Bounties (r:1 w:0)
/// Proof: Bounties Bounties (max_values: None, max_size: Some(177), added: 2652, mode: MaxEncodedLen)
/// Storage: ChildBounties ChildBounties (r:1 w:1)
/// Proof: ChildBounties ChildBounties (max_values: None, max_size: Some(145), added: 2620, mode: MaxEncodedLen)
fn award_child_bounty() -> Weight {
// Proof Size summary in bytes:
// Measured: `842`
// Measured: `809`
// Estimated: `3642`
// Minimum execution time: 18_295_000 picoseconds.
Weight::from_parts(19_496_000, 3642)
// Minimum execution time: 22_457_000 picoseconds.
Weight::from_parts(23_691_000, 3642)
.saturating_add(T::DbWeight::get().reads(2_u64))
.saturating_add(T::DbWeight::get().writes(1_u64))
}
/// Storage: `ChildBounties::ChildBounties` (r:1 w:1)
/// Proof: `ChildBounties::ChildBounties` (`max_values`: None, `max_size`: Some(145), added: 2620, mode: `MaxEncodedLen`)
/// Storage: `System::Account` (r:3 w:3)
/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
/// Storage: `ChildBounties::ParentChildBounties` (r:1 w:1)
/// Proof: `ChildBounties::ParentChildBounties` (`max_values`: None, `max_size`: Some(16), added: 2491, mode: `MaxEncodedLen`)
/// Storage: `ChildBounties::ChildBountyDescriptions` (r:0 w:1)
/// Proof: `ChildBounties::ChildBountyDescriptions` (`max_values`: None, `max_size`: Some(314), added: 2789, mode: `MaxEncodedLen`)
/// Storage: ChildBounties ChildBounties (r:1 w:1)
/// Proof: ChildBounties ChildBounties (max_values: None, max_size: Some(145), added: 2620, mode: MaxEncodedLen)
/// Storage: System Account (r:3 w:3)
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
/// Storage: ChildBounties ParentChildBounties (r:1 w:1)
/// Proof: ChildBounties ParentChildBounties (max_values: None, max_size: Some(16), added: 2491, mode: MaxEncodedLen)
/// Storage: ChildBounties ChildBountyDescriptions (r:0 w:1)
/// Proof: ChildBounties ChildBountyDescriptions (max_values: None, max_size: Some(314), added: 2789, mode: MaxEncodedLen)
fn claim_child_bounty() -> Weight {
// Proof Size summary in bytes:
// Measured: `682`
// Estimated: `8799`
// Minimum execution time: 102_367_000 picoseconds.
Weight::from_parts(104_352_000, 8799)
// Minimum execution time: 118_272_000 picoseconds.
Weight::from_parts(121_646_000, 8799)
.saturating_add(T::DbWeight::get().reads(5_u64))
.saturating_add(T::DbWeight::get().writes(6_u64))
}
/// Storage: `Bounties::Bounties` (r:1 w:0)
/// Proof: `Bounties::Bounties` (`max_values`: None, `max_size`: Some(177), added: 2652, mode: `MaxEncodedLen`)
/// Storage: `ChildBounties::ChildBounties` (r:1 w:1)
/// Proof: `ChildBounties::ChildBounties` (`max_values`: None, `max_size`: Some(145), added: 2620, mode: `MaxEncodedLen`)
/// Storage: `ChildBounties::ChildrenCuratorFees` (r:1 w:1)
/// Proof: `ChildBounties::ChildrenCuratorFees` (`max_values`: None, `max_size`: Some(28), added: 2503, mode: `MaxEncodedLen`)
/// Storage: `ChildBounties::ParentChildBounties` (r:1 w:1)
/// Proof: `ChildBounties::ParentChildBounties` (`max_values`: None, `max_size`: Some(16), added: 2491, mode: `MaxEncodedLen`)
/// Storage: `System::Account` (r:2 w:2)
/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
/// Storage: `ChildBounties::ChildBountyDescriptions` (r:0 w:1)
/// Proof: `ChildBounties::ChildBountyDescriptions` (`max_values`: None, `max_size`: Some(314), added: 2789, mode: `MaxEncodedLen`)
/// Storage: Bounties Bounties (r:1 w:0)
/// Proof: Bounties Bounties (max_values: None, max_size: Some(177), added: 2652, mode: MaxEncodedLen)
/// Storage: ChildBounties ChildBounties (r:1 w:1)
/// Proof: ChildBounties ChildBounties (max_values: None, max_size: Some(145), added: 2620, mode: MaxEncodedLen)
/// Storage: ChildBounties ChildrenCuratorFees (r:1 w:1)
/// Proof: ChildBounties ChildrenCuratorFees (max_values: None, max_size: Some(28), added: 2503, mode: MaxEncodedLen)
/// Storage: ChildBounties ParentChildBounties (r:1 w:1)
/// Proof: ChildBounties ParentChildBounties (max_values: None, max_size: Some(16), added: 2491, mode: MaxEncodedLen)
/// Storage: System Account (r:2 w:2)
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
/// Storage: ChildBounties ChildBountyDescriptions (r:0 w:1)
/// Proof: ChildBounties ChildBountyDescriptions (max_values: None, max_size: Some(314), added: 2789, mode: MaxEncodedLen)
fn close_child_bounty_added() -> Weight {
// Proof Size summary in bytes:
// Measured: `1045`
// Measured: `1012`
// Estimated: `6196`
// Minimum execution time: 69_051_000 picoseconds.
Weight::from_parts(71_297_000, 6196)
// Minimum execution time: 75_717_000 picoseconds.
Weight::from_parts(77_837_000, 6196)
.saturating_add(T::DbWeight::get().reads(6_u64))
.saturating_add(T::DbWeight::get().writes(6_u64))
}
/// Storage: `Bounties::Bounties` (r:1 w:0)
/// Proof: `Bounties::Bounties` (`max_values`: None, `max_size`: Some(177), added: 2652, mode: `MaxEncodedLen`)
/// Storage: `ChildBounties::ChildBounties` (r:1 w:1)
/// Proof: `ChildBounties::ChildBounties` (`max_values`: None, `max_size`: Some(145), added: 2620, mode: `MaxEncodedLen`)
/// Storage: `System::Account` (r:3 w:3)
/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
/// Storage: `ChildBounties::ChildrenCuratorFees` (r:1 w:1)
/// Proof: `ChildBounties::ChildrenCuratorFees` (`max_values`: None, `max_size`: Some(28), added: 2503, mode: `MaxEncodedLen`)
/// Storage: `ChildBounties::ParentChildBounties` (r:1 w:1)
/// Proof: `ChildBounties::ParentChildBounties` (`max_values`: None, `max_size`: Some(16), added: 2491, mode: `MaxEncodedLen`)
/// Storage: `ChildBounties::ChildBountyDescriptions` (r:0 w:1)
/// Proof: `ChildBounties::ChildBountyDescriptions` (`max_values`: None, `max_size`: Some(314), added: 2789, mode: `MaxEncodedLen`)
/// Storage: Bounties Bounties (r:1 w:0)
/// Proof: Bounties Bounties (max_values: None, max_size: Some(177), added: 2652, mode: MaxEncodedLen)
/// Storage: ChildBounties ChildBounties (r:1 w:1)
/// Proof: ChildBounties ChildBounties (max_values: None, max_size: Some(145), added: 2620, mode: MaxEncodedLen)
/// Storage: System Account (r:3 w:3)
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
/// Storage: ChildBounties ChildrenCuratorFees (r:1 w:1)
/// Proof: ChildBounties ChildrenCuratorFees (max_values: None, max_size: Some(28), added: 2503, mode: MaxEncodedLen)
/// Storage: ChildBounties ParentChildBounties (r:1 w:1)
/// Proof: ChildBounties ParentChildBounties (max_values: None, max_size: Some(16), added: 2491, mode: MaxEncodedLen)
/// Storage: ChildBounties ChildBountyDescriptions (r:0 w:1)
/// Proof: ChildBounties ChildBountyDescriptions (max_values: None, max_size: Some(314), added: 2789, mode: MaxEncodedLen)
fn close_child_bounty_active() -> Weight {
// Proof Size summary in bytes:
// Measured: `1232`
// Measured: `1199`
// Estimated: `8799`
// Minimum execution time: 84_053_000 picoseconds.
Weight::from_parts(86_072_000, 8799)
// Minimum execution time: 94_215_000 picoseconds.
Weight::from_parts(97_017_000, 8799)
.saturating_add(T::DbWeight::get().reads(7_u64))
.saturating_add(T::DbWeight::get().writes(7_u64))
}
}
// For backwards compatibility and tests.
// For backwards compatibility and tests
impl WeightInfo for () {
/// Storage: `ChildBounties::ParentChildBounties` (r:1 w:1)
/// Proof: `ChildBounties::ParentChildBounties` (`max_values`: None, `max_size`: Some(16), added: 2491, mode: `MaxEncodedLen`)
/// Storage: `Bounties::Bounties` (r:1 w:0)
/// Proof: `Bounties::Bounties` (`max_values`: None, `max_size`: Some(177), added: 2652, mode: `MaxEncodedLen`)
/// Storage: `System::Account` (r:2 w:2)
/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
/// Storage: `ChildBounties::ChildBountyCount` (r:1 w:1)
/// Proof: `ChildBounties::ChildBountyCount` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
/// Storage: `ChildBounties::ChildBountyDescriptions` (r:0 w:1)
/// Proof: `ChildBounties::ChildBountyDescriptions` (`max_values`: None, `max_size`: Some(314), added: 2789, mode: `MaxEncodedLen`)
/// Storage: `ChildBounties::ChildBounties` (r:0 w:1)
/// Proof: `ChildBounties::ChildBounties` (`max_values`: None, `max_size`: Some(145), added: 2620, mode: `MaxEncodedLen`)
/// Storage: ChildBounties ParentChildBounties (r:1 w:1)
/// Proof: ChildBounties ParentChildBounties (max_values: None, max_size: Some(16), added: 2491, mode: MaxEncodedLen)
/// Storage: Bounties Bounties (r:1 w:0)
/// Proof: Bounties Bounties (max_values: None, max_size: Some(177), added: 2652, mode: MaxEncodedLen)
/// Storage: System Account (r:2 w:2)
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
/// Storage: ChildBounties ChildBountyCount (r:1 w:1)
/// Proof: ChildBounties ChildBountyCount (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
/// Storage: ChildBounties ChildBountyDescriptions (r:0 w:1)
/// Proof: ChildBounties ChildBountyDescriptions (max_values: None, max_size: Some(314), added: 2789, mode: MaxEncodedLen)
/// Storage: ChildBounties ChildBounties (r:0 w:1)
/// Proof: ChildBounties ChildBounties (max_values: None, max_size: Some(145), added: 2620, mode: MaxEncodedLen)
/// The range of component `d` is `[0, 300]`.
fn add_child_bounty(_d: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `745`
// Measured: `712`
// Estimated: `6196`
// Minimum execution time: 60_674_000 picoseconds.
Weight::from_parts(63_477_428, 6196)
// Minimum execution time: 69_805_000 picoseconds.
Weight::from_parts(73_216_717, 6196)
.saturating_add(RocksDbWeight::get().reads(5_u64))
.saturating_add(RocksDbWeight::get().writes(6_u64))
}
/// Storage: `Bounties::Bounties` (r:1 w:0)
/// Proof: `Bounties::Bounties` (`max_values`: None, `max_size`: Some(177), added: 2652, mode: `MaxEncodedLen`)
/// Storage: `ChildBounties::ChildBounties` (r:1 w:1)
/// Proof: `ChildBounties::ChildBounties` (`max_values`: None, `max_size`: Some(145), added: 2620, mode: `MaxEncodedLen`)
/// Storage: `ChildBounties::ChildrenCuratorFees` (r:1 w:1)
/// Proof: `ChildBounties::ChildrenCuratorFees` (`max_values`: None, `max_size`: Some(28), added: 2503, mode: `MaxEncodedLen`)
/// Storage: Bounties Bounties (r:1 w:0)
/// Proof: Bounties Bounties (max_values: None, max_size: Some(177), added: 2652, mode: MaxEncodedLen)
/// Storage: ChildBounties ChildBounties (r:1 w:1)
/// Proof: ChildBounties ChildBounties (max_values: None, max_size: Some(145), added: 2620, mode: MaxEncodedLen)
/// Storage: ChildBounties ChildrenCuratorFees (r:1 w:1)
/// Proof: ChildBounties ChildrenCuratorFees (max_values: None, max_size: Some(28), added: 2503, mode: MaxEncodedLen)
fn propose_curator() -> Weight {
// Proof Size summary in bytes:
// Measured: `799`
// Measured: `766`
// Estimated: `3642`
// Minimum execution time: 17_754_000 picoseconds.
Weight::from_parts(18_655_000, 3642)
// Minimum execution time: 18_190_000 picoseconds.
Weight::from_parts(18_932_000, 3642)
.saturating_add(RocksDbWeight::get().reads(3_u64))
.saturating_add(RocksDbWeight::get().writes(2_u64))
}
/// Storage: `Bounties::Bounties` (r:1 w:0)
/// Proof: `Bounties::Bounties` (`max_values`: None, `max_size`: Some(177), added: 2652, mode: `MaxEncodedLen`)
/// Storage: `ChildBounties::ChildBounties` (r:1 w:1)
/// Proof: `ChildBounties::ChildBounties` (`max_values`: None, `max_size`: Some(145), added: 2620, mode: `MaxEncodedLen`)
/// Storage: `System::Account` (r:1 w:1)
/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
/// Storage: Bounties Bounties (r:1 w:0)
/// Proof: Bounties Bounties (max_values: None, max_size: Some(177), added: 2652, mode: MaxEncodedLen)
/// Storage: ChildBounties ChildBounties (r:1 w:1)
/// Proof: ChildBounties ChildBounties (max_values: None, max_size: Some(145), added: 2620, mode: MaxEncodedLen)
/// Storage: System Account (r:1 w:1)
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
fn accept_curator() -> Weight {
// Proof Size summary in bytes:
// Measured: `945`
// Measured: `912`
// Estimated: `3642`
// Minimum execution time: 31_580_000 picoseconds.
Weight::from_parts(32_499_000, 3642)
// Minimum execution time: 35_035_000 picoseconds.
Weight::from_parts(35_975_000, 3642)
.saturating_add(RocksDbWeight::get().reads(3_u64))
.saturating_add(RocksDbWeight::get().writes(2_u64))
}
/// Storage: `ChildBounties::ChildBounties` (r:1 w:1)
/// Proof: `ChildBounties::ChildBounties` (`max_values`: None, `max_size`: Some(145), added: 2620, mode: `MaxEncodedLen`)
/// Storage: `Bounties::Bounties` (r:1 w:0)
/// Proof: `Bounties::Bounties` (`max_values`: None, `max_size`: Some(177), added: 2652, mode: `MaxEncodedLen`)
/// Storage: `System::Account` (r:1 w:1)
/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
/// Storage: ChildBounties ChildBounties (r:1 w:1)
/// Proof: ChildBounties ChildBounties (max_values: None, max_size: Some(145), added: 2620, mode: MaxEncodedLen)
/// Storage: Bounties Bounties (r:1 w:0)
/// Proof: Bounties Bounties (max_values: None, max_size: Some(177), added: 2652, mode: MaxEncodedLen)
/// Storage: System Account (r:1 w:1)
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
fn unassign_curator() -> Weight {
// Proof Size summary in bytes:
// Measured: `945`
// Measured: `912`
// Estimated: `3642`
// Minimum execution time: 33_536_000 picoseconds.
Weight::from_parts(34_102_000, 3642)
// Minimum execution time: 37_636_000 picoseconds.
Weight::from_parts(38_610_000, 3642)
.saturating_add(RocksDbWeight::get().reads(3_u64))
.saturating_add(RocksDbWeight::get().writes(2_u64))
}
/// Storage: `Bounties::Bounties` (r:1 w:0)
/// Proof: `Bounties::Bounties` (`max_values`: None, `max_size`: Some(177), added: 2652, mode: `MaxEncodedLen`)
/// Storage: `ChildBounties::ChildBounties` (r:1 w:1)
/// Proof: `ChildBounties::ChildBounties` (`max_values`: None, `max_size`: Some(145), added: 2620, mode: `MaxEncodedLen`)
/// Storage: Bounties Bounties (r:1 w:0)
/// Proof: Bounties Bounties (max_values: None, max_size: Some(177), added: 2652, mode: MaxEncodedLen)
/// Storage: ChildBounties ChildBounties (r:1 w:1)
/// Proof: ChildBounties ChildBounties (max_values: None, max_size: Some(145), added: 2620, mode: MaxEncodedLen)
fn award_child_bounty() -> Weight {
// Proof Size summary in bytes:
// Measured: `842`
// Measured: `809`
// Estimated: `3642`
// Minimum execution time: 18_295_000 picoseconds.
Weight::from_parts(19_496_000, 3642)
// Minimum execution time: 22_457_000 picoseconds.
Weight::from_parts(23_691_000, 3642)
.saturating_add(RocksDbWeight::get().reads(2_u64))
.saturating_add(RocksDbWeight::get().writes(1_u64))
}
/// Storage: `ChildBounties::ChildBounties` (r:1 w:1)
/// Proof: `ChildBounties::ChildBounties` (`max_values`: None, `max_size`: Some(145), added: 2620, mode: `MaxEncodedLen`)
/// Storage: `System::Account` (r:3 w:3)
/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
/// Storage: `ChildBounties::ParentChildBounties` (r:1 w:1)
/// Proof: `ChildBounties::ParentChildBounties` (`max_values`: None, `max_size`: Some(16), added: 2491, mode: `MaxEncodedLen`)
/// Storage: `ChildBounties::ChildBountyDescriptions` (r:0 w:1)
/// Proof: `ChildBounties::ChildBountyDescriptions` (`max_values`: None, `max_size`: Some(314), added: 2789, mode: `MaxEncodedLen`)
/// Storage: ChildBounties ChildBounties (r:1 w:1)
/// Proof: ChildBounties ChildBounties (max_values: None, max_size: Some(145), added: 2620, mode: MaxEncodedLen)
/// Storage: System Account (r:3 w:3)
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
/// Storage: ChildBounties ParentChildBounties (r:1 w:1)
/// Proof: ChildBounties ParentChildBounties (max_values: None, max_size: Some(16), added: 2491, mode: MaxEncodedLen)
/// Storage: ChildBounties ChildBountyDescriptions (r:0 w:1)
/// Proof: ChildBounties ChildBountyDescriptions (max_values: None, max_size: Some(314), added: 2789, mode: MaxEncodedLen)
fn claim_child_bounty() -> Weight {
// Proof Size summary in bytes:
// Measured: `682`
// Estimated: `8799`
// Minimum execution time: 102_367_000 picoseconds.
Weight::from_parts(104_352_000, 8799)
// Minimum execution time: 118_272_000 picoseconds.
Weight::from_parts(121_646_000, 8799)
.saturating_add(RocksDbWeight::get().reads(5_u64))
.saturating_add(RocksDbWeight::get().writes(6_u64))
}
/// Storage: `Bounties::Bounties` (r:1 w:0)
/// Proof: `Bounties::Bounties` (`max_values`: None, `max_size`: Some(177), added: 2652, mode: `MaxEncodedLen`)
/// Storage: `ChildBounties::ChildBounties` (r:1 w:1)
/// Proof: `ChildBounties::ChildBounties` (`max_values`: None, `max_size`: Some(145), added: 2620, mode: `MaxEncodedLen`)
/// Storage: `ChildBounties::ChildrenCuratorFees` (r:1 w:1)
/// Proof: `ChildBounties::ChildrenCuratorFees` (`max_values`: None, `max_size`: Some(28), added: 2503, mode: `MaxEncodedLen`)
/// Storage: `ChildBounties::ParentChildBounties` (r:1 w:1)
/// Proof: `ChildBounties::ParentChildBounties` (`max_values`: None, `max_size`: Some(16), added: 2491, mode: `MaxEncodedLen`)
/// Storage: `System::Account` (r:2 w:2)
/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
/// Storage: `ChildBounties::ChildBountyDescriptions` (r:0 w:1)
/// Proof: `ChildBounties::ChildBountyDescriptions` (`max_values`: None, `max_size`: Some(314), added: 2789, mode: `MaxEncodedLen`)
/// Storage: Bounties Bounties (r:1 w:0)
/// Proof: Bounties Bounties (max_values: None, max_size: Some(177), added: 2652, mode: MaxEncodedLen)
/// Storage: ChildBounties ChildBounties (r:1 w:1)
/// Proof: ChildBounties ChildBounties (max_values: None, max_size: Some(145), added: 2620, mode: MaxEncodedLen)
/// Storage: ChildBounties ChildrenCuratorFees (r:1 w:1)
/// Proof: ChildBounties ChildrenCuratorFees (max_values: None, max_size: Some(28), added: 2503, mode: MaxEncodedLen)
/// Storage: ChildBounties ParentChildBounties (r:1 w:1)
/// Proof: ChildBounties ParentChildBounties (max_values: None, max_size: Some(16), added: 2491, mode: MaxEncodedLen)
/// Storage: System Account (r:2 w:2)
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
/// Storage: ChildBounties ChildBountyDescriptions (r:0 w:1)
/// Proof: ChildBounties ChildBountyDescriptions (max_values: None, max_size: Some(314), added: 2789, mode: MaxEncodedLen)
fn close_child_bounty_added() -> Weight {
// Proof Size summary in bytes:
// Measured: `1045`
// Measured: `1012`
// Estimated: `6196`
// Minimum execution time: 69_051_000 picoseconds.
Weight::from_parts(71_297_000, 6196)
// Minimum execution time: 75_717_000 picoseconds.
Weight::from_parts(77_837_000, 6196)
.saturating_add(RocksDbWeight::get().reads(6_u64))
.saturating_add(RocksDbWeight::get().writes(6_u64))
}
/// Storage: `Bounties::Bounties` (r:1 w:0)
/// Proof: `Bounties::Bounties` (`max_values`: None, `max_size`: Some(177), added: 2652, mode: `MaxEncodedLen`)
/// Storage: `ChildBounties::ChildBounties` (r:1 w:1)
/// Proof: `ChildBounties::ChildBounties` (`max_values`: None, `max_size`: Some(145), added: 2620, mode: `MaxEncodedLen`)
/// Storage: `System::Account` (r:3 w:3)
/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
/// Storage: `ChildBounties::ChildrenCuratorFees` (r:1 w:1)
/// Proof: `ChildBounties::ChildrenCuratorFees` (`max_values`: None, `max_size`: Some(28), added: 2503, mode: `MaxEncodedLen`)
/// Storage: `ChildBounties::ParentChildBounties` (r:1 w:1)
/// Proof: `ChildBounties::ParentChildBounties` (`max_values`: None, `max_size`: Some(16), added: 2491, mode: `MaxEncodedLen`)
/// Storage: `ChildBounties::ChildBountyDescriptions` (r:0 w:1)
/// Proof: `ChildBounties::ChildBountyDescriptions` (`max_values`: None, `max_size`: Some(314), added: 2789, mode: `MaxEncodedLen`)
/// Storage: Bounties Bounties (r:1 w:0)
/// Proof: Bounties Bounties (max_values: None, max_size: Some(177), added: 2652, mode: MaxEncodedLen)
/// Storage: ChildBounties ChildBounties (r:1 w:1)
/// Proof: ChildBounties ChildBounties (max_values: None, max_size: Some(145), added: 2620, mode: MaxEncodedLen)
/// Storage: System Account (r:3 w:3)
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
/// Storage: ChildBounties ChildrenCuratorFees (r:1 w:1)
/// Proof: ChildBounties ChildrenCuratorFees (max_values: None, max_size: Some(28), added: 2503, mode: MaxEncodedLen)
/// Storage: ChildBounties ParentChildBounties (r:1 w:1)
/// Proof: ChildBounties ParentChildBounties (max_values: None, max_size: Some(16), added: 2491, mode: MaxEncodedLen)
/// Storage: ChildBounties ChildBountyDescriptions (r:0 w:1)
/// Proof: ChildBounties ChildBountyDescriptions (max_values: None, max_size: Some(314), added: 2789, mode: MaxEncodedLen)
fn close_child_bounty_active() -> Weight {
// Proof Size summary in bytes:
// Measured: `1232`
// Measured: `1199`
// Estimated: `8799`
// Minimum execution time: 84_053_000 picoseconds.
Weight::from_parts(86_072_000, 8799)
// Minimum execution time: 94_215_000 picoseconds.
Weight::from_parts(97_017_000, 8799)
.saturating_add(RocksDbWeight::get().reads(7_u64))
.saturating_add(RocksDbWeight::get().writes(7_u64))
}
+1 -1
View File
@@ -29,7 +29,7 @@ use sp_core::H256;
use sp_runtime::{testing::Header, traits::BlakeTwo256, BuildStorage};
pub type Block = sp_runtime::generic::Block<Header, UncheckedExtrinsic>;
pub type UncheckedExtrinsic = sp_runtime::generic::UncheckedExtrinsic<u32, RuntimeCall, u64, ()>;
pub type UncheckedExtrinsic = sp_runtime::generic::UncheckedExtrinsic<u32, u64, RuntimeCall, ()>;
frame_support::construct_runtime!(
pub enum Test
+323 -354
View File
@@ -15,16 +15,16 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//! Autogenerated weights for `pallet_collective`
//! Autogenerated weights for pallet_collective
//!
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0
//! DATE: 2024-03-01, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
//! DATE: 2023-06-16, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! WORST CASE MAP SIZE: `1000000`
//! HOSTNAME: `runner-bn-ce5rx-project-674-concurrent-0`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz`
//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("dev")`, DB CACHE: `1024`
//! HOSTNAME: `runner-e8ezs4ez-project-145-concurrent-0`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz`
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024
// Executed Command:
// ./target/production/substrate-node
// ./target/production/substrate
// benchmark
// pallet
// --chain=dev
@@ -35,11 +35,12 @@
// --no-median-slopes
// --no-min-squares
// --extrinsic=*
// --execution=wasm
// --wasm-execution=compiled
// --heap-pages=4096
// --output=./substrate/frame/collective/src/weights.rs
// --header=./substrate/HEADER-APACHE2
// --template=./substrate/.maintain/frame-weight-template.hbs
// --output=./frame/collective/src/weights.rs
// --header=./HEADER-APACHE2
// --template=./.maintain/frame-weight-template.hbs
#![cfg_attr(rustfmt, rustfmt_skip)]
#![allow(unused_parens)]
@@ -49,7 +50,7 @@
use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}};
use core::marker::PhantomData;
/// Weight functions needed for `pallet_collective`.
/// Weight functions needed for pallet_collective.
pub trait WeightInfo {
fn set_members(m: u32, n: u32, p: u32, ) -> Weight;
fn execute(b: u32, m: u32, ) -> Weight;
@@ -63,30 +64,30 @@ pub trait WeightInfo {
fn disapprove_proposal(p: u32, ) -> Weight;
}
/// Weights for `pallet_collective` using the Substrate node and recommended hardware.
/// Weights for pallet_collective using the Substrate node and recommended hardware.
pub struct SubstrateWeight<T>(PhantomData<T>);
impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
/// Storage: `Council::Members` (r:1 w:1)
/// Proof: `Council::Members` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// Storage: `Council::Proposals` (r:1 w:0)
/// Proof: `Council::Proposals` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// Storage: `Council::Voting` (r:100 w:100)
/// Proof: `Council::Voting` (`max_values`: None, `max_size`: None, mode: `Measured`)
/// Storage: `Council::Prime` (r:0 w:1)
/// Proof: `Council::Prime` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// Storage: Council Members (r:1 w:1)
/// Proof Skipped: Council Members (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: Council Proposals (r:1 w:0)
/// Proof Skipped: Council Proposals (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: Council Voting (r:100 w:100)
/// Proof Skipped: Council Voting (max_values: None, max_size: None, mode: Measured)
/// Storage: Council Prime (r:0 w:1)
/// Proof Skipped: Council Prime (max_values: Some(1), max_size: None, mode: Measured)
/// 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 {
// Proof Size summary in bytes:
// Measured: `0 + m * (3232 ±0) + p * (3190 ±0)`
// Estimated: `15894 + m * (1967 ±23) + p * (4332 ±23)`
// Minimum execution time: 15_559_000 picoseconds.
Weight::from_parts(15_870_000, 15894)
// Standard Error: 54_310
.saturating_add(Weight::from_parts(4_117_753, 0).saturating_mul(m.into()))
// Standard Error: 54_310
.saturating_add(Weight::from_parts(7_677_627, 0).saturating_mul(p.into()))
// Estimated: `15861 + m * (1967 ±24) + p * (4332 ±24)`
// Minimum execution time: 17_506_000 picoseconds.
Weight::from_parts(17_767_000, 15861)
// Standard Error: 60_220
.saturating_add(Weight::from_parts(4_374_805, 0).saturating_mul(m.into()))
// Standard Error: 60_220
.saturating_add(Weight::from_parts(8_398_316, 0).saturating_mul(p.into()))
.saturating_add(T::DbWeight::get().reads(2_u64))
.saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(p.into())))
.saturating_add(T::DbWeight::get().writes(2_u64))
@@ -94,261 +95,245 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
.saturating_add(Weight::from_parts(0, 1967).saturating_mul(m.into()))
.saturating_add(Weight::from_parts(0, 4332).saturating_mul(p.into()))
}
/// Storage: `Council::Members` (r:1 w:0)
/// Proof: `Council::Members` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// Storage: `SafeMode::EnteredUntil` (r:1 w:0)
/// Proof: `SafeMode::EnteredUntil` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
/// Storage: `TxPause::PausedCalls` (r:1 w:0)
/// Proof: `TxPause::PausedCalls` (`max_values`: None, `max_size`: Some(532), added: 3007, mode: `MaxEncodedLen`)
/// Storage: Council Members (r:1 w:0)
/// Proof Skipped: Council Members (max_values: Some(1), max_size: None, mode: Measured)
/// The range of component `b` is `[2, 1024]`.
/// The range of component `m` is `[1, 100]`.
fn execute(b: u32, m: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `380 + m * (32 ±0)`
// Estimated: `3997 + m * (32 ±0)`
// Minimum execution time: 19_024_000 picoseconds.
Weight::from_parts(18_153_872, 3997)
// Standard Error: 46
.saturating_add(Weight::from_parts(1_933, 0).saturating_mul(b.into()))
// Standard Error: 478
.saturating_add(Weight::from_parts(18_872, 0).saturating_mul(m.into()))
.saturating_add(T::DbWeight::get().reads(3_u64))
// Measured: `202 + m * (32 ±0)`
// Estimated: `1688 + m * (32 ±0)`
// Minimum execution time: 16_203_000 picoseconds.
Weight::from_parts(15_348_267, 1688)
// Standard Error: 37
.saturating_add(Weight::from_parts(1_766, 0).saturating_mul(b.into()))
// Standard Error: 382
.saturating_add(Weight::from_parts(15_765, 0).saturating_mul(m.into()))
.saturating_add(T::DbWeight::get().reads(1_u64))
.saturating_add(Weight::from_parts(0, 32).saturating_mul(m.into()))
}
/// Storage: `Council::Members` (r:1 w:0)
/// Proof: `Council::Members` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// Storage: `Council::ProposalOf` (r:1 w:0)
/// Proof: `Council::ProposalOf` (`max_values`: None, `max_size`: None, mode: `Measured`)
/// Storage: `SafeMode::EnteredUntil` (r:1 w:0)
/// Proof: `SafeMode::EnteredUntil` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
/// Storage: `TxPause::PausedCalls` (r:1 w:0)
/// Proof: `TxPause::PausedCalls` (`max_values`: None, `max_size`: Some(532), added: 3007, mode: `MaxEncodedLen`)
/// Storage: Council Members (r:1 w:0)
/// Proof Skipped: Council Members (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: Council ProposalOf (r:1 w:0)
/// Proof Skipped: Council ProposalOf (max_values: None, max_size: None, mode: Measured)
/// The range of component `b` is `[2, 1024]`.
/// The range of component `m` is `[1, 100]`.
fn propose_execute(b: u32, m: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `380 + m * (32 ±0)`
// Estimated: `3997 + m * (32 ±0)`
// Minimum execution time: 20_895_000 picoseconds.
Weight::from_parts(20_081_761, 3997)
// Standard Error: 57
.saturating_add(Weight::from_parts(1_982, 0).saturating_mul(b.into()))
// Standard Error: 594
.saturating_add(Weight::from_parts(32_085, 0).saturating_mul(m.into()))
.saturating_add(T::DbWeight::get().reads(4_u64))
// Measured: `202 + m * (32 ±0)`
// Estimated: `3668 + m * (32 ±0)`
// Minimum execution time: 18_642_000 picoseconds.
Weight::from_parts(17_708_609, 3668)
// Standard Error: 58
.saturating_add(Weight::from_parts(2_285, 0).saturating_mul(b.into()))
// Standard Error: 598
.saturating_add(Weight::from_parts(30_454, 0).saturating_mul(m.into()))
.saturating_add(T::DbWeight::get().reads(2_u64))
.saturating_add(Weight::from_parts(0, 32).saturating_mul(m.into()))
}
/// Storage: `Council::Members` (r:1 w:0)
/// Proof: `Council::Members` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// Storage: `Council::ProposalOf` (r:1 w:1)
/// Proof: `Council::ProposalOf` (`max_values`: None, `max_size`: None, mode: `Measured`)
/// Storage: `Council::Proposals` (r:1 w:1)
/// Proof: `Council::Proposals` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// Storage: `Council::ProposalCount` (r:1 w:1)
/// Proof: `Council::ProposalCount` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// Storage: `Council::Voting` (r:0 w:1)
/// Proof: `Council::Voting` (`max_values`: None, `max_size`: None, mode: `Measured`)
/// Storage: Council Members (r:1 w:0)
/// Proof Skipped: Council Members (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: Council ProposalOf (r:1 w:1)
/// Proof Skipped: Council ProposalOf (max_values: None, max_size: None, mode: Measured)
/// Storage: Council Proposals (r:1 w:1)
/// Proof Skipped: Council Proposals (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: Council ProposalCount (r:1 w:1)
/// Proof Skipped: Council ProposalCount (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: Council Voting (r:0 w:1)
/// Proof Skipped: Council Voting (max_values: None, max_size: None, mode: Measured)
/// 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 {
// Proof Size summary in bytes:
// Measured: `525 + m * (32 ±0) + p * (36 ±0)`
// Estimated: `3917 + m * (33 ±0) + p * (36 ±0)`
// Minimum execution time: 22_068_000 picoseconds.
Weight::from_parts(19_639_088, 3917)
// Standard Error: 104
.saturating_add(Weight::from_parts(3_896, 0).saturating_mul(b.into()))
// Standard Error: 1_095
.saturating_add(Weight::from_parts(31_634, 0).saturating_mul(m.into()))
// Standard Error: 1_081
.saturating_add(Weight::from_parts(178_702, 0).saturating_mul(p.into()))
// Measured: `492 + m * (32 ±0) + p * (36 ±0)`
// Estimated: `3884 + m * (33 ±0) + p * (36 ±0)`
// Minimum execution time: 27_067_000 picoseconds.
Weight::from_parts(25_456_964, 3884)
// Standard Error: 112
.saturating_add(Weight::from_parts(3_773, 0).saturating_mul(b.into()))
// Standard Error: 1_177
.saturating_add(Weight::from_parts(32_783, 0).saturating_mul(m.into()))
// Standard Error: 1_162
.saturating_add(Weight::from_parts(194_388, 0).saturating_mul(p.into()))
.saturating_add(T::DbWeight::get().reads(4_u64))
.saturating_add(T::DbWeight::get().writes(4_u64))
.saturating_add(Weight::from_parts(0, 33).saturating_mul(m.into()))
.saturating_add(Weight::from_parts(0, 36).saturating_mul(p.into()))
}
/// Storage: `Council::Members` (r:1 w:0)
/// Proof: `Council::Members` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// Storage: `Council::Voting` (r:1 w:1)
/// Proof: `Council::Voting` (`max_values`: None, `max_size`: None, mode: `Measured`)
/// Storage: Council Members (r:1 w:0)
/// Proof Skipped: Council Members (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: Council Voting (r:1 w:1)
/// Proof Skipped: Council Voting (max_values: None, max_size: None, mode: Measured)
/// The range of component `m` is `[5, 100]`.
fn vote(m: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `974 + m * (64 ±0)`
// Estimated: `4438 + m * (64 ±0)`
// Minimum execution time: 22_395_000 picoseconds.
Weight::from_parts(23_025_217, 4438)
// Standard Error: 842
.saturating_add(Weight::from_parts(58_102, 0).saturating_mul(m.into()))
// Measured: `941 + m * (64 ±0)`
// Estimated: `4405 + m * (64 ±0)`
// Minimum execution time: 26_055_000 picoseconds.
Weight::from_parts(27_251_907, 4405)
// Standard Error: 1_008
.saturating_add(Weight::from_parts(65_947, 0).saturating_mul(m.into()))
.saturating_add(T::DbWeight::get().reads(2_u64))
.saturating_add(T::DbWeight::get().writes(1_u64))
.saturating_add(Weight::from_parts(0, 64).saturating_mul(m.into()))
}
/// Storage: `Council::Voting` (r:1 w:1)
/// Proof: `Council::Voting` (`max_values`: None, `max_size`: None, mode: `Measured`)
/// Storage: `Council::Members` (r:1 w:0)
/// Proof: `Council::Members` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// Storage: `Council::Proposals` (r:1 w:1)
/// Proof: `Council::Proposals` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// Storage: `Council::ProposalOf` (r:0 w:1)
/// Proof: `Council::ProposalOf` (`max_values`: None, `max_size`: None, mode: `Measured`)
/// Storage: Council Voting (r:1 w:1)
/// Proof Skipped: Council Voting (max_values: None, max_size: None, mode: Measured)
/// Storage: Council Members (r:1 w:0)
/// Proof Skipped: Council Members (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: Council Proposals (r:1 w:1)
/// Proof Skipped: Council Proposals (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: Council ProposalOf (r:0 w:1)
/// Proof Skipped: Council ProposalOf (max_values: None, max_size: None, mode: Measured)
/// 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 {
// Proof Size summary in bytes:
// Measured: `563 + m * (64 ±0) + p * (36 ±0)`
// Estimated: `4008 + m * (65 ±0) + p * (36 ±0)`
// Minimum execution time: 24_179_000 picoseconds.
Weight::from_parts(23_846_394, 4008)
// Standard Error: 1_052
.saturating_add(Weight::from_parts(40_418, 0).saturating_mul(m.into()))
// Standard Error: 1_026
.saturating_add(Weight::from_parts(171_653, 0).saturating_mul(p.into()))
// Measured: `530 + m * (64 ±0) + p * (36 ±0)`
// Estimated: `3975 + m * (65 ±0) + p * (36 ±0)`
// Minimum execution time: 28_363_000 picoseconds.
Weight::from_parts(28_733_464, 3975)
// Standard Error: 1_275
.saturating_add(Weight::from_parts(43_236, 0).saturating_mul(m.into()))
// Standard Error: 1_244
.saturating_add(Weight::from_parts(180_187, 0).saturating_mul(p.into()))
.saturating_add(T::DbWeight::get().reads(3_u64))
.saturating_add(T::DbWeight::get().writes(3_u64))
.saturating_add(Weight::from_parts(0, 65).saturating_mul(m.into()))
.saturating_add(Weight::from_parts(0, 36).saturating_mul(p.into()))
}
/// Storage: `Council::Voting` (r:1 w:1)
/// Proof: `Council::Voting` (`max_values`: None, `max_size`: None, mode: `Measured`)
/// Storage: `Council::Members` (r:1 w:0)
/// Proof: `Council::Members` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// Storage: `Council::ProposalOf` (r:1 w:1)
/// Proof: `Council::ProposalOf` (`max_values`: None, `max_size`: None, mode: `Measured`)
/// Storage: `SafeMode::EnteredUntil` (r:1 w:0)
/// Proof: `SafeMode::EnteredUntil` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
/// Storage: `TxPause::PausedCalls` (r:1 w:0)
/// Proof: `TxPause::PausedCalls` (`max_values`: None, `max_size`: Some(532), added: 3007, mode: `MaxEncodedLen`)
/// Storage: `Council::Proposals` (r:1 w:1)
/// Proof: `Council::Proposals` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// Storage: Council Voting (r:1 w:1)
/// Proof Skipped: Council Voting (max_values: None, max_size: None, mode: Measured)
/// Storage: Council Members (r:1 w:0)
/// Proof Skipped: Council Members (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: Council ProposalOf (r:1 w:1)
/// Proof Skipped: Council ProposalOf (max_values: None, max_size: None, mode: Measured)
/// Storage: Council Proposals (r:1 w:1)
/// Proof Skipped: Council Proposals (max_values: Some(1), max_size: None, mode: Measured)
/// 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 {
// Proof Size summary in bytes:
// Measured: `1010 + b * (1 ±0) + m * (64 ±0) + p * (40 ±0)`
// Estimated: `4327 + b * (1 ±0) + m * (66 ±0) + p * (40 ±0)`
// Minimum execution time: 42_129_000 picoseconds.
Weight::from_parts(40_808_957, 4327)
// Standard Error: 134
.saturating_add(Weight::from_parts(3_579, 0).saturating_mul(b.into()))
// Standard Error: 1_425
.saturating_add(Weight::from_parts(37_166, 0).saturating_mul(m.into()))
// Standard Error: 1_389
.saturating_add(Weight::from_parts(200_986, 0).saturating_mul(p.into()))
.saturating_add(T::DbWeight::get().reads(6_u64))
// Measured: `832 + b * (1 ±0) + m * (64 ±0) + p * (40 ±0)`
// Estimated: `4149 + b * (1 ±0) + m * (66 ±0) + p * (40 ±0)`
// Minimum execution time: 40_391_000 picoseconds.
Weight::from_parts(42_695_215, 4149)
// Standard Error: 167
.saturating_add(Weight::from_parts(3_622, 0).saturating_mul(b.into()))
// Standard Error: 1_772
.saturating_add(Weight::from_parts(33_830, 0).saturating_mul(m.into()))
// Standard Error: 1_727
.saturating_add(Weight::from_parts(205_374, 0).saturating_mul(p.into()))
.saturating_add(T::DbWeight::get().reads(4_u64))
.saturating_add(T::DbWeight::get().writes(3_u64))
.saturating_add(Weight::from_parts(0, 1).saturating_mul(b.into()))
.saturating_add(Weight::from_parts(0, 66).saturating_mul(m.into()))
.saturating_add(Weight::from_parts(0, 40).saturating_mul(p.into()))
}
/// Storage: `Council::Voting` (r:1 w:1)
/// Proof: `Council::Voting` (`max_values`: None, `max_size`: None, mode: `Measured`)
/// Storage: `Council::Members` (r:1 w:0)
/// Proof: `Council::Members` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// Storage: `Council::Prime` (r:1 w:0)
/// Proof: `Council::Prime` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// Storage: `Council::Proposals` (r:1 w:1)
/// Proof: `Council::Proposals` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// Storage: `Council::ProposalOf` (r:0 w:1)
/// Proof: `Council::ProposalOf` (`max_values`: None, `max_size`: None, mode: `Measured`)
/// Storage: Council Voting (r:1 w:1)
/// Proof Skipped: Council Voting (max_values: None, max_size: None, mode: Measured)
/// Storage: Council Members (r:1 w:0)
/// Proof Skipped: Council Members (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: Council Prime (r:1 w:0)
/// Proof Skipped: Council Prime (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: Council Proposals (r:1 w:1)
/// Proof Skipped: Council Proposals (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: Council ProposalOf (r:0 w:1)
/// Proof Skipped: Council ProposalOf (max_values: None, max_size: None, mode: Measured)
/// The range of component `m` is `[4, 100]`.
/// The range of component `p` is `[1, 100]`.
fn close_disapproved(m: u32, p: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `583 + m * (64 ±0) + p * (36 ±0)`
// Estimated: `4028 + m * (65 ±0) + p * (36 ±0)`
// Minimum execution time: 26_385_000 picoseconds.
Weight::from_parts(25_713_839, 4028)
// Standard Error: 1_254
.saturating_add(Weight::from_parts(36_206, 0).saturating_mul(m.into()))
// Standard Error: 1_223
.saturating_add(Weight::from_parts(195_114, 0).saturating_mul(p.into()))
// Measured: `550 + m * (64 ±0) + p * (36 ±0)`
// Estimated: `3995 + m * (65 ±0) + p * (36 ±0)`
// Minimum execution time: 31_368_000 picoseconds.
Weight::from_parts(32_141_835, 3995)
// Standard Error: 1_451
.saturating_add(Weight::from_parts(36_372, 0).saturating_mul(m.into()))
// Standard Error: 1_415
.saturating_add(Weight::from_parts(210_635, 0).saturating_mul(p.into()))
.saturating_add(T::DbWeight::get().reads(4_u64))
.saturating_add(T::DbWeight::get().writes(3_u64))
.saturating_add(Weight::from_parts(0, 65).saturating_mul(m.into()))
.saturating_add(Weight::from_parts(0, 36).saturating_mul(p.into()))
}
/// Storage: `Council::Voting` (r:1 w:1)
/// Proof: `Council::Voting` (`max_values`: None, `max_size`: None, mode: `Measured`)
/// Storage: `Council::Members` (r:1 w:0)
/// Proof: `Council::Members` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// Storage: `Council::Prime` (r:1 w:0)
/// Proof: `Council::Prime` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// Storage: `Council::ProposalOf` (r:1 w:1)
/// Proof: `Council::ProposalOf` (`max_values`: None, `max_size`: None, mode: `Measured`)
/// Storage: `SafeMode::EnteredUntil` (r:1 w:0)
/// Proof: `SafeMode::EnteredUntil` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
/// Storage: `TxPause::PausedCalls` (r:1 w:0)
/// Proof: `TxPause::PausedCalls` (`max_values`: None, `max_size`: Some(532), added: 3007, mode: `MaxEncodedLen`)
/// Storage: `Council::Proposals` (r:1 w:1)
/// Proof: `Council::Proposals` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// Storage: Council Voting (r:1 w:1)
/// Proof Skipped: Council Voting (max_values: None, max_size: None, mode: Measured)
/// Storage: Council Members (r:1 w:0)
/// Proof Skipped: Council Members (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: Council Prime (r:1 w:0)
/// Proof Skipped: Council Prime (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: Council ProposalOf (r:1 w:1)
/// Proof Skipped: Council ProposalOf (max_values: None, max_size: None, mode: Measured)
/// Storage: Council Proposals (r:1 w:1)
/// Proof Skipped: Council Proposals (max_values: Some(1), max_size: None, mode: Measured)
/// 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 {
// Proof Size summary in bytes:
// Measured: `1030 + b * (1 ±0) + m * (64 ±0) + p * (40 ±0)`
// Estimated: `4347 + b * (1 ±0) + m * (66 ±0) + p * (40 ±0)`
// Minimum execution time: 42_903_000 picoseconds.
Weight::from_parts(43_152_907, 4347)
// Standard Error: 146
.saturating_add(Weight::from_parts(3_459, 0).saturating_mul(b.into()))
// Standard Error: 1_548
.saturating_add(Weight::from_parts(35_321, 0).saturating_mul(m.into()))
// Standard Error: 1_509
.saturating_add(Weight::from_parts(202_541, 0).saturating_mul(p.into()))
.saturating_add(T::DbWeight::get().reads(7_u64))
// Measured: `852 + b * (1 ±0) + m * (64 ±0) + p * (40 ±0)`
// Estimated: `4169 + b * (1 ±0) + m * (66 ±0) + p * (40 ±0)`
// Minimum execution time: 43_271_000 picoseconds.
Weight::from_parts(45_495_648, 4169)
// Standard Error: 174
.saturating_add(Weight::from_parts(3_034, 0).saturating_mul(b.into()))
// Standard Error: 1_840
.saturating_add(Weight::from_parts(42_209, 0).saturating_mul(m.into()))
// Standard Error: 1_793
.saturating_add(Weight::from_parts(207_525, 0).saturating_mul(p.into()))
.saturating_add(T::DbWeight::get().reads(5_u64))
.saturating_add(T::DbWeight::get().writes(3_u64))
.saturating_add(Weight::from_parts(0, 1).saturating_mul(b.into()))
.saturating_add(Weight::from_parts(0, 66).saturating_mul(m.into()))
.saturating_add(Weight::from_parts(0, 40).saturating_mul(p.into()))
}
/// Storage: `Council::Proposals` (r:1 w:1)
/// Proof: `Council::Proposals` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// Storage: `Council::Voting` (r:0 w:1)
/// Proof: `Council::Voting` (`max_values`: None, `max_size`: None, mode: `Measured`)
/// Storage: `Council::ProposalOf` (r:0 w:1)
/// Proof: `Council::ProposalOf` (`max_values`: None, `max_size`: None, mode: `Measured`)
/// Storage: Council Proposals (r:1 w:1)
/// Proof Skipped: Council Proposals (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: Council Voting (r:0 w:1)
/// Proof Skipped: Council Voting (max_values: None, max_size: None, mode: Measured)
/// Storage: Council ProposalOf (r:0 w:1)
/// Proof Skipped: Council ProposalOf (max_values: None, max_size: None, mode: Measured)
/// The range of component `p` is `[1, 100]`.
fn disapprove_proposal(p: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `392 + p * (32 ±0)`
// Estimated: `1877 + p * (32 ±0)`
// Minimum execution time: 12_656_000 picoseconds.
Weight::from_parts(14_032_951, 1877)
// Standard Error: 1_025
.saturating_add(Weight::from_parts(159_143, 0).saturating_mul(p.into()))
// Measured: `359 + p * (32 ±0)`
// Estimated: `1844 + p * (32 ±0)`
// Minimum execution time: 15_170_000 picoseconds.
Weight::from_parts(17_567_243, 1844)
// Standard Error: 1_430
.saturating_add(Weight::from_parts(169_040, 0).saturating_mul(p.into()))
.saturating_add(T::DbWeight::get().reads(1_u64))
.saturating_add(T::DbWeight::get().writes(3_u64))
.saturating_add(Weight::from_parts(0, 32).saturating_mul(p.into()))
}
}
// For backwards compatibility and tests.
// For backwards compatibility and tests
impl WeightInfo for () {
/// Storage: `Council::Members` (r:1 w:1)
/// Proof: `Council::Members` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// Storage: `Council::Proposals` (r:1 w:0)
/// Proof: `Council::Proposals` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// Storage: `Council::Voting` (r:100 w:100)
/// Proof: `Council::Voting` (`max_values`: None, `max_size`: None, mode: `Measured`)
/// Storage: `Council::Prime` (r:0 w:1)
/// Proof: `Council::Prime` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// Storage: Council Members (r:1 w:1)
/// Proof Skipped: Council Members (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: Council Proposals (r:1 w:0)
/// Proof Skipped: Council Proposals (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: Council Voting (r:100 w:100)
/// Proof Skipped: Council Voting (max_values: None, max_size: None, mode: Measured)
/// Storage: Council Prime (r:0 w:1)
/// Proof Skipped: Council Prime (max_values: Some(1), max_size: None, mode: Measured)
/// 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 {
// Proof Size summary in bytes:
// Measured: `0 + m * (3232 ±0) + p * (3190 ±0)`
// Estimated: `15894 + m * (1967 ±23) + p * (4332 ±23)`
// Minimum execution time: 15_559_000 picoseconds.
Weight::from_parts(15_870_000, 15894)
// Standard Error: 54_310
.saturating_add(Weight::from_parts(4_117_753, 0).saturating_mul(m.into()))
// Standard Error: 54_310
.saturating_add(Weight::from_parts(7_677_627, 0).saturating_mul(p.into()))
// Estimated: `15861 + m * (1967 ±24) + p * (4332 ±24)`
// Minimum execution time: 17_506_000 picoseconds.
Weight::from_parts(17_767_000, 15861)
// Standard Error: 60_220
.saturating_add(Weight::from_parts(4_374_805, 0).saturating_mul(m.into()))
// Standard Error: 60_220
.saturating_add(Weight::from_parts(8_398_316, 0).saturating_mul(p.into()))
.saturating_add(RocksDbWeight::get().reads(2_u64))
.saturating_add(RocksDbWeight::get().reads((1_u64).saturating_mul(p.into())))
.saturating_add(RocksDbWeight::get().writes(2_u64))
@@ -356,232 +341,216 @@ impl WeightInfo for () {
.saturating_add(Weight::from_parts(0, 1967).saturating_mul(m.into()))
.saturating_add(Weight::from_parts(0, 4332).saturating_mul(p.into()))
}
/// Storage: `Council::Members` (r:1 w:0)
/// Proof: `Council::Members` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// Storage: `SafeMode::EnteredUntil` (r:1 w:0)
/// Proof: `SafeMode::EnteredUntil` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
/// Storage: `TxPause::PausedCalls` (r:1 w:0)
/// Proof: `TxPause::PausedCalls` (`max_values`: None, `max_size`: Some(532), added: 3007, mode: `MaxEncodedLen`)
/// Storage: Council Members (r:1 w:0)
/// Proof Skipped: Council Members (max_values: Some(1), max_size: None, mode: Measured)
/// The range of component `b` is `[2, 1024]`.
/// The range of component `m` is `[1, 100]`.
fn execute(b: u32, m: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `380 + m * (32 ±0)`
// Estimated: `3997 + m * (32 ±0)`
// Minimum execution time: 19_024_000 picoseconds.
Weight::from_parts(18_153_872, 3997)
// Standard Error: 46
.saturating_add(Weight::from_parts(1_933, 0).saturating_mul(b.into()))
// Standard Error: 478
.saturating_add(Weight::from_parts(18_872, 0).saturating_mul(m.into()))
.saturating_add(RocksDbWeight::get().reads(3_u64))
// Measured: `202 + m * (32 ±0)`
// Estimated: `1688 + m * (32 ±0)`
// Minimum execution time: 16_203_000 picoseconds.
Weight::from_parts(15_348_267, 1688)
// Standard Error: 37
.saturating_add(Weight::from_parts(1_766, 0).saturating_mul(b.into()))
// Standard Error: 382
.saturating_add(Weight::from_parts(15_765, 0).saturating_mul(m.into()))
.saturating_add(RocksDbWeight::get().reads(1_u64))
.saturating_add(Weight::from_parts(0, 32).saturating_mul(m.into()))
}
/// Storage: `Council::Members` (r:1 w:0)
/// Proof: `Council::Members` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// Storage: `Council::ProposalOf` (r:1 w:0)
/// Proof: `Council::ProposalOf` (`max_values`: None, `max_size`: None, mode: `Measured`)
/// Storage: `SafeMode::EnteredUntil` (r:1 w:0)
/// Proof: `SafeMode::EnteredUntil` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
/// Storage: `TxPause::PausedCalls` (r:1 w:0)
/// Proof: `TxPause::PausedCalls` (`max_values`: None, `max_size`: Some(532), added: 3007, mode: `MaxEncodedLen`)
/// Storage: Council Members (r:1 w:0)
/// Proof Skipped: Council Members (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: Council ProposalOf (r:1 w:0)
/// Proof Skipped: Council ProposalOf (max_values: None, max_size: None, mode: Measured)
/// The range of component `b` is `[2, 1024]`.
/// The range of component `m` is `[1, 100]`.
fn propose_execute(b: u32, m: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `380 + m * (32 ±0)`
// Estimated: `3997 + m * (32 ±0)`
// Minimum execution time: 20_895_000 picoseconds.
Weight::from_parts(20_081_761, 3997)
// Standard Error: 57
.saturating_add(Weight::from_parts(1_982, 0).saturating_mul(b.into()))
// Standard Error: 594
.saturating_add(Weight::from_parts(32_085, 0).saturating_mul(m.into()))
.saturating_add(RocksDbWeight::get().reads(4_u64))
// Measured: `202 + m * (32 ±0)`
// Estimated: `3668 + m * (32 ±0)`
// Minimum execution time: 18_642_000 picoseconds.
Weight::from_parts(17_708_609, 3668)
// Standard Error: 58
.saturating_add(Weight::from_parts(2_285, 0).saturating_mul(b.into()))
// Standard Error: 598
.saturating_add(Weight::from_parts(30_454, 0).saturating_mul(m.into()))
.saturating_add(RocksDbWeight::get().reads(2_u64))
.saturating_add(Weight::from_parts(0, 32).saturating_mul(m.into()))
}
/// Storage: `Council::Members` (r:1 w:0)
/// Proof: `Council::Members` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// Storage: `Council::ProposalOf` (r:1 w:1)
/// Proof: `Council::ProposalOf` (`max_values`: None, `max_size`: None, mode: `Measured`)
/// Storage: `Council::Proposals` (r:1 w:1)
/// Proof: `Council::Proposals` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// Storage: `Council::ProposalCount` (r:1 w:1)
/// Proof: `Council::ProposalCount` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// Storage: `Council::Voting` (r:0 w:1)
/// Proof: `Council::Voting` (`max_values`: None, `max_size`: None, mode: `Measured`)
/// Storage: Council Members (r:1 w:0)
/// Proof Skipped: Council Members (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: Council ProposalOf (r:1 w:1)
/// Proof Skipped: Council ProposalOf (max_values: None, max_size: None, mode: Measured)
/// Storage: Council Proposals (r:1 w:1)
/// Proof Skipped: Council Proposals (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: Council ProposalCount (r:1 w:1)
/// Proof Skipped: Council ProposalCount (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: Council Voting (r:0 w:1)
/// Proof Skipped: Council Voting (max_values: None, max_size: None, mode: Measured)
/// 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 {
// Proof Size summary in bytes:
// Measured: `525 + m * (32 ±0) + p * (36 ±0)`
// Estimated: `3917 + m * (33 ±0) + p * (36 ±0)`
// Minimum execution time: 22_068_000 picoseconds.
Weight::from_parts(19_639_088, 3917)
// Standard Error: 104
.saturating_add(Weight::from_parts(3_896, 0).saturating_mul(b.into()))
// Standard Error: 1_095
.saturating_add(Weight::from_parts(31_634, 0).saturating_mul(m.into()))
// Standard Error: 1_081
.saturating_add(Weight::from_parts(178_702, 0).saturating_mul(p.into()))
// Measured: `492 + m * (32 ±0) + p * (36 ±0)`
// Estimated: `3884 + m * (33 ±0) + p * (36 ±0)`
// Minimum execution time: 27_067_000 picoseconds.
Weight::from_parts(25_456_964, 3884)
// Standard Error: 112
.saturating_add(Weight::from_parts(3_773, 0).saturating_mul(b.into()))
// Standard Error: 1_177
.saturating_add(Weight::from_parts(32_783, 0).saturating_mul(m.into()))
// Standard Error: 1_162
.saturating_add(Weight::from_parts(194_388, 0).saturating_mul(p.into()))
.saturating_add(RocksDbWeight::get().reads(4_u64))
.saturating_add(RocksDbWeight::get().writes(4_u64))
.saturating_add(Weight::from_parts(0, 33).saturating_mul(m.into()))
.saturating_add(Weight::from_parts(0, 36).saturating_mul(p.into()))
}
/// Storage: `Council::Members` (r:1 w:0)
/// Proof: `Council::Members` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// Storage: `Council::Voting` (r:1 w:1)
/// Proof: `Council::Voting` (`max_values`: None, `max_size`: None, mode: `Measured`)
/// Storage: Council Members (r:1 w:0)
/// Proof Skipped: Council Members (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: Council Voting (r:1 w:1)
/// Proof Skipped: Council Voting (max_values: None, max_size: None, mode: Measured)
/// The range of component `m` is `[5, 100]`.
fn vote(m: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `974 + m * (64 ±0)`
// Estimated: `4438 + m * (64 ±0)`
// Minimum execution time: 22_395_000 picoseconds.
Weight::from_parts(23_025_217, 4438)
// Standard Error: 842
.saturating_add(Weight::from_parts(58_102, 0).saturating_mul(m.into()))
// Measured: `941 + m * (64 ±0)`
// Estimated: `4405 + m * (64 ±0)`
// Minimum execution time: 26_055_000 picoseconds.
Weight::from_parts(27_251_907, 4405)
// Standard Error: 1_008
.saturating_add(Weight::from_parts(65_947, 0).saturating_mul(m.into()))
.saturating_add(RocksDbWeight::get().reads(2_u64))
.saturating_add(RocksDbWeight::get().writes(1_u64))
.saturating_add(Weight::from_parts(0, 64).saturating_mul(m.into()))
}
/// Storage: `Council::Voting` (r:1 w:1)
/// Proof: `Council::Voting` (`max_values`: None, `max_size`: None, mode: `Measured`)
/// Storage: `Council::Members` (r:1 w:0)
/// Proof: `Council::Members` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// Storage: `Council::Proposals` (r:1 w:1)
/// Proof: `Council::Proposals` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// Storage: `Council::ProposalOf` (r:0 w:1)
/// Proof: `Council::ProposalOf` (`max_values`: None, `max_size`: None, mode: `Measured`)
/// Storage: Council Voting (r:1 w:1)
/// Proof Skipped: Council Voting (max_values: None, max_size: None, mode: Measured)
/// Storage: Council Members (r:1 w:0)
/// Proof Skipped: Council Members (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: Council Proposals (r:1 w:1)
/// Proof Skipped: Council Proposals (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: Council ProposalOf (r:0 w:1)
/// Proof Skipped: Council ProposalOf (max_values: None, max_size: None, mode: Measured)
/// 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 {
// Proof Size summary in bytes:
// Measured: `563 + m * (64 ±0) + p * (36 ±0)`
// Estimated: `4008 + m * (65 ±0) + p * (36 ±0)`
// Minimum execution time: 24_179_000 picoseconds.
Weight::from_parts(23_846_394, 4008)
// Standard Error: 1_052
.saturating_add(Weight::from_parts(40_418, 0).saturating_mul(m.into()))
// Standard Error: 1_026
.saturating_add(Weight::from_parts(171_653, 0).saturating_mul(p.into()))
// Measured: `530 + m * (64 ±0) + p * (36 ±0)`
// Estimated: `3975 + m * (65 ±0) + p * (36 ±0)`
// Minimum execution time: 28_363_000 picoseconds.
Weight::from_parts(28_733_464, 3975)
// Standard Error: 1_275
.saturating_add(Weight::from_parts(43_236, 0).saturating_mul(m.into()))
// Standard Error: 1_244
.saturating_add(Weight::from_parts(180_187, 0).saturating_mul(p.into()))
.saturating_add(RocksDbWeight::get().reads(3_u64))
.saturating_add(RocksDbWeight::get().writes(3_u64))
.saturating_add(Weight::from_parts(0, 65).saturating_mul(m.into()))
.saturating_add(Weight::from_parts(0, 36).saturating_mul(p.into()))
}
/// Storage: `Council::Voting` (r:1 w:1)
/// Proof: `Council::Voting` (`max_values`: None, `max_size`: None, mode: `Measured`)
/// Storage: `Council::Members` (r:1 w:0)
/// Proof: `Council::Members` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// Storage: `Council::ProposalOf` (r:1 w:1)
/// Proof: `Council::ProposalOf` (`max_values`: None, `max_size`: None, mode: `Measured`)
/// Storage: `SafeMode::EnteredUntil` (r:1 w:0)
/// Proof: `SafeMode::EnteredUntil` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
/// Storage: `TxPause::PausedCalls` (r:1 w:0)
/// Proof: `TxPause::PausedCalls` (`max_values`: None, `max_size`: Some(532), added: 3007, mode: `MaxEncodedLen`)
/// Storage: `Council::Proposals` (r:1 w:1)
/// Proof: `Council::Proposals` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// Storage: Council Voting (r:1 w:1)
/// Proof Skipped: Council Voting (max_values: None, max_size: None, mode: Measured)
/// Storage: Council Members (r:1 w:0)
/// Proof Skipped: Council Members (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: Council ProposalOf (r:1 w:1)
/// Proof Skipped: Council ProposalOf (max_values: None, max_size: None, mode: Measured)
/// Storage: Council Proposals (r:1 w:1)
/// Proof Skipped: Council Proposals (max_values: Some(1), max_size: None, mode: Measured)
/// 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 {
// Proof Size summary in bytes:
// Measured: `1010 + b * (1 ±0) + m * (64 ±0) + p * (40 ±0)`
// Estimated: `4327 + b * (1 ±0) + m * (66 ±0) + p * (40 ±0)`
// Minimum execution time: 42_129_000 picoseconds.
Weight::from_parts(40_808_957, 4327)
// Standard Error: 134
.saturating_add(Weight::from_parts(3_579, 0).saturating_mul(b.into()))
// Standard Error: 1_425
.saturating_add(Weight::from_parts(37_166, 0).saturating_mul(m.into()))
// Standard Error: 1_389
.saturating_add(Weight::from_parts(200_986, 0).saturating_mul(p.into()))
.saturating_add(RocksDbWeight::get().reads(6_u64))
// Measured: `832 + b * (1 ±0) + m * (64 ±0) + p * (40 ±0)`
// Estimated: `4149 + b * (1 ±0) + m * (66 ±0) + p * (40 ±0)`
// Minimum execution time: 40_391_000 picoseconds.
Weight::from_parts(42_695_215, 4149)
// Standard Error: 167
.saturating_add(Weight::from_parts(3_622, 0).saturating_mul(b.into()))
// Standard Error: 1_772
.saturating_add(Weight::from_parts(33_830, 0).saturating_mul(m.into()))
// Standard Error: 1_727
.saturating_add(Weight::from_parts(205_374, 0).saturating_mul(p.into()))
.saturating_add(RocksDbWeight::get().reads(4_u64))
.saturating_add(RocksDbWeight::get().writes(3_u64))
.saturating_add(Weight::from_parts(0, 1).saturating_mul(b.into()))
.saturating_add(Weight::from_parts(0, 66).saturating_mul(m.into()))
.saturating_add(Weight::from_parts(0, 40).saturating_mul(p.into()))
}
/// Storage: `Council::Voting` (r:1 w:1)
/// Proof: `Council::Voting` (`max_values`: None, `max_size`: None, mode: `Measured`)
/// Storage: `Council::Members` (r:1 w:0)
/// Proof: `Council::Members` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// Storage: `Council::Prime` (r:1 w:0)
/// Proof: `Council::Prime` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// Storage: `Council::Proposals` (r:1 w:1)
/// Proof: `Council::Proposals` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// Storage: `Council::ProposalOf` (r:0 w:1)
/// Proof: `Council::ProposalOf` (`max_values`: None, `max_size`: None, mode: `Measured`)
/// Storage: Council Voting (r:1 w:1)
/// Proof Skipped: Council Voting (max_values: None, max_size: None, mode: Measured)
/// Storage: Council Members (r:1 w:0)
/// Proof Skipped: Council Members (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: Council Prime (r:1 w:0)
/// Proof Skipped: Council Prime (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: Council Proposals (r:1 w:1)
/// Proof Skipped: Council Proposals (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: Council ProposalOf (r:0 w:1)
/// Proof Skipped: Council ProposalOf (max_values: None, max_size: None, mode: Measured)
/// The range of component `m` is `[4, 100]`.
/// The range of component `p` is `[1, 100]`.
fn close_disapproved(m: u32, p: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `583 + m * (64 ±0) + p * (36 ±0)`
// Estimated: `4028 + m * (65 ±0) + p * (36 ±0)`
// Minimum execution time: 26_385_000 picoseconds.
Weight::from_parts(25_713_839, 4028)
// Standard Error: 1_254
.saturating_add(Weight::from_parts(36_206, 0).saturating_mul(m.into()))
// Standard Error: 1_223
.saturating_add(Weight::from_parts(195_114, 0).saturating_mul(p.into()))
// Measured: `550 + m * (64 ±0) + p * (36 ±0)`
// Estimated: `3995 + m * (65 ±0) + p * (36 ±0)`
// Minimum execution time: 31_368_000 picoseconds.
Weight::from_parts(32_141_835, 3995)
// Standard Error: 1_451
.saturating_add(Weight::from_parts(36_372, 0).saturating_mul(m.into()))
// Standard Error: 1_415
.saturating_add(Weight::from_parts(210_635, 0).saturating_mul(p.into()))
.saturating_add(RocksDbWeight::get().reads(4_u64))
.saturating_add(RocksDbWeight::get().writes(3_u64))
.saturating_add(Weight::from_parts(0, 65).saturating_mul(m.into()))
.saturating_add(Weight::from_parts(0, 36).saturating_mul(p.into()))
}
/// Storage: `Council::Voting` (r:1 w:1)
/// Proof: `Council::Voting` (`max_values`: None, `max_size`: None, mode: `Measured`)
/// Storage: `Council::Members` (r:1 w:0)
/// Proof: `Council::Members` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// Storage: `Council::Prime` (r:1 w:0)
/// Proof: `Council::Prime` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// Storage: `Council::ProposalOf` (r:1 w:1)
/// Proof: `Council::ProposalOf` (`max_values`: None, `max_size`: None, mode: `Measured`)
/// Storage: `SafeMode::EnteredUntil` (r:1 w:0)
/// Proof: `SafeMode::EnteredUntil` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
/// Storage: `TxPause::PausedCalls` (r:1 w:0)
/// Proof: `TxPause::PausedCalls` (`max_values`: None, `max_size`: Some(532), added: 3007, mode: `MaxEncodedLen`)
/// Storage: `Council::Proposals` (r:1 w:1)
/// Proof: `Council::Proposals` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// Storage: Council Voting (r:1 w:1)
/// Proof Skipped: Council Voting (max_values: None, max_size: None, mode: Measured)
/// Storage: Council Members (r:1 w:0)
/// Proof Skipped: Council Members (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: Council Prime (r:1 w:0)
/// Proof Skipped: Council Prime (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: Council ProposalOf (r:1 w:1)
/// Proof Skipped: Council ProposalOf (max_values: None, max_size: None, mode: Measured)
/// Storage: Council Proposals (r:1 w:1)
/// Proof Skipped: Council Proposals (max_values: Some(1), max_size: None, mode: Measured)
/// 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 {
// Proof Size summary in bytes:
// Measured: `1030 + b * (1 ±0) + m * (64 ±0) + p * (40 ±0)`
// Estimated: `4347 + b * (1 ±0) + m * (66 ±0) + p * (40 ±0)`
// Minimum execution time: 42_903_000 picoseconds.
Weight::from_parts(43_152_907, 4347)
// Standard Error: 146
.saturating_add(Weight::from_parts(3_459, 0).saturating_mul(b.into()))
// Standard Error: 1_548
.saturating_add(Weight::from_parts(35_321, 0).saturating_mul(m.into()))
// Standard Error: 1_509
.saturating_add(Weight::from_parts(202_541, 0).saturating_mul(p.into()))
.saturating_add(RocksDbWeight::get().reads(7_u64))
// Measured: `852 + b * (1 ±0) + m * (64 ±0) + p * (40 ±0)`
// Estimated: `4169 + b * (1 ±0) + m * (66 ±0) + p * (40 ±0)`
// Minimum execution time: 43_271_000 picoseconds.
Weight::from_parts(45_495_648, 4169)
// Standard Error: 174
.saturating_add(Weight::from_parts(3_034, 0).saturating_mul(b.into()))
// Standard Error: 1_840
.saturating_add(Weight::from_parts(42_209, 0).saturating_mul(m.into()))
// Standard Error: 1_793
.saturating_add(Weight::from_parts(207_525, 0).saturating_mul(p.into()))
.saturating_add(RocksDbWeight::get().reads(5_u64))
.saturating_add(RocksDbWeight::get().writes(3_u64))
.saturating_add(Weight::from_parts(0, 1).saturating_mul(b.into()))
.saturating_add(Weight::from_parts(0, 66).saturating_mul(m.into()))
.saturating_add(Weight::from_parts(0, 40).saturating_mul(p.into()))
}
/// Storage: `Council::Proposals` (r:1 w:1)
/// Proof: `Council::Proposals` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// Storage: `Council::Voting` (r:0 w:1)
/// Proof: `Council::Voting` (`max_values`: None, `max_size`: None, mode: `Measured`)
/// Storage: `Council::ProposalOf` (r:0 w:1)
/// Proof: `Council::ProposalOf` (`max_values`: None, `max_size`: None, mode: `Measured`)
/// Storage: Council Proposals (r:1 w:1)
/// Proof Skipped: Council Proposals (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: Council Voting (r:0 w:1)
/// Proof Skipped: Council Voting (max_values: None, max_size: None, mode: Measured)
/// Storage: Council ProposalOf (r:0 w:1)
/// Proof Skipped: Council ProposalOf (max_values: None, max_size: None, mode: Measured)
/// The range of component `p` is `[1, 100]`.
fn disapprove_proposal(p: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `392 + p * (32 ±0)`
// Estimated: `1877 + p * (32 ±0)`
// Minimum execution time: 12_656_000 picoseconds.
Weight::from_parts(14_032_951, 1877)
// Standard Error: 1_025
.saturating_add(Weight::from_parts(159_143, 0).saturating_mul(p.into()))
// Measured: `359 + p * (32 ±0)`
// Estimated: `1844 + p * (32 ±0)`
// Minimum execution time: 15_170_000 picoseconds.
Weight::from_parts(17_567_243, 1844)
// Standard Error: 1_430
.saturating_add(Weight::from_parts(169_040, 0).saturating_mul(p.into()))
.saturating_add(RocksDbWeight::get().reads(1_u64))
.saturating_add(RocksDbWeight::get().writes(3_u64))
.saturating_add(Weight::from_parts(0, 32).saturating_mul(p.into()))
+27 -238
View File
File diff suppressed because it is too large Load Diff
+193 -212
View File
@@ -15,16 +15,16 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//! Autogenerated weights for `pallet_conviction_voting`
//! Autogenerated weights for pallet_conviction_voting
//!
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0
//! DATE: 2024-03-01, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
//! DATE: 2023-06-16, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! WORST CASE MAP SIZE: `1000000`
//! HOSTNAME: `runner-bn-ce5rx-project-674-concurrent-0`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz`
//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("dev")`, DB CACHE: `1024`
//! HOSTNAME: `runner-e8ezs4ez-project-145-concurrent-0`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz`
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024
// Executed Command:
// ./target/production/substrate-node
// ./target/production/substrate
// benchmark
// pallet
// --chain=dev
@@ -35,11 +35,12 @@
// --no-median-slopes
// --no-min-squares
// --extrinsic=*
// --execution=wasm
// --wasm-execution=compiled
// --heap-pages=4096
// --output=./substrate/frame/conviction-voting/src/weights.rs
// --header=./substrate/HEADER-APACHE2
// --template=./substrate/.maintain/frame-weight-template.hbs
// --output=./frame/conviction-voting/src/weights.rs
// --header=./HEADER-APACHE2
// --template=./.maintain/frame-weight-template.hbs
#![cfg_attr(rustfmt, rustfmt_skip)]
#![allow(unused_parens)]
@@ -49,7 +50,7 @@
use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}};
use core::marker::PhantomData;
/// Weight functions needed for `pallet_conviction_voting`.
/// Weight functions needed for pallet_conviction_voting.
pub trait WeightInfo {
fn vote_new() -> Weight;
fn vote_existing() -> Weight;
@@ -60,300 +61,280 @@ pub trait WeightInfo {
fn unlock() -> Weight;
}
/// Weights for `pallet_conviction_voting` using the Substrate node and recommended hardware.
/// Weights for pallet_conviction_voting using the Substrate node and recommended hardware.
pub struct SubstrateWeight<T>(PhantomData<T>);
impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
/// Storage: `Referenda::ReferendumInfoFor` (r:1 w:1)
/// Proof: `Referenda::ReferendumInfoFor` (`max_values`: None, `max_size`: Some(366), added: 2841, mode: `MaxEncodedLen`)
/// Storage: `ConvictionVoting::VotingFor` (r:1 w:1)
/// Proof: `ConvictionVoting::VotingFor` (`max_values`: None, `max_size`: Some(27241), added: 29716, mode: `MaxEncodedLen`)
/// Storage: `ConvictionVoting::ClassLocksFor` (r:1 w:1)
/// Proof: `ConvictionVoting::ClassLocksFor` (`max_values`: None, `max_size`: Some(59), added: 2534, mode: `MaxEncodedLen`)
/// Storage: `Balances::Locks` (r:1 w:1)
/// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1299), added: 3774, mode: `MaxEncodedLen`)
/// Storage: `Balances::Freezes` (r:1 w:0)
/// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(67), added: 2542, mode: `MaxEncodedLen`)
/// Storage: `Scheduler::Agenda` (r:2 w:2)
/// Proof: `Scheduler::Agenda` (`max_values`: None, `max_size`: Some(107022), added: 109497, mode: `MaxEncodedLen`)
/// Storage: `Scheduler::Retries` (r:0 w:1)
/// Proof: `Scheduler::Retries` (`max_values`: None, `max_size`: Some(30), added: 2505, mode: `MaxEncodedLen`)
/// Storage: Referenda ReferendumInfoFor (r:1 w:1)
/// Proof: Referenda ReferendumInfoFor (max_values: None, max_size: Some(366), added: 2841, mode: MaxEncodedLen)
/// Storage: ConvictionVoting VotingFor (r:1 w:1)
/// Proof: ConvictionVoting VotingFor (max_values: None, max_size: Some(27241), added: 29716, mode: MaxEncodedLen)
/// Storage: ConvictionVoting ClassLocksFor (r:1 w:1)
/// Proof: ConvictionVoting ClassLocksFor (max_values: None, max_size: Some(59), added: 2534, mode: MaxEncodedLen)
/// Storage: Balances Locks (r:1 w:1)
/// Proof: Balances Locks (max_values: None, max_size: Some(1299), added: 3774, mode: MaxEncodedLen)
/// Storage: Balances Freezes (r:1 w:0)
/// Proof: Balances Freezes (max_values: None, max_size: Some(49), added: 2524, mode: MaxEncodedLen)
/// Storage: Scheduler Agenda (r:2 w:2)
/// Proof: Scheduler Agenda (max_values: None, max_size: Some(107022), added: 109497, mode: MaxEncodedLen)
fn vote_new() -> Weight {
// Proof Size summary in bytes:
// Measured: `13141`
// Measured: `13074`
// Estimated: `219984`
// Minimum execution time: 102_539_000 picoseconds.
Weight::from_parts(105_873_000, 219984)
// Minimum execution time: 112_936_000 picoseconds.
Weight::from_parts(116_972_000, 219984)
.saturating_add(T::DbWeight::get().reads(7_u64))
.saturating_add(T::DbWeight::get().writes(7_u64))
.saturating_add(T::DbWeight::get().writes(6_u64))
}
/// Storage: `Referenda::ReferendumInfoFor` (r:1 w:1)
/// Proof: `Referenda::ReferendumInfoFor` (`max_values`: None, `max_size`: Some(366), added: 2841, mode: `MaxEncodedLen`)
/// Storage: `ConvictionVoting::VotingFor` (r:1 w:1)
/// Proof: `ConvictionVoting::VotingFor` (`max_values`: None, `max_size`: Some(27241), added: 29716, mode: `MaxEncodedLen`)
/// Storage: `ConvictionVoting::ClassLocksFor` (r:1 w:1)
/// Proof: `ConvictionVoting::ClassLocksFor` (`max_values`: None, `max_size`: Some(59), added: 2534, mode: `MaxEncodedLen`)
/// Storage: `Balances::Locks` (r:1 w:1)
/// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1299), added: 3774, mode: `MaxEncodedLen`)
/// Storage: `Balances::Freezes` (r:1 w:0)
/// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(67), added: 2542, mode: `MaxEncodedLen`)
/// Storage: `Scheduler::Agenda` (r:2 w:2)
/// Proof: `Scheduler::Agenda` (`max_values`: None, `max_size`: Some(107022), added: 109497, mode: `MaxEncodedLen`)
/// Storage: `Scheduler::Retries` (r:0 w:1)
/// Proof: `Scheduler::Retries` (`max_values`: None, `max_size`: Some(30), added: 2505, mode: `MaxEncodedLen`)
/// Storage: Referenda ReferendumInfoFor (r:1 w:1)
/// Proof: Referenda ReferendumInfoFor (max_values: None, max_size: Some(366), added: 2841, mode: MaxEncodedLen)
/// Storage: ConvictionVoting VotingFor (r:1 w:1)
/// Proof: ConvictionVoting VotingFor (max_values: None, max_size: Some(27241), added: 29716, mode: MaxEncodedLen)
/// Storage: ConvictionVoting ClassLocksFor (r:1 w:1)
/// Proof: ConvictionVoting ClassLocksFor (max_values: None, max_size: Some(59), added: 2534, mode: MaxEncodedLen)
/// Storage: Balances Locks (r:1 w:1)
/// Proof: Balances Locks (max_values: None, max_size: Some(1299), added: 3774, mode: MaxEncodedLen)
/// Storage: Balances Freezes (r:1 w:0)
/// Proof: Balances Freezes (max_values: None, max_size: Some(49), added: 2524, mode: MaxEncodedLen)
/// Storage: Scheduler Agenda (r:2 w:2)
/// Proof: Scheduler Agenda (max_values: None, max_size: Some(107022), added: 109497, mode: MaxEncodedLen)
fn vote_existing() -> Weight {
// Proof Size summary in bytes:
// Measured: `20283`
// Measured: `20216`
// Estimated: `219984`
// Minimum execution time: 275_424_000 picoseconds.
Weight::from_parts(283_690_000, 219984)
// Minimum execution time: 291_971_000 picoseconds.
Weight::from_parts(301_738_000, 219984)
.saturating_add(T::DbWeight::get().reads(7_u64))
.saturating_add(T::DbWeight::get().writes(7_u64))
.saturating_add(T::DbWeight::get().writes(6_u64))
}
/// Storage: `ConvictionVoting::VotingFor` (r:1 w:1)
/// Proof: `ConvictionVoting::VotingFor` (`max_values`: None, `max_size`: Some(27241), added: 29716, mode: `MaxEncodedLen`)
/// Storage: `Referenda::ReferendumInfoFor` (r:1 w:1)
/// Proof: `Referenda::ReferendumInfoFor` (`max_values`: None, `max_size`: Some(366), added: 2841, mode: `MaxEncodedLen`)
/// Storage: `Scheduler::Agenda` (r:2 w:2)
/// Proof: `Scheduler::Agenda` (`max_values`: None, `max_size`: Some(107022), added: 109497, mode: `MaxEncodedLen`)
/// Storage: `Scheduler::Retries` (r:0 w:1)
/// Proof: `Scheduler::Retries` (`max_values`: None, `max_size`: Some(30), added: 2505, mode: `MaxEncodedLen`)
/// Storage: ConvictionVoting VotingFor (r:1 w:1)
/// Proof: ConvictionVoting VotingFor (max_values: None, max_size: Some(27241), added: 29716, mode: MaxEncodedLen)
/// Storage: Referenda ReferendumInfoFor (r:1 w:1)
/// Proof: Referenda ReferendumInfoFor (max_values: None, max_size: Some(366), added: 2841, mode: MaxEncodedLen)
/// Storage: Scheduler Agenda (r:2 w:2)
/// Proof: Scheduler Agenda (max_values: None, max_size: Some(107022), added: 109497, mode: MaxEncodedLen)
fn remove_vote() -> Weight {
// Proof Size summary in bytes:
// Measured: `20035`
// Measured: `19968`
// Estimated: `219984`
// Minimum execution time: 275_109_000 picoseconds.
Weight::from_parts(281_315_000, 219984)
// Minimum execution time: 262_582_000 picoseconds.
Weight::from_parts(270_955_000, 219984)
.saturating_add(T::DbWeight::get().reads(4_u64))
.saturating_add(T::DbWeight::get().writes(5_u64))
.saturating_add(T::DbWeight::get().writes(4_u64))
}
/// Storage: `ConvictionVoting::VotingFor` (r:1 w:1)
/// Proof: `ConvictionVoting::VotingFor` (`max_values`: None, `max_size`: Some(27241), added: 29716, mode: `MaxEncodedLen`)
/// Storage: `Referenda::ReferendumInfoFor` (r:1 w:0)
/// Proof: `Referenda::ReferendumInfoFor` (`max_values`: None, `max_size`: Some(366), added: 2841, mode: `MaxEncodedLen`)
/// Storage: ConvictionVoting VotingFor (r:1 w:1)
/// Proof: ConvictionVoting VotingFor (max_values: None, max_size: Some(27241), added: 29716, mode: MaxEncodedLen)
/// Storage: Referenda ReferendumInfoFor (r:1 w:0)
/// Proof: Referenda ReferendumInfoFor (max_values: None, max_size: Some(366), added: 2841, mode: MaxEncodedLen)
fn remove_other_vote() -> Weight {
// Proof Size summary in bytes:
// Measured: `12742`
// Measured: `12675`
// Estimated: `30706`
// Minimum execution time: 49_629_000 picoseconds.
Weight::from_parts(51_300_000, 30706)
// Minimum execution time: 52_909_000 picoseconds.
Weight::from_parts(56_365_000, 30706)
.saturating_add(T::DbWeight::get().reads(2_u64))
.saturating_add(T::DbWeight::get().writes(1_u64))
}
/// Storage: `ConvictionVoting::VotingFor` (r:2 w:2)
/// Proof: `ConvictionVoting::VotingFor` (`max_values`: None, `max_size`: Some(27241), added: 29716, mode: `MaxEncodedLen`)
/// Storage: `Referenda::ReferendumInfoFor` (r:1 w:1)
/// Proof: `Referenda::ReferendumInfoFor` (`max_values`: None, `max_size`: Some(366), added: 2841, mode: `MaxEncodedLen`)
/// Storage: `Scheduler::Agenda` (r:2 w:2)
/// Proof: `Scheduler::Agenda` (`max_values`: None, `max_size`: Some(107022), added: 109497, mode: `MaxEncodedLen`)
/// Storage: `ConvictionVoting::ClassLocksFor` (r:1 w:1)
/// Proof: `ConvictionVoting::ClassLocksFor` (`max_values`: None, `max_size`: Some(59), added: 2534, mode: `MaxEncodedLen`)
/// Storage: `Balances::Locks` (r:1 w:1)
/// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1299), added: 3774, mode: `MaxEncodedLen`)
/// Storage: `Balances::Freezes` (r:1 w:0)
/// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(67), added: 2542, mode: `MaxEncodedLen`)
/// Storage: `Scheduler::Retries` (r:0 w:1)
/// Proof: `Scheduler::Retries` (`max_values`: None, `max_size`: Some(30), added: 2505, mode: `MaxEncodedLen`)
/// Storage: ConvictionVoting VotingFor (r:2 w:2)
/// Proof: ConvictionVoting VotingFor (max_values: None, max_size: Some(27241), added: 29716, mode: MaxEncodedLen)
/// Storage: Referenda ReferendumInfoFor (r:1 w:1)
/// Proof: Referenda ReferendumInfoFor (max_values: None, max_size: Some(366), added: 2841, mode: MaxEncodedLen)
/// Storage: Scheduler Agenda (r:2 w:2)
/// Proof: Scheduler Agenda (max_values: None, max_size: Some(107022), added: 109497, mode: MaxEncodedLen)
/// Storage: ConvictionVoting ClassLocksFor (r:1 w:1)
/// Proof: ConvictionVoting ClassLocksFor (max_values: None, max_size: Some(59), added: 2534, mode: MaxEncodedLen)
/// Storage: Balances Locks (r:1 w:1)
/// Proof: Balances Locks (max_values: None, max_size: Some(1299), added: 3774, mode: MaxEncodedLen)
/// Storage: Balances Freezes (r:1 w:0)
/// Proof: Balances Freezes (max_values: None, max_size: Some(49), added: 2524, mode: MaxEncodedLen)
/// The range of component `r` is `[0, 1]`.
fn delegate(r: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `306 + r * (1628 ±0)`
// Measured: `240 + r * (1627 ±0)`
// Estimated: `109992 + r * (109992 ±0)`
// Minimum execution time: 45_776_000 picoseconds.
Weight::from_parts(47_917_822, 109992)
// Standard Error: 124_174
.saturating_add(Weight::from_parts(43_171_077, 0).saturating_mul(r.into()))
// Minimum execution time: 54_640_000 picoseconds.
Weight::from_parts(57_185_281, 109992)
// Standard Error: 193_362
.saturating_add(Weight::from_parts(44_897_418, 0).saturating_mul(r.into()))
.saturating_add(T::DbWeight::get().reads(5_u64))
.saturating_add(T::DbWeight::get().reads((3_u64).saturating_mul(r.into())))
.saturating_add(T::DbWeight::get().writes(4_u64))
.saturating_add(T::DbWeight::get().writes((4_u64).saturating_mul(r.into())))
.saturating_add(T::DbWeight::get().writes((3_u64).saturating_mul(r.into())))
.saturating_add(Weight::from_parts(0, 109992).saturating_mul(r.into()))
}
/// Storage: `ConvictionVoting::VotingFor` (r:2 w:2)
/// Proof: `ConvictionVoting::VotingFor` (`max_values`: None, `max_size`: Some(27241), added: 29716, mode: `MaxEncodedLen`)
/// Storage: `Referenda::ReferendumInfoFor` (r:1 w:1)
/// Proof: `Referenda::ReferendumInfoFor` (`max_values`: None, `max_size`: Some(366), added: 2841, mode: `MaxEncodedLen`)
/// Storage: `Scheduler::Agenda` (r:2 w:2)
/// Proof: `Scheduler::Agenda` (`max_values`: None, `max_size`: Some(107022), added: 109497, mode: `MaxEncodedLen`)
/// Storage: `Scheduler::Retries` (r:0 w:1)
/// Proof: `Scheduler::Retries` (`max_values`: None, `max_size`: Some(30), added: 2505, mode: `MaxEncodedLen`)
/// Storage: ConvictionVoting VotingFor (r:2 w:2)
/// Proof: ConvictionVoting VotingFor (max_values: None, max_size: Some(27241), added: 29716, mode: MaxEncodedLen)
/// Storage: Referenda ReferendumInfoFor (r:1 w:1)
/// Proof: Referenda ReferendumInfoFor (max_values: None, max_size: Some(366), added: 2841, mode: MaxEncodedLen)
/// Storage: Scheduler Agenda (r:2 w:2)
/// Proof: Scheduler Agenda (max_values: None, max_size: Some(107022), added: 109497, mode: MaxEncodedLen)
/// The range of component `r` is `[0, 1]`.
fn undelegate(r: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `472 + r * (1377 ±0)`
// Measured: `406 + r * (1376 ±0)`
// Estimated: `109992 + r * (109992 ±0)`
// Minimum execution time: 23_600_000 picoseconds.
Weight::from_parts(25_001_426, 109992)
// Standard Error: 72_034
.saturating_add(Weight::from_parts(37_851_873, 0).saturating_mul(r.into()))
// Minimum execution time: 26_514_000 picoseconds.
Weight::from_parts(28_083_732, 109992)
// Standard Error: 104_905
.saturating_add(Weight::from_parts(40_722_467, 0).saturating_mul(r.into()))
.saturating_add(T::DbWeight::get().reads(2_u64))
.saturating_add(T::DbWeight::get().reads((3_u64).saturating_mul(r.into())))
.saturating_add(T::DbWeight::get().writes(2_u64))
.saturating_add(T::DbWeight::get().writes((4_u64).saturating_mul(r.into())))
.saturating_add(T::DbWeight::get().writes((3_u64).saturating_mul(r.into())))
.saturating_add(Weight::from_parts(0, 109992).saturating_mul(r.into()))
}
/// Storage: `ConvictionVoting::VotingFor` (r:1 w:1)
/// Proof: `ConvictionVoting::VotingFor` (`max_values`: None, `max_size`: Some(27241), added: 29716, mode: `MaxEncodedLen`)
/// Storage: `ConvictionVoting::ClassLocksFor` (r:1 w:1)
/// Proof: `ConvictionVoting::ClassLocksFor` (`max_values`: None, `max_size`: Some(59), added: 2534, mode: `MaxEncodedLen`)
/// Storage: `Balances::Locks` (r:1 w:1)
/// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1299), added: 3774, mode: `MaxEncodedLen`)
/// Storage: `Balances::Freezes` (r:1 w:0)
/// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(67), added: 2542, mode: `MaxEncodedLen`)
/// Storage: ConvictionVoting VotingFor (r:1 w:1)
/// Proof: ConvictionVoting VotingFor (max_values: None, max_size: Some(27241), added: 29716, mode: MaxEncodedLen)
/// Storage: ConvictionVoting ClassLocksFor (r:1 w:1)
/// Proof: ConvictionVoting ClassLocksFor (max_values: None, max_size: Some(59), added: 2534, mode: MaxEncodedLen)
/// Storage: Balances Locks (r:1 w:1)
/// Proof: Balances Locks (max_values: None, max_size: Some(1299), added: 3774, mode: MaxEncodedLen)
/// Storage: Balances Freezes (r:1 w:0)
/// Proof: Balances Freezes (max_values: None, max_size: Some(49), added: 2524, mode: MaxEncodedLen)
fn unlock() -> Weight {
// Proof Size summary in bytes:
// Measured: `11800`
// Measured: `11734`
// Estimated: `30706`
// Minimum execution time: 66_247_000 picoseconds.
Weight::from_parts(67_552_000, 30706)
// Minimum execution time: 71_140_000 picoseconds.
Weight::from_parts(77_388_000, 30706)
.saturating_add(T::DbWeight::get().reads(4_u64))
.saturating_add(T::DbWeight::get().writes(3_u64))
}
}
// For backwards compatibility and tests.
// For backwards compatibility and tests
impl WeightInfo for () {
/// Storage: `Referenda::ReferendumInfoFor` (r:1 w:1)
/// Proof: `Referenda::ReferendumInfoFor` (`max_values`: None, `max_size`: Some(366), added: 2841, mode: `MaxEncodedLen`)
/// Storage: `ConvictionVoting::VotingFor` (r:1 w:1)
/// Proof: `ConvictionVoting::VotingFor` (`max_values`: None, `max_size`: Some(27241), added: 29716, mode: `MaxEncodedLen`)
/// Storage: `ConvictionVoting::ClassLocksFor` (r:1 w:1)
/// Proof: `ConvictionVoting::ClassLocksFor` (`max_values`: None, `max_size`: Some(59), added: 2534, mode: `MaxEncodedLen`)
/// Storage: `Balances::Locks` (r:1 w:1)
/// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1299), added: 3774, mode: `MaxEncodedLen`)
/// Storage: `Balances::Freezes` (r:1 w:0)
/// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(67), added: 2542, mode: `MaxEncodedLen`)
/// Storage: `Scheduler::Agenda` (r:2 w:2)
/// Proof: `Scheduler::Agenda` (`max_values`: None, `max_size`: Some(107022), added: 109497, mode: `MaxEncodedLen`)
/// Storage: `Scheduler::Retries` (r:0 w:1)
/// Proof: `Scheduler::Retries` (`max_values`: None, `max_size`: Some(30), added: 2505, mode: `MaxEncodedLen`)
/// Storage: Referenda ReferendumInfoFor (r:1 w:1)
/// Proof: Referenda ReferendumInfoFor (max_values: None, max_size: Some(366), added: 2841, mode: MaxEncodedLen)
/// Storage: ConvictionVoting VotingFor (r:1 w:1)
/// Proof: ConvictionVoting VotingFor (max_values: None, max_size: Some(27241), added: 29716, mode: MaxEncodedLen)
/// Storage: ConvictionVoting ClassLocksFor (r:1 w:1)
/// Proof: ConvictionVoting ClassLocksFor (max_values: None, max_size: Some(59), added: 2534, mode: MaxEncodedLen)
/// Storage: Balances Locks (r:1 w:1)
/// Proof: Balances Locks (max_values: None, max_size: Some(1299), added: 3774, mode: MaxEncodedLen)
/// Storage: Balances Freezes (r:1 w:0)
/// Proof: Balances Freezes (max_values: None, max_size: Some(49), added: 2524, mode: MaxEncodedLen)
/// Storage: Scheduler Agenda (r:2 w:2)
/// Proof: Scheduler Agenda (max_values: None, max_size: Some(107022), added: 109497, mode: MaxEncodedLen)
fn vote_new() -> Weight {
// Proof Size summary in bytes:
// Measured: `13141`
// Measured: `13074`
// Estimated: `219984`
// Minimum execution time: 102_539_000 picoseconds.
Weight::from_parts(105_873_000, 219984)
// Minimum execution time: 112_936_000 picoseconds.
Weight::from_parts(116_972_000, 219984)
.saturating_add(RocksDbWeight::get().reads(7_u64))
.saturating_add(RocksDbWeight::get().writes(7_u64))
.saturating_add(RocksDbWeight::get().writes(6_u64))
}
/// Storage: `Referenda::ReferendumInfoFor` (r:1 w:1)
/// Proof: `Referenda::ReferendumInfoFor` (`max_values`: None, `max_size`: Some(366), added: 2841, mode: `MaxEncodedLen`)
/// Storage: `ConvictionVoting::VotingFor` (r:1 w:1)
/// Proof: `ConvictionVoting::VotingFor` (`max_values`: None, `max_size`: Some(27241), added: 29716, mode: `MaxEncodedLen`)
/// Storage: `ConvictionVoting::ClassLocksFor` (r:1 w:1)
/// Proof: `ConvictionVoting::ClassLocksFor` (`max_values`: None, `max_size`: Some(59), added: 2534, mode: `MaxEncodedLen`)
/// Storage: `Balances::Locks` (r:1 w:1)
/// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1299), added: 3774, mode: `MaxEncodedLen`)
/// Storage: `Balances::Freezes` (r:1 w:0)
/// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(67), added: 2542, mode: `MaxEncodedLen`)
/// Storage: `Scheduler::Agenda` (r:2 w:2)
/// Proof: `Scheduler::Agenda` (`max_values`: None, `max_size`: Some(107022), added: 109497, mode: `MaxEncodedLen`)
/// Storage: `Scheduler::Retries` (r:0 w:1)
/// Proof: `Scheduler::Retries` (`max_values`: None, `max_size`: Some(30), added: 2505, mode: `MaxEncodedLen`)
/// Storage: Referenda ReferendumInfoFor (r:1 w:1)
/// Proof: Referenda ReferendumInfoFor (max_values: None, max_size: Some(366), added: 2841, mode: MaxEncodedLen)
/// Storage: ConvictionVoting VotingFor (r:1 w:1)
/// Proof: ConvictionVoting VotingFor (max_values: None, max_size: Some(27241), added: 29716, mode: MaxEncodedLen)
/// Storage: ConvictionVoting ClassLocksFor (r:1 w:1)
/// Proof: ConvictionVoting ClassLocksFor (max_values: None, max_size: Some(59), added: 2534, mode: MaxEncodedLen)
/// Storage: Balances Locks (r:1 w:1)
/// Proof: Balances Locks (max_values: None, max_size: Some(1299), added: 3774, mode: MaxEncodedLen)
/// Storage: Balances Freezes (r:1 w:0)
/// Proof: Balances Freezes (max_values: None, max_size: Some(49), added: 2524, mode: MaxEncodedLen)
/// Storage: Scheduler Agenda (r:2 w:2)
/// Proof: Scheduler Agenda (max_values: None, max_size: Some(107022), added: 109497, mode: MaxEncodedLen)
fn vote_existing() -> Weight {
// Proof Size summary in bytes:
// Measured: `20283`
// Measured: `20216`
// Estimated: `219984`
// Minimum execution time: 275_424_000 picoseconds.
Weight::from_parts(283_690_000, 219984)
// Minimum execution time: 291_971_000 picoseconds.
Weight::from_parts(301_738_000, 219984)
.saturating_add(RocksDbWeight::get().reads(7_u64))
.saturating_add(RocksDbWeight::get().writes(7_u64))
.saturating_add(RocksDbWeight::get().writes(6_u64))
}
/// Storage: `ConvictionVoting::VotingFor` (r:1 w:1)
/// Proof: `ConvictionVoting::VotingFor` (`max_values`: None, `max_size`: Some(27241), added: 29716, mode: `MaxEncodedLen`)
/// Storage: `Referenda::ReferendumInfoFor` (r:1 w:1)
/// Proof: `Referenda::ReferendumInfoFor` (`max_values`: None, `max_size`: Some(366), added: 2841, mode: `MaxEncodedLen`)
/// Storage: `Scheduler::Agenda` (r:2 w:2)
/// Proof: `Scheduler::Agenda` (`max_values`: None, `max_size`: Some(107022), added: 109497, mode: `MaxEncodedLen`)
/// Storage: `Scheduler::Retries` (r:0 w:1)
/// Proof: `Scheduler::Retries` (`max_values`: None, `max_size`: Some(30), added: 2505, mode: `MaxEncodedLen`)
/// Storage: ConvictionVoting VotingFor (r:1 w:1)
/// Proof: ConvictionVoting VotingFor (max_values: None, max_size: Some(27241), added: 29716, mode: MaxEncodedLen)
/// Storage: Referenda ReferendumInfoFor (r:1 w:1)
/// Proof: Referenda ReferendumInfoFor (max_values: None, max_size: Some(366), added: 2841, mode: MaxEncodedLen)
/// Storage: Scheduler Agenda (r:2 w:2)
/// Proof: Scheduler Agenda (max_values: None, max_size: Some(107022), added: 109497, mode: MaxEncodedLen)
fn remove_vote() -> Weight {
// Proof Size summary in bytes:
// Measured: `20035`
// Measured: `19968`
// Estimated: `219984`
// Minimum execution time: 275_109_000 picoseconds.
Weight::from_parts(281_315_000, 219984)
// Minimum execution time: 262_582_000 picoseconds.
Weight::from_parts(270_955_000, 219984)
.saturating_add(RocksDbWeight::get().reads(4_u64))
.saturating_add(RocksDbWeight::get().writes(5_u64))
.saturating_add(RocksDbWeight::get().writes(4_u64))
}
/// Storage: `ConvictionVoting::VotingFor` (r:1 w:1)
/// Proof: `ConvictionVoting::VotingFor` (`max_values`: None, `max_size`: Some(27241), added: 29716, mode: `MaxEncodedLen`)
/// Storage: `Referenda::ReferendumInfoFor` (r:1 w:0)
/// Proof: `Referenda::ReferendumInfoFor` (`max_values`: None, `max_size`: Some(366), added: 2841, mode: `MaxEncodedLen`)
/// Storage: ConvictionVoting VotingFor (r:1 w:1)
/// Proof: ConvictionVoting VotingFor (max_values: None, max_size: Some(27241), added: 29716, mode: MaxEncodedLen)
/// Storage: Referenda ReferendumInfoFor (r:1 w:0)
/// Proof: Referenda ReferendumInfoFor (max_values: None, max_size: Some(366), added: 2841, mode: MaxEncodedLen)
fn remove_other_vote() -> Weight {
// Proof Size summary in bytes:
// Measured: `12742`
// Measured: `12675`
// Estimated: `30706`
// Minimum execution time: 49_629_000 picoseconds.
Weight::from_parts(51_300_000, 30706)
// Minimum execution time: 52_909_000 picoseconds.
Weight::from_parts(56_365_000, 30706)
.saturating_add(RocksDbWeight::get().reads(2_u64))
.saturating_add(RocksDbWeight::get().writes(1_u64))
}
/// Storage: `ConvictionVoting::VotingFor` (r:2 w:2)
/// Proof: `ConvictionVoting::VotingFor` (`max_values`: None, `max_size`: Some(27241), added: 29716, mode: `MaxEncodedLen`)
/// Storage: `Referenda::ReferendumInfoFor` (r:1 w:1)
/// Proof: `Referenda::ReferendumInfoFor` (`max_values`: None, `max_size`: Some(366), added: 2841, mode: `MaxEncodedLen`)
/// Storage: `Scheduler::Agenda` (r:2 w:2)
/// Proof: `Scheduler::Agenda` (`max_values`: None, `max_size`: Some(107022), added: 109497, mode: `MaxEncodedLen`)
/// Storage: `ConvictionVoting::ClassLocksFor` (r:1 w:1)
/// Proof: `ConvictionVoting::ClassLocksFor` (`max_values`: None, `max_size`: Some(59), added: 2534, mode: `MaxEncodedLen`)
/// Storage: `Balances::Locks` (r:1 w:1)
/// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1299), added: 3774, mode: `MaxEncodedLen`)
/// Storage: `Balances::Freezes` (r:1 w:0)
/// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(67), added: 2542, mode: `MaxEncodedLen`)
/// Storage: `Scheduler::Retries` (r:0 w:1)
/// Proof: `Scheduler::Retries` (`max_values`: None, `max_size`: Some(30), added: 2505, mode: `MaxEncodedLen`)
/// Storage: ConvictionVoting VotingFor (r:2 w:2)
/// Proof: ConvictionVoting VotingFor (max_values: None, max_size: Some(27241), added: 29716, mode: MaxEncodedLen)
/// Storage: Referenda ReferendumInfoFor (r:1 w:1)
/// Proof: Referenda ReferendumInfoFor (max_values: None, max_size: Some(366), added: 2841, mode: MaxEncodedLen)
/// Storage: Scheduler Agenda (r:2 w:2)
/// Proof: Scheduler Agenda (max_values: None, max_size: Some(107022), added: 109497, mode: MaxEncodedLen)
/// Storage: ConvictionVoting ClassLocksFor (r:1 w:1)
/// Proof: ConvictionVoting ClassLocksFor (max_values: None, max_size: Some(59), added: 2534, mode: MaxEncodedLen)
/// Storage: Balances Locks (r:1 w:1)
/// Proof: Balances Locks (max_values: None, max_size: Some(1299), added: 3774, mode: MaxEncodedLen)
/// Storage: Balances Freezes (r:1 w:0)
/// Proof: Balances Freezes (max_values: None, max_size: Some(49), added: 2524, mode: MaxEncodedLen)
/// The range of component `r` is `[0, 1]`.
fn delegate(r: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `306 + r * (1628 ±0)`
// Measured: `240 + r * (1627 ±0)`
// Estimated: `109992 + r * (109992 ±0)`
// Minimum execution time: 45_776_000 picoseconds.
Weight::from_parts(47_917_822, 109992)
// Standard Error: 124_174
.saturating_add(Weight::from_parts(43_171_077, 0).saturating_mul(r.into()))
// Minimum execution time: 54_640_000 picoseconds.
Weight::from_parts(57_185_281, 109992)
// Standard Error: 193_362
.saturating_add(Weight::from_parts(44_897_418, 0).saturating_mul(r.into()))
.saturating_add(RocksDbWeight::get().reads(5_u64))
.saturating_add(RocksDbWeight::get().reads((3_u64).saturating_mul(r.into())))
.saturating_add(RocksDbWeight::get().writes(4_u64))
.saturating_add(RocksDbWeight::get().writes((4_u64).saturating_mul(r.into())))
.saturating_add(RocksDbWeight::get().writes((3_u64).saturating_mul(r.into())))
.saturating_add(Weight::from_parts(0, 109992).saturating_mul(r.into()))
}
/// Storage: `ConvictionVoting::VotingFor` (r:2 w:2)
/// Proof: `ConvictionVoting::VotingFor` (`max_values`: None, `max_size`: Some(27241), added: 29716, mode: `MaxEncodedLen`)
/// Storage: `Referenda::ReferendumInfoFor` (r:1 w:1)
/// Proof: `Referenda::ReferendumInfoFor` (`max_values`: None, `max_size`: Some(366), added: 2841, mode: `MaxEncodedLen`)
/// Storage: `Scheduler::Agenda` (r:2 w:2)
/// Proof: `Scheduler::Agenda` (`max_values`: None, `max_size`: Some(107022), added: 109497, mode: `MaxEncodedLen`)
/// Storage: `Scheduler::Retries` (r:0 w:1)
/// Proof: `Scheduler::Retries` (`max_values`: None, `max_size`: Some(30), added: 2505, mode: `MaxEncodedLen`)
/// Storage: ConvictionVoting VotingFor (r:2 w:2)
/// Proof: ConvictionVoting VotingFor (max_values: None, max_size: Some(27241), added: 29716, mode: MaxEncodedLen)
/// Storage: Referenda ReferendumInfoFor (r:1 w:1)
/// Proof: Referenda ReferendumInfoFor (max_values: None, max_size: Some(366), added: 2841, mode: MaxEncodedLen)
/// Storage: Scheduler Agenda (r:2 w:2)
/// Proof: Scheduler Agenda (max_values: None, max_size: Some(107022), added: 109497, mode: MaxEncodedLen)
/// The range of component `r` is `[0, 1]`.
fn undelegate(r: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `472 + r * (1377 ±0)`
// Measured: `406 + r * (1376 ±0)`
// Estimated: `109992 + r * (109992 ±0)`
// Minimum execution time: 23_600_000 picoseconds.
Weight::from_parts(25_001_426, 109992)
// Standard Error: 72_034
.saturating_add(Weight::from_parts(37_851_873, 0).saturating_mul(r.into()))
// Minimum execution time: 26_514_000 picoseconds.
Weight::from_parts(28_083_732, 109992)
// Standard Error: 104_905
.saturating_add(Weight::from_parts(40_722_467, 0).saturating_mul(r.into()))
.saturating_add(RocksDbWeight::get().reads(2_u64))
.saturating_add(RocksDbWeight::get().reads((3_u64).saturating_mul(r.into())))
.saturating_add(RocksDbWeight::get().writes(2_u64))
.saturating_add(RocksDbWeight::get().writes((4_u64).saturating_mul(r.into())))
.saturating_add(RocksDbWeight::get().writes((3_u64).saturating_mul(r.into())))
.saturating_add(Weight::from_parts(0, 109992).saturating_mul(r.into()))
}
/// Storage: `ConvictionVoting::VotingFor` (r:1 w:1)
/// Proof: `ConvictionVoting::VotingFor` (`max_values`: None, `max_size`: Some(27241), added: 29716, mode: `MaxEncodedLen`)
/// Storage: `ConvictionVoting::ClassLocksFor` (r:1 w:1)
/// Proof: `ConvictionVoting::ClassLocksFor` (`max_values`: None, `max_size`: Some(59), added: 2534, mode: `MaxEncodedLen`)
/// Storage: `Balances::Locks` (r:1 w:1)
/// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1299), added: 3774, mode: `MaxEncodedLen`)
/// Storage: `Balances::Freezes` (r:1 w:0)
/// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(67), added: 2542, mode: `MaxEncodedLen`)
/// Storage: ConvictionVoting VotingFor (r:1 w:1)
/// Proof: ConvictionVoting VotingFor (max_values: None, max_size: Some(27241), added: 29716, mode: MaxEncodedLen)
/// Storage: ConvictionVoting ClassLocksFor (r:1 w:1)
/// Proof: ConvictionVoting ClassLocksFor (max_values: None, max_size: Some(59), added: 2534, mode: MaxEncodedLen)
/// Storage: Balances Locks (r:1 w:1)
/// Proof: Balances Locks (max_values: None, max_size: Some(1299), added: 3774, mode: MaxEncodedLen)
/// Storage: Balances Freezes (r:1 w:0)
/// Proof: Balances Freezes (max_values: None, max_size: Some(49), added: 2524, mode: MaxEncodedLen)
fn unlock() -> Weight {
// Proof Size summary in bytes:
// Measured: `11800`
// Measured: `11734`
// Estimated: `30706`
// Minimum execution time: 66_247_000 picoseconds.
Weight::from_parts(67_552_000, 30706)
// Minimum execution time: 71_140_000 picoseconds.
Weight::from_parts(77_388_000, 30706)
.saturating_add(RocksDbWeight::get().reads(4_u64))
.saturating_add(RocksDbWeight::get().writes(3_u64))
}
+211 -218
View File
@@ -15,16 +15,16 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//! Autogenerated weights for `pallet_core_fellowship`
//! Autogenerated weights for pallet_core_fellowship
//!
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0
//! DATE: 2024-03-01, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
//! DATE: 2023-06-16, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! WORST CASE MAP SIZE: `1000000`
//! HOSTNAME: `runner-bn-ce5rx-project-674-concurrent-0`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz`
//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("dev")`, DB CACHE: `1024`
//! HOSTNAME: `runner-e8ezs4ez-project-145-concurrent-0`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz`
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024
// Executed Command:
// ./target/production/substrate-node
// ./target/production/substrate
// benchmark
// pallet
// --chain=dev
@@ -35,11 +35,12 @@
// --no-median-slopes
// --no-min-squares
// --extrinsic=*
// --execution=wasm
// --wasm-execution=compiled
// --heap-pages=4096
// --output=./substrate/frame/core-fellowship/src/weights.rs
// --header=./substrate/HEADER-APACHE2
// --template=./substrate/.maintain/frame-weight-template.hbs
// --output=./frame/core-fellowship/src/weights.rs
// --header=./HEADER-APACHE2
// --template=./.maintain/frame-weight-template.hbs
#![cfg_attr(rustfmt, rustfmt_skip)]
#![allow(unused_parens)]
@@ -49,7 +50,7 @@
use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}};
use core::marker::PhantomData;
/// Weight functions needed for `pallet_core_fellowship`.
/// Weight functions needed for pallet_core_fellowship.
pub trait WeightInfo {
fn set_params() -> Weight;
fn bump_offboard() -> Weight;
@@ -63,344 +64,336 @@ pub trait WeightInfo {
fn submit_evidence() -> Weight;
}
/// Weights for `pallet_core_fellowship` using the Substrate node and recommended hardware.
/// Weights for pallet_core_fellowship using the Substrate node and recommended hardware.
pub struct SubstrateWeight<T>(PhantomData<T>);
impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
/// Storage: `CoreFellowship::Params` (r:0 w:1)
/// Proof: `CoreFellowship::Params` (`max_values`: Some(1), `max_size`: Some(364), added: 859, mode: `MaxEncodedLen`)
/// Storage: CoreFellowship Params (r:0 w:1)
/// Proof: CoreFellowship Params (max_values: Some(1), max_size: Some(364), added: 859, mode: MaxEncodedLen)
fn set_params() -> Weight {
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `0`
// Minimum execution time: 7_146_000 picoseconds.
Weight::from_parts(7_426_000, 0)
// Minimum execution time: 9_454_000 picoseconds.
Weight::from_parts(9_804_000, 0)
.saturating_add(T::DbWeight::get().writes(1_u64))
}
/// Storage: `CoreFellowship::Member` (r:1 w:1)
/// Proof: `CoreFellowship::Member` (`max_values`: None, `max_size`: Some(49), added: 2524, mode: `MaxEncodedLen`)
/// Storage: `RankedCollective::Members` (r:1 w:1)
/// Proof: `RankedCollective::Members` (`max_values`: None, `max_size`: Some(42), added: 2517, mode: `MaxEncodedLen`)
/// Storage: `CoreFellowship::Params` (r:1 w:0)
/// Proof: `CoreFellowship::Params` (`max_values`: Some(1), `max_size`: Some(364), added: 859, mode: `MaxEncodedLen`)
/// Storage: `RankedCollective::MemberCount` (r:1 w:1)
/// Proof: `RankedCollective::MemberCount` (`max_values`: None, `max_size`: Some(14), added: 2489, mode: `MaxEncodedLen`)
/// Storage: `RankedCollective::IdToIndex` (r:1 w:1)
/// Proof: `RankedCollective::IdToIndex` (`max_values`: None, `max_size`: Some(54), added: 2529, mode: `MaxEncodedLen`)
/// Storage: `CoreFellowship::MemberEvidence` (r:1 w:1)
/// Proof: `CoreFellowship::MemberEvidence` (`max_values`: None, `max_size`: Some(16429), added: 18904, mode: `MaxEncodedLen`)
/// Storage: `RankedCollective::IndexToId` (r:0 w:1)
/// Proof: `RankedCollective::IndexToId` (`max_values`: None, `max_size`: Some(54), added: 2529, mode: `MaxEncodedLen`)
/// Storage: CoreFellowship Member (r:1 w:1)
/// Proof: CoreFellowship Member (max_values: None, max_size: Some(49), added: 2524, mode: MaxEncodedLen)
/// Storage: RankedCollective Members (r:1 w:1)
/// Proof: RankedCollective Members (max_values: None, max_size: Some(42), added: 2517, mode: MaxEncodedLen)
/// Storage: CoreFellowship Params (r:1 w:0)
/// Proof: CoreFellowship Params (max_values: Some(1), max_size: Some(364), added: 859, mode: MaxEncodedLen)
/// Storage: RankedCollective MemberCount (r:1 w:1)
/// Proof: RankedCollective MemberCount (max_values: None, max_size: Some(14), added: 2489, mode: MaxEncodedLen)
/// Storage: RankedCollective IdToIndex (r:1 w:0)
/// Proof: RankedCollective IdToIndex (max_values: None, max_size: Some(54), added: 2529, mode: MaxEncodedLen)
/// Storage: CoreFellowship MemberEvidence (r:1 w:1)
/// Proof: CoreFellowship MemberEvidence (max_values: None, max_size: Some(16429), added: 18904, mode: MaxEncodedLen)
fn bump_offboard() -> Weight {
// Proof Size summary in bytes:
// Measured: `17274`
// Measured: `16887`
// Estimated: `19894`
// Minimum execution time: 54_511_000 picoseconds.
Weight::from_parts(56_995_000, 19894)
// Minimum execution time: 58_489_000 picoseconds.
Weight::from_parts(60_202_000, 19894)
.saturating_add(T::DbWeight::get().reads(6_u64))
.saturating_add(T::DbWeight::get().writes(6_u64))
.saturating_add(T::DbWeight::get().writes(4_u64))
}
/// Storage: `CoreFellowship::Member` (r:1 w:1)
/// Proof: `CoreFellowship::Member` (`max_values`: None, `max_size`: Some(49), added: 2524, mode: `MaxEncodedLen`)
/// Storage: `RankedCollective::Members` (r:1 w:1)
/// Proof: `RankedCollective::Members` (`max_values`: None, `max_size`: Some(42), added: 2517, mode: `MaxEncodedLen`)
/// Storage: `CoreFellowship::Params` (r:1 w:0)
/// Proof: `CoreFellowship::Params` (`max_values`: Some(1), `max_size`: Some(364), added: 859, mode: `MaxEncodedLen`)
/// Storage: `RankedCollective::MemberCount` (r:1 w:1)
/// Proof: `RankedCollective::MemberCount` (`max_values`: None, `max_size`: Some(14), added: 2489, mode: `MaxEncodedLen`)
/// Storage: `RankedCollective::IdToIndex` (r:1 w:1)
/// Proof: `RankedCollective::IdToIndex` (`max_values`: None, `max_size`: Some(54), added: 2529, mode: `MaxEncodedLen`)
/// Storage: `CoreFellowship::MemberEvidence` (r:1 w:1)
/// Proof: `CoreFellowship::MemberEvidence` (`max_values`: None, `max_size`: Some(16429), added: 18904, mode: `MaxEncodedLen`)
/// Storage: `RankedCollective::IndexToId` (r:0 w:1)
/// Proof: `RankedCollective::IndexToId` (`max_values`: None, `max_size`: Some(54), added: 2529, mode: `MaxEncodedLen`)
/// Storage: CoreFellowship Member (r:1 w:1)
/// Proof: CoreFellowship Member (max_values: None, max_size: Some(49), added: 2524, mode: MaxEncodedLen)
/// Storage: RankedCollective Members (r:1 w:1)
/// Proof: RankedCollective Members (max_values: None, max_size: Some(42), added: 2517, mode: MaxEncodedLen)
/// Storage: CoreFellowship Params (r:1 w:0)
/// Proof: CoreFellowship Params (max_values: Some(1), max_size: Some(364), added: 859, mode: MaxEncodedLen)
/// Storage: RankedCollective MemberCount (r:1 w:1)
/// Proof: RankedCollective MemberCount (max_values: None, max_size: Some(14), added: 2489, mode: MaxEncodedLen)
/// Storage: RankedCollective IdToIndex (r:1 w:0)
/// Proof: RankedCollective IdToIndex (max_values: None, max_size: Some(54), added: 2529, mode: MaxEncodedLen)
/// Storage: CoreFellowship MemberEvidence (r:1 w:1)
/// Proof: CoreFellowship MemberEvidence (max_values: None, max_size: Some(16429), added: 18904, mode: MaxEncodedLen)
fn bump_demote() -> Weight {
// Proof Size summary in bytes:
// Measured: `17384`
// Measured: `16997`
// Estimated: `19894`
// Minimum execution time: 56_453_000 picoseconds.
Weight::from_parts(59_030_000, 19894)
// Minimum execution time: 60_605_000 picoseconds.
Weight::from_parts(63_957_000, 19894)
.saturating_add(T::DbWeight::get().reads(6_u64))
.saturating_add(T::DbWeight::get().writes(6_u64))
.saturating_add(T::DbWeight::get().writes(4_u64))
}
/// Storage: `RankedCollective::Members` (r:1 w:0)
/// Proof: `RankedCollective::Members` (`max_values`: None, `max_size`: Some(42), added: 2517, mode: `MaxEncodedLen`)
/// Storage: `CoreFellowship::Member` (r:1 w:1)
/// Proof: `CoreFellowship::Member` (`max_values`: None, `max_size`: Some(49), added: 2524, mode: `MaxEncodedLen`)
/// Storage: RankedCollective Members (r:1 w:0)
/// Proof: RankedCollective Members (max_values: None, max_size: Some(42), added: 2517, mode: MaxEncodedLen)
/// Storage: CoreFellowship Member (r:1 w:1)
/// Proof: CoreFellowship Member (max_values: None, max_size: Some(49), added: 2524, mode: MaxEncodedLen)
fn set_active() -> Weight {
// Proof Size summary in bytes:
// Measured: `388`
// Estimated: `3514`
// Minimum execution time: 15_940_000 picoseconds.
Weight::from_parts(16_381_000, 3514)
// Minimum execution time: 17_816_000 picoseconds.
Weight::from_parts(18_524_000, 3514)
.saturating_add(T::DbWeight::get().reads(2_u64))
.saturating_add(T::DbWeight::get().writes(1_u64))
}
/// Storage: `CoreFellowship::Member` (r:1 w:1)
/// Proof: `CoreFellowship::Member` (`max_values`: None, `max_size`: Some(49), added: 2524, mode: `MaxEncodedLen`)
/// Storage: `RankedCollective::Members` (r:1 w:1)
/// Proof: `RankedCollective::Members` (`max_values`: None, `max_size`: Some(42), added: 2517, mode: `MaxEncodedLen`)
/// Storage: `RankedCollective::MemberCount` (r:1 w:1)
/// Proof: `RankedCollective::MemberCount` (`max_values`: None, `max_size`: Some(14), added: 2489, mode: `MaxEncodedLen`)
/// Storage: `RankedCollective::IndexToId` (r:0 w:1)
/// Proof: `RankedCollective::IndexToId` (`max_values`: None, `max_size`: Some(54), added: 2529, mode: `MaxEncodedLen`)
/// Storage: `RankedCollective::IdToIndex` (r:0 w:1)
/// Proof: `RankedCollective::IdToIndex` (`max_values`: None, `max_size`: Some(54), added: 2529, mode: `MaxEncodedLen`)
/// Storage: CoreFellowship Member (r:1 w:1)
/// Proof: CoreFellowship Member (max_values: None, max_size: Some(49), added: 2524, mode: MaxEncodedLen)
/// Storage: RankedCollective Members (r:1 w:1)
/// Proof: RankedCollective Members (max_values: None, max_size: Some(42), added: 2517, mode: MaxEncodedLen)
/// Storage: RankedCollective MemberCount (r:1 w:1)
/// Proof: RankedCollective MemberCount (max_values: None, max_size: Some(14), added: 2489, mode: MaxEncodedLen)
/// Storage: RankedCollective IndexToId (r:0 w:1)
/// Proof: RankedCollective IndexToId (max_values: None, max_size: Some(54), added: 2529, mode: MaxEncodedLen)
/// Storage: RankedCollective IdToIndex (r:0 w:1)
/// Proof: RankedCollective IdToIndex (max_values: None, max_size: Some(54), added: 2529, mode: MaxEncodedLen)
fn induct() -> Weight {
// Proof Size summary in bytes:
// Measured: `146`
// Estimated: `3514`
// Minimum execution time: 24_193_000 picoseconds.
Weight::from_parts(24_963_000, 3514)
// Minimum execution time: 27_249_000 picoseconds.
Weight::from_parts(28_049_000, 3514)
.saturating_add(T::DbWeight::get().reads(3_u64))
.saturating_add(T::DbWeight::get().writes(5_u64))
}
/// Storage: `RankedCollective::Members` (r:1 w:1)
/// Proof: `RankedCollective::Members` (`max_values`: None, `max_size`: Some(42), added: 2517, mode: `MaxEncodedLen`)
/// Storage: `CoreFellowship::Member` (r:1 w:1)
/// Proof: `CoreFellowship::Member` (`max_values`: None, `max_size`: Some(49), added: 2524, mode: `MaxEncodedLen`)
/// Storage: `CoreFellowship::Params` (r:1 w:0)
/// Proof: `CoreFellowship::Params` (`max_values`: Some(1), `max_size`: Some(364), added: 859, mode: `MaxEncodedLen`)
/// Storage: `RankedCollective::MemberCount` (r:1 w:1)
/// Proof: `RankedCollective::MemberCount` (`max_values`: None, `max_size`: Some(14), added: 2489, mode: `MaxEncodedLen`)
/// Storage: `CoreFellowship::MemberEvidence` (r:1 w:1)
/// Proof: `CoreFellowship::MemberEvidence` (`max_values`: None, `max_size`: Some(16429), added: 18904, mode: `MaxEncodedLen`)
/// Storage: `RankedCollective::IndexToId` (r:0 w:1)
/// Proof: `RankedCollective::IndexToId` (`max_values`: None, `max_size`: Some(54), added: 2529, mode: `MaxEncodedLen`)
/// Storage: `RankedCollective::IdToIndex` (r:0 w:1)
/// Proof: `RankedCollective::IdToIndex` (`max_values`: None, `max_size`: Some(54), added: 2529, mode: `MaxEncodedLen`)
/// Storage: RankedCollective Members (r:1 w:1)
/// Proof: RankedCollective Members (max_values: None, max_size: Some(42), added: 2517, mode: MaxEncodedLen)
/// Storage: CoreFellowship Member (r:1 w:1)
/// Proof: CoreFellowship Member (max_values: None, max_size: Some(49), added: 2524, mode: MaxEncodedLen)
/// Storage: CoreFellowship Params (r:1 w:0)
/// Proof: CoreFellowship Params (max_values: Some(1), max_size: Some(364), added: 859, mode: MaxEncodedLen)
/// Storage: RankedCollective MemberCount (r:1 w:1)
/// Proof: RankedCollective MemberCount (max_values: None, max_size: Some(14), added: 2489, mode: MaxEncodedLen)
/// Storage: CoreFellowship MemberEvidence (r:1 w:1)
/// Proof: CoreFellowship MemberEvidence (max_values: None, max_size: Some(16429), added: 18904, mode: MaxEncodedLen)
/// Storage: RankedCollective IndexToId (r:0 w:1)
/// Proof: RankedCollective IndexToId (max_values: None, max_size: Some(54), added: 2529, mode: MaxEncodedLen)
/// Storage: RankedCollective IdToIndex (r:0 w:1)
/// Proof: RankedCollective IdToIndex (max_values: None, max_size: Some(54), added: 2529, mode: MaxEncodedLen)
fn promote() -> Weight {
// Proof Size summary in bytes:
// Measured: `16865`
// Estimated: `19894`
// Minimum execution time: 48_138_000 picoseconds.
Weight::from_parts(50_007_000, 19894)
// Minimum execution time: 56_642_000 picoseconds.
Weight::from_parts(59_353_000, 19894)
.saturating_add(T::DbWeight::get().reads(5_u64))
.saturating_add(T::DbWeight::get().writes(6_u64))
}
/// Storage: `RankedCollective::Members` (r:1 w:0)
/// Proof: `RankedCollective::Members` (`max_values`: None, `max_size`: Some(42), added: 2517, mode: `MaxEncodedLen`)
/// Storage: `CoreFellowship::Member` (r:1 w:1)
/// Proof: `CoreFellowship::Member` (`max_values`: None, `max_size`: Some(49), added: 2524, mode: `MaxEncodedLen`)
/// Storage: `CoreFellowship::MemberEvidence` (r:0 w:1)
/// Proof: `CoreFellowship::MemberEvidence` (`max_values`: None, `max_size`: Some(16429), added: 18904, mode: `MaxEncodedLen`)
/// Storage: RankedCollective Members (r:1 w:0)
/// Proof: RankedCollective Members (max_values: None, max_size: Some(42), added: 2517, mode: MaxEncodedLen)
/// Storage: CoreFellowship Member (r:1 w:1)
/// Proof: CoreFellowship Member (max_values: None, max_size: Some(49), added: 2524, mode: MaxEncodedLen)
/// Storage: CoreFellowship MemberEvidence (r:0 w:1)
/// Proof: CoreFellowship MemberEvidence (max_values: None, max_size: Some(16429), added: 18904, mode: MaxEncodedLen)
fn offboard() -> Weight {
// Proof Size summary in bytes:
// Measured: `293`
// Measured: `359`
// Estimated: `3514`
// Minimum execution time: 15_225_000 picoseconds.
Weight::from_parts(15_730_000, 3514)
// Minimum execution time: 17_459_000 picoseconds.
Weight::from_parts(18_033_000, 3514)
.saturating_add(T::DbWeight::get().reads(2_u64))
.saturating_add(T::DbWeight::get().writes(2_u64))
}
/// Storage: `CoreFellowship::Member` (r:1 w:1)
/// Proof: `CoreFellowship::Member` (`max_values`: None, `max_size`: Some(49), added: 2524, mode: `MaxEncodedLen`)
/// Storage: `RankedCollective::Members` (r:1 w:0)
/// Proof: `RankedCollective::Members` (`max_values`: None, `max_size`: Some(42), added: 2517, mode: `MaxEncodedLen`)
/// Storage: CoreFellowship Member (r:1 w:1)
/// Proof: CoreFellowship Member (max_values: None, max_size: Some(49), added: 2524, mode: MaxEncodedLen)
/// Storage: RankedCollective Members (r:1 w:0)
/// Proof: RankedCollective Members (max_values: None, max_size: Some(42), added: 2517, mode: MaxEncodedLen)
fn import() -> Weight {
// Proof Size summary in bytes:
// Measured: `313`
// Estimated: `3514`
// Minimum execution time: 14_507_000 picoseconds.
Weight::from_parts(14_935_000, 3514)
// Minimum execution time: 16_728_000 picoseconds.
Weight::from_parts(17_263_000, 3514)
.saturating_add(T::DbWeight::get().reads(2_u64))
.saturating_add(T::DbWeight::get().writes(1_u64))
}
/// Storage: `RankedCollective::Members` (r:1 w:0)
/// Proof: `RankedCollective::Members` (`max_values`: None, `max_size`: Some(42), added: 2517, mode: `MaxEncodedLen`)
/// Storage: `CoreFellowship::Member` (r:1 w:1)
/// Proof: `CoreFellowship::Member` (`max_values`: None, `max_size`: Some(49), added: 2524, mode: `MaxEncodedLen`)
/// Storage: `CoreFellowship::MemberEvidence` (r:1 w:1)
/// Proof: `CoreFellowship::MemberEvidence` (`max_values`: None, `max_size`: Some(16429), added: 18904, mode: `MaxEncodedLen`)
/// Storage: RankedCollective Members (r:1 w:0)
/// Proof: RankedCollective Members (max_values: None, max_size: Some(42), added: 2517, mode: MaxEncodedLen)
/// Storage: CoreFellowship Member (r:1 w:1)
/// Proof: CoreFellowship Member (max_values: None, max_size: Some(49), added: 2524, mode: MaxEncodedLen)
/// Storage: CoreFellowship MemberEvidence (r:1 w:1)
/// Proof: CoreFellowship MemberEvidence (max_values: None, max_size: Some(16429), added: 18904, mode: MaxEncodedLen)
fn approve() -> Weight {
// Proof Size summary in bytes:
// Measured: `16843`
// Estimated: `19894`
// Minimum execution time: 34_050_000 picoseconds.
Weight::from_parts(36_323_000, 19894)
// Minimum execution time: 41_487_000 picoseconds.
Weight::from_parts(43_459_000, 19894)
.saturating_add(T::DbWeight::get().reads(3_u64))
.saturating_add(T::DbWeight::get().writes(2_u64))
}
/// Storage: `CoreFellowship::Member` (r:1 w:0)
/// Proof: `CoreFellowship::Member` (`max_values`: None, `max_size`: Some(49), added: 2524, mode: `MaxEncodedLen`)
/// Storage: `CoreFellowship::MemberEvidence` (r:1 w:1)
/// Proof: `CoreFellowship::MemberEvidence` (`max_values`: None, `max_size`: Some(16429), added: 18904, mode: `MaxEncodedLen`)
/// Storage: CoreFellowship Member (r:1 w:0)
/// Proof: CoreFellowship Member (max_values: None, max_size: Some(49), added: 2524, mode: MaxEncodedLen)
/// Storage: CoreFellowship MemberEvidence (r:1 w:1)
/// Proof: CoreFellowship MemberEvidence (max_values: None, max_size: Some(16429), added: 18904, mode: MaxEncodedLen)
fn submit_evidence() -> Weight {
// Proof Size summary in bytes:
// Measured: `79`
// Estimated: `19894`
// Minimum execution time: 24_016_000 picoseconds.
Weight::from_parts(24_607_000, 19894)
// Minimum execution time: 26_033_000 picoseconds.
Weight::from_parts(26_612_000, 19894)
.saturating_add(T::DbWeight::get().reads(2_u64))
.saturating_add(T::DbWeight::get().writes(1_u64))
}
}
// For backwards compatibility and tests.
// For backwards compatibility and tests
impl WeightInfo for () {
/// Storage: `CoreFellowship::Params` (r:0 w:1)
/// Proof: `CoreFellowship::Params` (`max_values`: Some(1), `max_size`: Some(364), added: 859, mode: `MaxEncodedLen`)
/// Storage: CoreFellowship Params (r:0 w:1)
/// Proof: CoreFellowship Params (max_values: Some(1), max_size: Some(364), added: 859, mode: MaxEncodedLen)
fn set_params() -> Weight {
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `0`
// Minimum execution time: 7_146_000 picoseconds.
Weight::from_parts(7_426_000, 0)
// Minimum execution time: 9_454_000 picoseconds.
Weight::from_parts(9_804_000, 0)
.saturating_add(RocksDbWeight::get().writes(1_u64))
}
/// Storage: `CoreFellowship::Member` (r:1 w:1)
/// Proof: `CoreFellowship::Member` (`max_values`: None, `max_size`: Some(49), added: 2524, mode: `MaxEncodedLen`)
/// Storage: `RankedCollective::Members` (r:1 w:1)
/// Proof: `RankedCollective::Members` (`max_values`: None, `max_size`: Some(42), added: 2517, mode: `MaxEncodedLen`)
/// Storage: `CoreFellowship::Params` (r:1 w:0)
/// Proof: `CoreFellowship::Params` (`max_values`: Some(1), `max_size`: Some(364), added: 859, mode: `MaxEncodedLen`)
/// Storage: `RankedCollective::MemberCount` (r:1 w:1)
/// Proof: `RankedCollective::MemberCount` (`max_values`: None, `max_size`: Some(14), added: 2489, mode: `MaxEncodedLen`)
/// Storage: `RankedCollective::IdToIndex` (r:1 w:1)
/// Proof: `RankedCollective::IdToIndex` (`max_values`: None, `max_size`: Some(54), added: 2529, mode: `MaxEncodedLen`)
/// Storage: `CoreFellowship::MemberEvidence` (r:1 w:1)
/// Proof: `CoreFellowship::MemberEvidence` (`max_values`: None, `max_size`: Some(16429), added: 18904, mode: `MaxEncodedLen`)
/// Storage: `RankedCollective::IndexToId` (r:0 w:1)
/// Proof: `RankedCollective::IndexToId` (`max_values`: None, `max_size`: Some(54), added: 2529, mode: `MaxEncodedLen`)
/// Storage: CoreFellowship Member (r:1 w:1)
/// Proof: CoreFellowship Member (max_values: None, max_size: Some(49), added: 2524, mode: MaxEncodedLen)
/// Storage: RankedCollective Members (r:1 w:1)
/// Proof: RankedCollective Members (max_values: None, max_size: Some(42), added: 2517, mode: MaxEncodedLen)
/// Storage: CoreFellowship Params (r:1 w:0)
/// Proof: CoreFellowship Params (max_values: Some(1), max_size: Some(364), added: 859, mode: MaxEncodedLen)
/// Storage: RankedCollective MemberCount (r:1 w:1)
/// Proof: RankedCollective MemberCount (max_values: None, max_size: Some(14), added: 2489, mode: MaxEncodedLen)
/// Storage: RankedCollective IdToIndex (r:1 w:0)
/// Proof: RankedCollective IdToIndex (max_values: None, max_size: Some(54), added: 2529, mode: MaxEncodedLen)
/// Storage: CoreFellowship MemberEvidence (r:1 w:1)
/// Proof: CoreFellowship MemberEvidence (max_values: None, max_size: Some(16429), added: 18904, mode: MaxEncodedLen)
fn bump_offboard() -> Weight {
// Proof Size summary in bytes:
// Measured: `17274`
// Measured: `16887`
// Estimated: `19894`
// Minimum execution time: 54_511_000 picoseconds.
Weight::from_parts(56_995_000, 19894)
// Minimum execution time: 58_489_000 picoseconds.
Weight::from_parts(60_202_000, 19894)
.saturating_add(RocksDbWeight::get().reads(6_u64))
.saturating_add(RocksDbWeight::get().writes(6_u64))
.saturating_add(RocksDbWeight::get().writes(4_u64))
}
/// Storage: `CoreFellowship::Member` (r:1 w:1)
/// Proof: `CoreFellowship::Member` (`max_values`: None, `max_size`: Some(49), added: 2524, mode: `MaxEncodedLen`)
/// Storage: `RankedCollective::Members` (r:1 w:1)
/// Proof: `RankedCollective::Members` (`max_values`: None, `max_size`: Some(42), added: 2517, mode: `MaxEncodedLen`)
/// Storage: `CoreFellowship::Params` (r:1 w:0)
/// Proof: `CoreFellowship::Params` (`max_values`: Some(1), `max_size`: Some(364), added: 859, mode: `MaxEncodedLen`)
/// Storage: `RankedCollective::MemberCount` (r:1 w:1)
/// Proof: `RankedCollective::MemberCount` (`max_values`: None, `max_size`: Some(14), added: 2489, mode: `MaxEncodedLen`)
/// Storage: `RankedCollective::IdToIndex` (r:1 w:1)
/// Proof: `RankedCollective::IdToIndex` (`max_values`: None, `max_size`: Some(54), added: 2529, mode: `MaxEncodedLen`)
/// Storage: `CoreFellowship::MemberEvidence` (r:1 w:1)
/// Proof: `CoreFellowship::MemberEvidence` (`max_values`: None, `max_size`: Some(16429), added: 18904, mode: `MaxEncodedLen`)
/// Storage: `RankedCollective::IndexToId` (r:0 w:1)
/// Proof: `RankedCollective::IndexToId` (`max_values`: None, `max_size`: Some(54), added: 2529, mode: `MaxEncodedLen`)
/// Storage: CoreFellowship Member (r:1 w:1)
/// Proof: CoreFellowship Member (max_values: None, max_size: Some(49), added: 2524, mode: MaxEncodedLen)
/// Storage: RankedCollective Members (r:1 w:1)
/// Proof: RankedCollective Members (max_values: None, max_size: Some(42), added: 2517, mode: MaxEncodedLen)
/// Storage: CoreFellowship Params (r:1 w:0)
/// Proof: CoreFellowship Params (max_values: Some(1), max_size: Some(364), added: 859, mode: MaxEncodedLen)
/// Storage: RankedCollective MemberCount (r:1 w:1)
/// Proof: RankedCollective MemberCount (max_values: None, max_size: Some(14), added: 2489, mode: MaxEncodedLen)
/// Storage: RankedCollective IdToIndex (r:1 w:0)
/// Proof: RankedCollective IdToIndex (max_values: None, max_size: Some(54), added: 2529, mode: MaxEncodedLen)
/// Storage: CoreFellowship MemberEvidence (r:1 w:1)
/// Proof: CoreFellowship MemberEvidence (max_values: None, max_size: Some(16429), added: 18904, mode: MaxEncodedLen)
fn bump_demote() -> Weight {
// Proof Size summary in bytes:
// Measured: `17384`
// Measured: `16997`
// Estimated: `19894`
// Minimum execution time: 56_453_000 picoseconds.
Weight::from_parts(59_030_000, 19894)
// Minimum execution time: 60_605_000 picoseconds.
Weight::from_parts(63_957_000, 19894)
.saturating_add(RocksDbWeight::get().reads(6_u64))
.saturating_add(RocksDbWeight::get().writes(6_u64))
.saturating_add(RocksDbWeight::get().writes(4_u64))
}
/// Storage: `RankedCollective::Members` (r:1 w:0)
/// Proof: `RankedCollective::Members` (`max_values`: None, `max_size`: Some(42), added: 2517, mode: `MaxEncodedLen`)
/// Storage: `CoreFellowship::Member` (r:1 w:1)
/// Proof: `CoreFellowship::Member` (`max_values`: None, `max_size`: Some(49), added: 2524, mode: `MaxEncodedLen`)
/// Storage: RankedCollective Members (r:1 w:0)
/// Proof: RankedCollective Members (max_values: None, max_size: Some(42), added: 2517, mode: MaxEncodedLen)
/// Storage: CoreFellowship Member (r:1 w:1)
/// Proof: CoreFellowship Member (max_values: None, max_size: Some(49), added: 2524, mode: MaxEncodedLen)
fn set_active() -> Weight {
// Proof Size summary in bytes:
// Measured: `388`
// Estimated: `3514`
// Minimum execution time: 15_940_000 picoseconds.
Weight::from_parts(16_381_000, 3514)
// Minimum execution time: 17_816_000 picoseconds.
Weight::from_parts(18_524_000, 3514)
.saturating_add(RocksDbWeight::get().reads(2_u64))
.saturating_add(RocksDbWeight::get().writes(1_u64))
}
/// Storage: `CoreFellowship::Member` (r:1 w:1)
/// Proof: `CoreFellowship::Member` (`max_values`: None, `max_size`: Some(49), added: 2524, mode: `MaxEncodedLen`)
/// Storage: `RankedCollective::Members` (r:1 w:1)
/// Proof: `RankedCollective::Members` (`max_values`: None, `max_size`: Some(42), added: 2517, mode: `MaxEncodedLen`)
/// Storage: `RankedCollective::MemberCount` (r:1 w:1)
/// Proof: `RankedCollective::MemberCount` (`max_values`: None, `max_size`: Some(14), added: 2489, mode: `MaxEncodedLen`)
/// Storage: `RankedCollective::IndexToId` (r:0 w:1)
/// Proof: `RankedCollective::IndexToId` (`max_values`: None, `max_size`: Some(54), added: 2529, mode: `MaxEncodedLen`)
/// Storage: `RankedCollective::IdToIndex` (r:0 w:1)
/// Proof: `RankedCollective::IdToIndex` (`max_values`: None, `max_size`: Some(54), added: 2529, mode: `MaxEncodedLen`)
/// Storage: CoreFellowship Member (r:1 w:1)
/// Proof: CoreFellowship Member (max_values: None, max_size: Some(49), added: 2524, mode: MaxEncodedLen)
/// Storage: RankedCollective Members (r:1 w:1)
/// Proof: RankedCollective Members (max_values: None, max_size: Some(42), added: 2517, mode: MaxEncodedLen)
/// Storage: RankedCollective MemberCount (r:1 w:1)
/// Proof: RankedCollective MemberCount (max_values: None, max_size: Some(14), added: 2489, mode: MaxEncodedLen)
/// Storage: RankedCollective IndexToId (r:0 w:1)
/// Proof: RankedCollective IndexToId (max_values: None, max_size: Some(54), added: 2529, mode: MaxEncodedLen)
/// Storage: RankedCollective IdToIndex (r:0 w:1)
/// Proof: RankedCollective IdToIndex (max_values: None, max_size: Some(54), added: 2529, mode: MaxEncodedLen)
fn induct() -> Weight {
// Proof Size summary in bytes:
// Measured: `146`
// Estimated: `3514`
// Minimum execution time: 24_193_000 picoseconds.
Weight::from_parts(24_963_000, 3514)
// Minimum execution time: 27_249_000 picoseconds.
Weight::from_parts(28_049_000, 3514)
.saturating_add(RocksDbWeight::get().reads(3_u64))
.saturating_add(RocksDbWeight::get().writes(5_u64))
}
/// Storage: `RankedCollective::Members` (r:1 w:1)
/// Proof: `RankedCollective::Members` (`max_values`: None, `max_size`: Some(42), added: 2517, mode: `MaxEncodedLen`)
/// Storage: `CoreFellowship::Member` (r:1 w:1)
/// Proof: `CoreFellowship::Member` (`max_values`: None, `max_size`: Some(49), added: 2524, mode: `MaxEncodedLen`)
/// Storage: `CoreFellowship::Params` (r:1 w:0)
/// Proof: `CoreFellowship::Params` (`max_values`: Some(1), `max_size`: Some(364), added: 859, mode: `MaxEncodedLen`)
/// Storage: `RankedCollective::MemberCount` (r:1 w:1)
/// Proof: `RankedCollective::MemberCount` (`max_values`: None, `max_size`: Some(14), added: 2489, mode: `MaxEncodedLen`)
/// Storage: `CoreFellowship::MemberEvidence` (r:1 w:1)
/// Proof: `CoreFellowship::MemberEvidence` (`max_values`: None, `max_size`: Some(16429), added: 18904, mode: `MaxEncodedLen`)
/// Storage: `RankedCollective::IndexToId` (r:0 w:1)
/// Proof: `RankedCollective::IndexToId` (`max_values`: None, `max_size`: Some(54), added: 2529, mode: `MaxEncodedLen`)
/// Storage: `RankedCollective::IdToIndex` (r:0 w:1)
/// Proof: `RankedCollective::IdToIndex` (`max_values`: None, `max_size`: Some(54), added: 2529, mode: `MaxEncodedLen`)
/// Storage: RankedCollective Members (r:1 w:1)
/// Proof: RankedCollective Members (max_values: None, max_size: Some(42), added: 2517, mode: MaxEncodedLen)
/// Storage: CoreFellowship Member (r:1 w:1)
/// Proof: CoreFellowship Member (max_values: None, max_size: Some(49), added: 2524, mode: MaxEncodedLen)
/// Storage: CoreFellowship Params (r:1 w:0)
/// Proof: CoreFellowship Params (max_values: Some(1), max_size: Some(364), added: 859, mode: MaxEncodedLen)
/// Storage: RankedCollective MemberCount (r:1 w:1)
/// Proof: RankedCollective MemberCount (max_values: None, max_size: Some(14), added: 2489, mode: MaxEncodedLen)
/// Storage: CoreFellowship MemberEvidence (r:1 w:1)
/// Proof: CoreFellowship MemberEvidence (max_values: None, max_size: Some(16429), added: 18904, mode: MaxEncodedLen)
/// Storage: RankedCollective IndexToId (r:0 w:1)
/// Proof: RankedCollective IndexToId (max_values: None, max_size: Some(54), added: 2529, mode: MaxEncodedLen)
/// Storage: RankedCollective IdToIndex (r:0 w:1)
/// Proof: RankedCollective IdToIndex (max_values: None, max_size: Some(54), added: 2529, mode: MaxEncodedLen)
fn promote() -> Weight {
// Proof Size summary in bytes:
// Measured: `16865`
// Estimated: `19894`
// Minimum execution time: 48_138_000 picoseconds.
Weight::from_parts(50_007_000, 19894)
// Minimum execution time: 56_642_000 picoseconds.
Weight::from_parts(59_353_000, 19894)
.saturating_add(RocksDbWeight::get().reads(5_u64))
.saturating_add(RocksDbWeight::get().writes(6_u64))
}
/// Storage: `RankedCollective::Members` (r:1 w:0)
/// Proof: `RankedCollective::Members` (`max_values`: None, `max_size`: Some(42), added: 2517, mode: `MaxEncodedLen`)
/// Storage: `CoreFellowship::Member` (r:1 w:1)
/// Proof: `CoreFellowship::Member` (`max_values`: None, `max_size`: Some(49), added: 2524, mode: `MaxEncodedLen`)
/// Storage: `CoreFellowship::MemberEvidence` (r:0 w:1)
/// Proof: `CoreFellowship::MemberEvidence` (`max_values`: None, `max_size`: Some(16429), added: 18904, mode: `MaxEncodedLen`)
/// Storage: RankedCollective Members (r:1 w:0)
/// Proof: RankedCollective Members (max_values: None, max_size: Some(42), added: 2517, mode: MaxEncodedLen)
/// Storage: CoreFellowship Member (r:1 w:1)
/// Proof: CoreFellowship Member (max_values: None, max_size: Some(49), added: 2524, mode: MaxEncodedLen)
/// Storage: CoreFellowship MemberEvidence (r:0 w:1)
/// Proof: CoreFellowship MemberEvidence (max_values: None, max_size: Some(16429), added: 18904, mode: MaxEncodedLen)
fn offboard() -> Weight {
// Proof Size summary in bytes:
// Measured: `293`
// Measured: `359`
// Estimated: `3514`
// Minimum execution time: 15_225_000 picoseconds.
Weight::from_parts(15_730_000, 3514)
// Minimum execution time: 17_459_000 picoseconds.
Weight::from_parts(18_033_000, 3514)
.saturating_add(RocksDbWeight::get().reads(2_u64))
.saturating_add(RocksDbWeight::get().writes(2_u64))
}
/// Storage: `CoreFellowship::Member` (r:1 w:1)
/// Proof: `CoreFellowship::Member` (`max_values`: None, `max_size`: Some(49), added: 2524, mode: `MaxEncodedLen`)
/// Storage: `RankedCollective::Members` (r:1 w:0)
/// Proof: `RankedCollective::Members` (`max_values`: None, `max_size`: Some(42), added: 2517, mode: `MaxEncodedLen`)
/// Storage: CoreFellowship Member (r:1 w:1)
/// Proof: CoreFellowship Member (max_values: None, max_size: Some(49), added: 2524, mode: MaxEncodedLen)
/// Storage: RankedCollective Members (r:1 w:0)
/// Proof: RankedCollective Members (max_values: None, max_size: Some(42), added: 2517, mode: MaxEncodedLen)
fn import() -> Weight {
// Proof Size summary in bytes:
// Measured: `313`
// Estimated: `3514`
// Minimum execution time: 14_507_000 picoseconds.
Weight::from_parts(14_935_000, 3514)
// Minimum execution time: 16_728_000 picoseconds.
Weight::from_parts(17_263_000, 3514)
.saturating_add(RocksDbWeight::get().reads(2_u64))
.saturating_add(RocksDbWeight::get().writes(1_u64))
}
/// Storage: `RankedCollective::Members` (r:1 w:0)
/// Proof: `RankedCollective::Members` (`max_values`: None, `max_size`: Some(42), added: 2517, mode: `MaxEncodedLen`)
/// Storage: `CoreFellowship::Member` (r:1 w:1)
/// Proof: `CoreFellowship::Member` (`max_values`: None, `max_size`: Some(49), added: 2524, mode: `MaxEncodedLen`)
/// Storage: `CoreFellowship::MemberEvidence` (r:1 w:1)
/// Proof: `CoreFellowship::MemberEvidence` (`max_values`: None, `max_size`: Some(16429), added: 18904, mode: `MaxEncodedLen`)
/// Storage: RankedCollective Members (r:1 w:0)
/// Proof: RankedCollective Members (max_values: None, max_size: Some(42), added: 2517, mode: MaxEncodedLen)
/// Storage: CoreFellowship Member (r:1 w:1)
/// Proof: CoreFellowship Member (max_values: None, max_size: Some(49), added: 2524, mode: MaxEncodedLen)
/// Storage: CoreFellowship MemberEvidence (r:1 w:1)
/// Proof: CoreFellowship MemberEvidence (max_values: None, max_size: Some(16429), added: 18904, mode: MaxEncodedLen)
fn approve() -> Weight {
// Proof Size summary in bytes:
// Measured: `16843`
// Estimated: `19894`
// Minimum execution time: 34_050_000 picoseconds.
Weight::from_parts(36_323_000, 19894)
// Minimum execution time: 41_487_000 picoseconds.
Weight::from_parts(43_459_000, 19894)
.saturating_add(RocksDbWeight::get().reads(3_u64))
.saturating_add(RocksDbWeight::get().writes(2_u64))
}
/// Storage: `CoreFellowship::Member` (r:1 w:0)
/// Proof: `CoreFellowship::Member` (`max_values`: None, `max_size`: Some(49), added: 2524, mode: `MaxEncodedLen`)
/// Storage: `CoreFellowship::MemberEvidence` (r:1 w:1)
/// Proof: `CoreFellowship::MemberEvidence` (`max_values`: None, `max_size`: Some(16429), added: 18904, mode: `MaxEncodedLen`)
/// Storage: CoreFellowship Member (r:1 w:0)
/// Proof: CoreFellowship Member (max_values: None, max_size: Some(49), added: 2524, mode: MaxEncodedLen)
/// Storage: CoreFellowship MemberEvidence (r:1 w:1)
/// Proof: CoreFellowship MemberEvidence (max_values: None, max_size: Some(16429), added: 18904, mode: MaxEncodedLen)
fn submit_evidence() -> Weight {
// Proof Size summary in bytes:
// Measured: `79`
// Estimated: `19894`
// Minimum execution time: 24_016_000 picoseconds.
Weight::from_parts(24_607_000, 19894)
// Minimum execution time: 26_033_000 picoseconds.
Weight::from_parts(26_612_000, 19894)
.saturating_add(RocksDbWeight::get().reads(2_u64))
.saturating_add(RocksDbWeight::get().writes(1_u64))
}
+541 -552
View File
File diff suppressed because it is too large Load Diff
@@ -441,7 +441,7 @@ where
type Extrinsic = Extrinsic;
}
pub type Extrinsic = sp_runtime::generic::UncheckedExtrinsic<u64, RuntimeCall, (), ()>;
pub type Extrinsic = sp_runtime::testing::TestXt<RuntimeCall, ()>;
parameter_types! {
pub MaxNominations: u32 = <TestNposSolution as NposSolution>::LIMIT as u32;
@@ -1813,7 +1813,7 @@ mod tests {
let encoded = pool.read().transactions[0].clone();
let extrinsic: Extrinsic = codec::Decode::decode(&mut &*encoded).unwrap();
let call = extrinsic.function;
let call = extrinsic.call;
assert!(matches!(call, RuntimeCall::MultiPhase(Call::submit_unsigned { .. })));
})
}
@@ -1830,7 +1830,7 @@ mod tests {
let encoded = pool.read().transactions[0].clone();
let extrinsic = Extrinsic::decode(&mut &*encoded).unwrap();
let call = match extrinsic.function {
let call = match extrinsic.call {
RuntimeCall::MultiPhase(call @ Call::submit_unsigned { .. }) => call,
_ => panic!("bad call: unexpected submission"),
};
+257 -260
View File
@@ -15,16 +15,16 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//! Autogenerated weights for `pallet_election_provider_multi_phase`
//! Autogenerated weights for pallet_election_provider_multi_phase
//!
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0
//! DATE: 2024-03-01, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
//! DATE: 2023-06-16, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! WORST CASE MAP SIZE: `1000000`
//! HOSTNAME: `runner-bn-ce5rx-project-674-concurrent-0`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz`
//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("dev")`, DB CACHE: `1024`
//! HOSTNAME: `runner-e8ezs4ez-project-145-concurrent-0`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz`
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024
// Executed Command:
// ./target/production/substrate-node
// ./target/production/substrate
// benchmark
// pallet
// --chain=dev
@@ -35,11 +35,12 @@
// --no-median-slopes
// --no-min-squares
// --extrinsic=*
// --execution=wasm
// --wasm-execution=compiled
// --heap-pages=4096
// --output=./substrate/frame/election-provider-multi-phase/src/weights.rs
// --header=./substrate/HEADER-APACHE2
// --template=./substrate/.maintain/frame-weight-template.hbs
// --output=./frame/election-provider-multi-phase/src/weights.rs
// --header=./HEADER-APACHE2
// --template=./.maintain/frame-weight-template.hbs
#![cfg_attr(rustfmt, rustfmt_skip)]
#![allow(unused_parens)]
@@ -49,7 +50,7 @@
use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}};
use core::marker::PhantomData;
/// Weight functions needed for `pallet_election_provider_multi_phase`.
/// Weight functions needed for pallet_election_provider_multi_phase.
pub trait WeightInfo {
fn on_initialize_nothing() -> Weight;
fn on_initialize_open_signed() -> Weight;
@@ -63,171 +64,169 @@ pub trait WeightInfo {
fn feasibility_check(v: u32, t: u32, a: u32, d: u32, ) -> Weight;
}
/// Weights for `pallet_election_provider_multi_phase` using the Substrate node and recommended hardware.
/// Weights for pallet_election_provider_multi_phase using the Substrate node and recommended hardware.
pub struct SubstrateWeight<T>(PhantomData<T>);
impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
/// Storage: `Staking::CurrentEra` (r:1 w:0)
/// Proof: `Staking::CurrentEra` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
/// Storage: `Staking::CurrentPlannedSession` (r:1 w:0)
/// Proof: `Staking::CurrentPlannedSession` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
/// Storage: `Staking::ErasStartSessionIndex` (r:1 w:0)
/// Proof: `Staking::ErasStartSessionIndex` (`max_values`: None, `max_size`: Some(16), added: 2491, mode: `MaxEncodedLen`)
/// Storage: `Babe::EpochIndex` (r:1 w:0)
/// Proof: `Babe::EpochIndex` (`max_values`: Some(1), `max_size`: Some(8), added: 503, mode: `MaxEncodedLen`)
/// Storage: `Babe::GenesisSlot` (r:1 w:0)
/// Proof: `Babe::GenesisSlot` (`max_values`: Some(1), `max_size`: Some(8), added: 503, mode: `MaxEncodedLen`)
/// Storage: `Babe::CurrentSlot` (r:1 w:0)
/// Proof: `Babe::CurrentSlot` (`max_values`: Some(1), `max_size`: Some(8), added: 503, mode: `MaxEncodedLen`)
/// Storage: `Staking::ForceEra` (r:1 w:0)
/// Proof: `Staking::ForceEra` (`max_values`: Some(1), `max_size`: Some(1), added: 496, mode: `MaxEncodedLen`)
/// Storage: `ElectionProviderMultiPhase::CurrentPhase` (r:1 w:0)
/// Proof: `ElectionProviderMultiPhase::CurrentPhase` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// Storage: Staking CurrentEra (r:1 w:0)
/// Proof: Staking CurrentEra (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
/// Storage: Staking CurrentPlannedSession (r:1 w:0)
/// Proof: Staking CurrentPlannedSession (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
/// Storage: Staking ErasStartSessionIndex (r:1 w:0)
/// Proof: Staking ErasStartSessionIndex (max_values: None, max_size: Some(16), added: 2491, mode: MaxEncodedLen)
/// Storage: Babe EpochIndex (r:1 w:0)
/// Proof: Babe EpochIndex (max_values: Some(1), max_size: Some(8), added: 503, mode: MaxEncodedLen)
/// Storage: Babe GenesisSlot (r:1 w:0)
/// Proof: Babe GenesisSlot (max_values: Some(1), max_size: Some(8), added: 503, mode: MaxEncodedLen)
/// Storage: Babe CurrentSlot (r:1 w:0)
/// Proof: Babe CurrentSlot (max_values: Some(1), max_size: Some(8), added: 503, mode: MaxEncodedLen)
/// Storage: Staking ForceEra (r:1 w:0)
/// Proof: Staking ForceEra (max_values: Some(1), max_size: Some(1), added: 496, mode: MaxEncodedLen)
/// Storage: ElectionProviderMultiPhase CurrentPhase (r:1 w:0)
/// Proof Skipped: ElectionProviderMultiPhase CurrentPhase (max_values: Some(1), max_size: None, mode: Measured)
fn on_initialize_nothing() -> Weight {
// Proof Size summary in bytes:
// Measured: `1061`
// Measured: `1028`
// Estimated: `3481`
// Minimum execution time: 19_340_000 picoseconds.
Weight::from_parts(19_886_000, 3481)
// Minimum execution time: 22_089_000 picoseconds.
Weight::from_parts(22_677_000, 3481)
.saturating_add(T::DbWeight::get().reads(8_u64))
}
/// Storage: `ElectionProviderMultiPhase::Round` (r:1 w:0)
/// Proof: `ElectionProviderMultiPhase::Round` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// Storage: `ElectionProviderMultiPhase::CurrentPhase` (r:1 w:1)
/// Proof: `ElectionProviderMultiPhase::CurrentPhase` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// Storage: ElectionProviderMultiPhase Round (r:1 w:0)
/// Proof Skipped: ElectionProviderMultiPhase Round (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: ElectionProviderMultiPhase CurrentPhase (r:1 w:1)
/// Proof Skipped: ElectionProviderMultiPhase CurrentPhase (max_values: Some(1), max_size: None, mode: Measured)
fn on_initialize_open_signed() -> Weight {
// Proof Size summary in bytes:
// Measured: `148`
// Estimated: `1633`
// Minimum execution time: 8_067_000 picoseconds.
Weight::from_parts(8_508_000, 1633)
// Minimum execution time: 11_986_000 picoseconds.
Weight::from_parts(12_445_000, 1633)
.saturating_add(T::DbWeight::get().reads(2_u64))
.saturating_add(T::DbWeight::get().writes(1_u64))
}
/// Storage: `ElectionProviderMultiPhase::Round` (r:1 w:0)
/// Proof: `ElectionProviderMultiPhase::Round` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// Storage: `ElectionProviderMultiPhase::CurrentPhase` (r:1 w:1)
/// Proof: `ElectionProviderMultiPhase::CurrentPhase` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// Storage: ElectionProviderMultiPhase Round (r:1 w:0)
/// Proof Skipped: ElectionProviderMultiPhase Round (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: ElectionProviderMultiPhase CurrentPhase (r:1 w:1)
/// Proof Skipped: ElectionProviderMultiPhase CurrentPhase (max_values: Some(1), max_size: None, mode: Measured)
fn on_initialize_open_unsigned() -> Weight {
// Proof Size summary in bytes:
// Measured: `148`
// Estimated: `1633`
// Minimum execution time: 8_810_000 picoseconds.
Weight::from_parts(9_061_000, 1633)
// Minimum execution time: 12_988_000 picoseconds.
Weight::from_parts(13_281_000, 1633)
.saturating_add(T::DbWeight::get().reads(2_u64))
.saturating_add(T::DbWeight::get().writes(1_u64))
}
/// Storage: `System::Account` (r:1 w:1)
/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
/// Storage: `ElectionProviderMultiPhase::QueuedSolution` (r:0 w:1)
/// Proof: `ElectionProviderMultiPhase::QueuedSolution` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// Storage: System Account (r:1 w:1)
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
/// Storage: ElectionProviderMultiPhase QueuedSolution (r:0 w:1)
/// Proof Skipped: ElectionProviderMultiPhase QueuedSolution (max_values: Some(1), max_size: None, mode: Measured)
fn finalize_signed_phase_accept_solution() -> Weight {
// Proof Size summary in bytes:
// Measured: `174`
// Estimated: `3593`
// Minimum execution time: 24_339_000 picoseconds.
Weight::from_parts(25_322_000, 3593)
// Minimum execution time: 32_659_000 picoseconds.
Weight::from_parts(33_281_000, 3593)
.saturating_add(T::DbWeight::get().reads(1_u64))
.saturating_add(T::DbWeight::get().writes(2_u64))
}
/// Storage: `System::Account` (r:1 w:1)
/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
/// Storage: System Account (r:1 w:1)
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
fn finalize_signed_phase_reject_solution() -> Weight {
// Proof Size summary in bytes:
// Measured: `174`
// Estimated: `3593`
// Minimum execution time: 16_635_000 picoseconds.
Weight::from_parts(17_497_000, 3593)
// Minimum execution time: 22_471_000 picoseconds.
Weight::from_parts(23_046_000, 3593)
.saturating_add(T::DbWeight::get().reads(1_u64))
.saturating_add(T::DbWeight::get().writes(1_u64))
}
/// Storage: `ElectionProviderMultiPhase::SnapshotMetadata` (r:0 w:1)
/// Proof: `ElectionProviderMultiPhase::SnapshotMetadata` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// Storage: `ElectionProviderMultiPhase::DesiredTargets` (r:0 w:1)
/// Proof: `ElectionProviderMultiPhase::DesiredTargets` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// Storage: `ElectionProviderMultiPhase::Snapshot` (r:0 w:1)
/// Proof: `ElectionProviderMultiPhase::Snapshot` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// Storage: ElectionProviderMultiPhase SnapshotMetadata (r:0 w:1)
/// Proof Skipped: ElectionProviderMultiPhase SnapshotMetadata (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: ElectionProviderMultiPhase DesiredTargets (r:0 w:1)
/// Proof Skipped: ElectionProviderMultiPhase DesiredTargets (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: ElectionProviderMultiPhase Snapshot (r:0 w:1)
/// Proof Skipped: ElectionProviderMultiPhase Snapshot (max_values: Some(1), max_size: None, mode: Measured)
/// The range of component `v` is `[1000, 2000]`.
/// The range of component `t` is `[500, 1000]`.
fn create_snapshot_internal(v: u32, _t: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `0`
// Minimum execution time: 170_730_000 picoseconds.
Weight::from_parts(175_009_000, 0)
// Standard Error: 2_010
.saturating_add(Weight::from_parts(224_974, 0).saturating_mul(v.into()))
// Minimum execution time: 262_360_000 picoseconds.
Weight::from_parts(279_313_000, 0)
// Standard Error: 2_384
.saturating_add(Weight::from_parts(176_415, 0).saturating_mul(v.into()))
.saturating_add(T::DbWeight::get().writes(3_u64))
}
/// Storage: `ElectionProviderMultiPhase::SignedSubmissionIndices` (r:1 w:1)
/// Proof: `ElectionProviderMultiPhase::SignedSubmissionIndices` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// Storage: `ElectionProviderMultiPhase::SignedSubmissionNextIndex` (r:1 w:1)
/// Proof: `ElectionProviderMultiPhase::SignedSubmissionNextIndex` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// Storage: `ElectionProviderMultiPhase::SnapshotMetadata` (r:1 w:1)
/// Proof: `ElectionProviderMultiPhase::SnapshotMetadata` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// Storage: `ElectionProviderMultiPhase::SignedSubmissionsMap` (r:1 w:0)
/// Proof: `ElectionProviderMultiPhase::SignedSubmissionsMap` (`max_values`: None, `max_size`: None, mode: `Measured`)
/// Storage: `ElectionProviderMultiPhase::QueuedSolution` (r:1 w:1)
/// Proof: `ElectionProviderMultiPhase::QueuedSolution` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// Storage: `ElectionProviderMultiPhase::Round` (r:1 w:1)
/// Proof: `ElectionProviderMultiPhase::Round` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// Storage: `ElectionProviderMultiPhase::CurrentPhase` (r:1 w:1)
/// Proof: `ElectionProviderMultiPhase::CurrentPhase` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// Storage: `ElectionProviderMultiPhase::DesiredTargets` (r:0 w:1)
/// Proof: `ElectionProviderMultiPhase::DesiredTargets` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// Storage: `ElectionProviderMultiPhase::Snapshot` (r:0 w:1)
/// Proof: `ElectionProviderMultiPhase::Snapshot` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// Storage: ElectionProviderMultiPhase SignedSubmissionIndices (r:1 w:1)
/// Proof Skipped: ElectionProviderMultiPhase SignedSubmissionIndices (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: ElectionProviderMultiPhase SignedSubmissionNextIndex (r:1 w:1)
/// Proof Skipped: ElectionProviderMultiPhase SignedSubmissionNextIndex (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: ElectionProviderMultiPhase SnapshotMetadata (r:1 w:1)
/// Proof Skipped: ElectionProviderMultiPhase SnapshotMetadata (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: ElectionProviderMultiPhase SignedSubmissionsMap (r:1 w:0)
/// Proof Skipped: ElectionProviderMultiPhase SignedSubmissionsMap (max_values: None, max_size: None, mode: Measured)
/// Storage: ElectionProviderMultiPhase QueuedSolution (r:1 w:1)
/// Proof Skipped: ElectionProviderMultiPhase QueuedSolution (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: ElectionProviderMultiPhase Round (r:1 w:1)
/// Proof Skipped: ElectionProviderMultiPhase Round (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: ElectionProviderMultiPhase CurrentPhase (r:1 w:1)
/// Proof Skipped: ElectionProviderMultiPhase CurrentPhase (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: ElectionProviderMultiPhase DesiredTargets (r:0 w:1)
/// Proof Skipped: ElectionProviderMultiPhase DesiredTargets (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: ElectionProviderMultiPhase Snapshot (r:0 w:1)
/// Proof Skipped: ElectionProviderMultiPhase Snapshot (max_values: Some(1), max_size: None, mode: Measured)
/// The range of component `a` is `[500, 800]`.
/// The range of component `d` is `[200, 400]`.
fn elect_queued(a: u32, d: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `371 + a * (768 ±0) + d * (48 ±0)`
// Estimated: `3923 + a * (768 ±0) + d * (49 ±0)`
// Minimum execution time: 280_705_000 picoseconds.
Weight::from_parts(303_018_000, 3923)
// Standard Error: 4_633
.saturating_add(Weight::from_parts(307_274, 0).saturating_mul(a.into()))
// Minimum execution time: 301_283_000 picoseconds.
Weight::from_parts(324_586_000, 3923)
// Standard Error: 4_763
.saturating_add(Weight::from_parts(279_812, 0).saturating_mul(a.into()))
.saturating_add(T::DbWeight::get().reads(7_u64))
.saturating_add(T::DbWeight::get().writes(8_u64))
.saturating_add(Weight::from_parts(0, 768).saturating_mul(a.into()))
.saturating_add(Weight::from_parts(0, 49).saturating_mul(d.into()))
}
/// Storage: `ElectionProviderMultiPhase::CurrentPhase` (r:1 w:0)
/// Proof: `ElectionProviderMultiPhase::CurrentPhase` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// Storage: `ElectionProviderMultiPhase::Round` (r:1 w:0)
/// Proof: `ElectionProviderMultiPhase::Round` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// Storage: `ElectionProviderMultiPhase::SnapshotMetadata` (r:1 w:0)
/// Proof: `ElectionProviderMultiPhase::SnapshotMetadata` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// Storage: `ElectionProviderMultiPhase::SignedSubmissionIndices` (r:1 w:1)
/// Proof: `ElectionProviderMultiPhase::SignedSubmissionIndices` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// Storage: `ElectionProviderMultiPhase::SignedSubmissionNextIndex` (r:1 w:1)
/// Proof: `ElectionProviderMultiPhase::SignedSubmissionNextIndex` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// Storage: `TransactionPayment::NextFeeMultiplier` (r:1 w:0)
/// Proof: `TransactionPayment::NextFeeMultiplier` (`max_values`: Some(1), `max_size`: Some(16), added: 511, mode: `MaxEncodedLen`)
/// Storage: `ElectionProviderMultiPhase::SignedSubmissionsMap` (r:0 w:1)
/// Proof: `ElectionProviderMultiPhase::SignedSubmissionsMap` (`max_values`: None, `max_size`: None, mode: `Measured`)
/// Storage: ElectionProviderMultiPhase CurrentPhase (r:1 w:0)
/// Proof Skipped: ElectionProviderMultiPhase CurrentPhase (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: ElectionProviderMultiPhase SnapshotMetadata (r:1 w:0)
/// Proof Skipped: ElectionProviderMultiPhase SnapshotMetadata (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: TransactionPayment NextFeeMultiplier (r:1 w:0)
/// Proof: TransactionPayment NextFeeMultiplier (max_values: Some(1), max_size: Some(16), added: 511, mode: MaxEncodedLen)
/// Storage: ElectionProviderMultiPhase SignedSubmissionIndices (r:1 w:1)
/// Proof Skipped: ElectionProviderMultiPhase SignedSubmissionIndices (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: ElectionProviderMultiPhase SignedSubmissionNextIndex (r:1 w:1)
/// Proof Skipped: ElectionProviderMultiPhase SignedSubmissionNextIndex (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: ElectionProviderMultiPhase SignedSubmissionsMap (r:0 w:1)
/// Proof Skipped: ElectionProviderMultiPhase SignedSubmissionsMap (max_values: None, max_size: None, mode: Measured)
fn submit() -> Weight {
// Proof Size summary in bytes:
// Measured: `927`
// Estimated: `2412`
// Minimum execution time: 43_405_000 picoseconds.
Weight::from_parts(45_734_000, 2412)
.saturating_add(T::DbWeight::get().reads(6_u64))
// Minimum execution time: 52_276_000 picoseconds.
Weight::from_parts(53_846_000, 2412)
.saturating_add(T::DbWeight::get().reads(5_u64))
.saturating_add(T::DbWeight::get().writes(3_u64))
}
/// Storage: `ElectionProviderMultiPhase::CurrentPhase` (r:1 w:0)
/// Proof: `ElectionProviderMultiPhase::CurrentPhase` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// Storage: `ElectionProviderMultiPhase::Round` (r:1 w:0)
/// Proof: `ElectionProviderMultiPhase::Round` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// Storage: `ElectionProviderMultiPhase::DesiredTargets` (r:1 w:0)
/// Proof: `ElectionProviderMultiPhase::DesiredTargets` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// Storage: `ElectionProviderMultiPhase::QueuedSolution` (r:1 w:1)
/// Proof: `ElectionProviderMultiPhase::QueuedSolution` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// Storage: `ElectionProviderMultiPhase::SnapshotMetadata` (r:1 w:0)
/// Proof: `ElectionProviderMultiPhase::SnapshotMetadata` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// Storage: `ElectionProviderMultiPhase::Snapshot` (r:1 w:0)
/// Proof: `ElectionProviderMultiPhase::Snapshot` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// Storage: `ElectionProviderMultiPhase::MinimumUntrustedScore` (r:1 w:0)
/// Proof: `ElectionProviderMultiPhase::MinimumUntrustedScore` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// Storage: ElectionProviderMultiPhase CurrentPhase (r:1 w:0)
/// Proof Skipped: ElectionProviderMultiPhase CurrentPhase (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: ElectionProviderMultiPhase Round (r:1 w:0)
/// Proof Skipped: ElectionProviderMultiPhase Round (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: ElectionProviderMultiPhase DesiredTargets (r:1 w:0)
/// Proof Skipped: ElectionProviderMultiPhase DesiredTargets (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: ElectionProviderMultiPhase QueuedSolution (r:1 w:1)
/// Proof Skipped: ElectionProviderMultiPhase QueuedSolution (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: ElectionProviderMultiPhase SnapshotMetadata (r:1 w:0)
/// Proof Skipped: ElectionProviderMultiPhase SnapshotMetadata (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: ElectionProviderMultiPhase Snapshot (r:1 w:0)
/// Proof Skipped: ElectionProviderMultiPhase Snapshot (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: ElectionProviderMultiPhase MinimumUntrustedScore (r:1 w:0)
/// Proof Skipped: ElectionProviderMultiPhase MinimumUntrustedScore (max_values: Some(1), max_size: None, mode: Measured)
/// The range of component `v` is `[1000, 2000]`.
/// The range of component `t` is `[500, 1000]`.
/// The range of component `a` is `[500, 800]`.
@@ -236,25 +235,25 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
// Proof Size summary in bytes:
// Measured: `253 + t * (32 ±0) + v * (553 ±0)`
// Estimated: `1738 + t * (32 ±0) + v * (553 ±0)`
// Minimum execution time: 5_059_092_000 picoseconds.
Weight::from_parts(5_263_076_000, 1738)
// Standard Error: 17_317
.saturating_add(Weight::from_parts(384_051, 0).saturating_mul(v.into()))
// Standard Error: 51_319
.saturating_add(Weight::from_parts(4_095_128, 0).saturating_mul(a.into()))
// Minimum execution time: 5_448_459_000 picoseconds.
Weight::from_parts(5_525_622_000, 1738)
// Standard Error: 21_478
.saturating_add(Weight::from_parts(256_345, 0).saturating_mul(v.into()))
// Standard Error: 63_648
.saturating_add(Weight::from_parts(5_103_224, 0).saturating_mul(a.into()))
.saturating_add(T::DbWeight::get().reads(7_u64))
.saturating_add(T::DbWeight::get().writes(1_u64))
.saturating_add(Weight::from_parts(0, 32).saturating_mul(t.into()))
.saturating_add(Weight::from_parts(0, 553).saturating_mul(v.into()))
}
/// Storage: `ElectionProviderMultiPhase::DesiredTargets` (r:1 w:0)
/// Proof: `ElectionProviderMultiPhase::DesiredTargets` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// Storage: `ElectionProviderMultiPhase::Snapshot` (r:1 w:0)
/// Proof: `ElectionProviderMultiPhase::Snapshot` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// Storage: `ElectionProviderMultiPhase::Round` (r:1 w:0)
/// Proof: `ElectionProviderMultiPhase::Round` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// Storage: `ElectionProviderMultiPhase::MinimumUntrustedScore` (r:1 w:0)
/// Proof: `ElectionProviderMultiPhase::MinimumUntrustedScore` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// Storage: ElectionProviderMultiPhase DesiredTargets (r:1 w:0)
/// Proof Skipped: ElectionProviderMultiPhase DesiredTargets (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: ElectionProviderMultiPhase Snapshot (r:1 w:0)
/// Proof Skipped: ElectionProviderMultiPhase Snapshot (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: ElectionProviderMultiPhase Round (r:1 w:0)
/// Proof Skipped: ElectionProviderMultiPhase Round (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: ElectionProviderMultiPhase MinimumUntrustedScore (r:1 w:0)
/// Proof Skipped: ElectionProviderMultiPhase MinimumUntrustedScore (max_values: Some(1), max_size: None, mode: Measured)
/// The range of component `v` is `[1000, 2000]`.
/// The range of component `t` is `[500, 1000]`.
/// The range of component `a` is `[500, 800]`.
@@ -263,182 +262,180 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
// Proof Size summary in bytes:
// Measured: `228 + t * (32 ±0) + v * (553 ±0)`
// Estimated: `1713 + t * (32 ±0) + v * (553 ±0)`
// Minimum execution time: 4_426_416_000 picoseconds.
Weight::from_parts(4_466_923_000, 1713)
// Standard Error: 15_415
.saturating_add(Weight::from_parts(334_047, 0).saturating_mul(v.into()))
// Standard Error: 45_682
.saturating_add(Weight::from_parts(3_097_318, 0).saturating_mul(a.into()))
// Minimum execution time: 4_724_399_000 picoseconds.
Weight::from_parts(4_886_472_000, 1713)
// Standard Error: 15_220
.saturating_add(Weight::from_parts(365_569, 0).saturating_mul(v.into()))
// Standard Error: 45_104
.saturating_add(Weight::from_parts(3_176_675, 0).saturating_mul(a.into()))
.saturating_add(T::DbWeight::get().reads(4_u64))
.saturating_add(Weight::from_parts(0, 32).saturating_mul(t.into()))
.saturating_add(Weight::from_parts(0, 553).saturating_mul(v.into()))
}
}
// For backwards compatibility and tests.
// For backwards compatibility and tests
impl WeightInfo for () {
/// Storage: `Staking::CurrentEra` (r:1 w:0)
/// Proof: `Staking::CurrentEra` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
/// Storage: `Staking::CurrentPlannedSession` (r:1 w:0)
/// Proof: `Staking::CurrentPlannedSession` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
/// Storage: `Staking::ErasStartSessionIndex` (r:1 w:0)
/// Proof: `Staking::ErasStartSessionIndex` (`max_values`: None, `max_size`: Some(16), added: 2491, mode: `MaxEncodedLen`)
/// Storage: `Babe::EpochIndex` (r:1 w:0)
/// Proof: `Babe::EpochIndex` (`max_values`: Some(1), `max_size`: Some(8), added: 503, mode: `MaxEncodedLen`)
/// Storage: `Babe::GenesisSlot` (r:1 w:0)
/// Proof: `Babe::GenesisSlot` (`max_values`: Some(1), `max_size`: Some(8), added: 503, mode: `MaxEncodedLen`)
/// Storage: `Babe::CurrentSlot` (r:1 w:0)
/// Proof: `Babe::CurrentSlot` (`max_values`: Some(1), `max_size`: Some(8), added: 503, mode: `MaxEncodedLen`)
/// Storage: `Staking::ForceEra` (r:1 w:0)
/// Proof: `Staking::ForceEra` (`max_values`: Some(1), `max_size`: Some(1), added: 496, mode: `MaxEncodedLen`)
/// Storage: `ElectionProviderMultiPhase::CurrentPhase` (r:1 w:0)
/// Proof: `ElectionProviderMultiPhase::CurrentPhase` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// Storage: Staking CurrentEra (r:1 w:0)
/// Proof: Staking CurrentEra (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
/// Storage: Staking CurrentPlannedSession (r:1 w:0)
/// Proof: Staking CurrentPlannedSession (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
/// Storage: Staking ErasStartSessionIndex (r:1 w:0)
/// Proof: Staking ErasStartSessionIndex (max_values: None, max_size: Some(16), added: 2491, mode: MaxEncodedLen)
/// Storage: Babe EpochIndex (r:1 w:0)
/// Proof: Babe EpochIndex (max_values: Some(1), max_size: Some(8), added: 503, mode: MaxEncodedLen)
/// Storage: Babe GenesisSlot (r:1 w:0)
/// Proof: Babe GenesisSlot (max_values: Some(1), max_size: Some(8), added: 503, mode: MaxEncodedLen)
/// Storage: Babe CurrentSlot (r:1 w:0)
/// Proof: Babe CurrentSlot (max_values: Some(1), max_size: Some(8), added: 503, mode: MaxEncodedLen)
/// Storage: Staking ForceEra (r:1 w:0)
/// Proof: Staking ForceEra (max_values: Some(1), max_size: Some(1), added: 496, mode: MaxEncodedLen)
/// Storage: ElectionProviderMultiPhase CurrentPhase (r:1 w:0)
/// Proof Skipped: ElectionProviderMultiPhase CurrentPhase (max_values: Some(1), max_size: None, mode: Measured)
fn on_initialize_nothing() -> Weight {
// Proof Size summary in bytes:
// Measured: `1061`
// Measured: `1028`
// Estimated: `3481`
// Minimum execution time: 19_340_000 picoseconds.
Weight::from_parts(19_886_000, 3481)
// Minimum execution time: 22_089_000 picoseconds.
Weight::from_parts(22_677_000, 3481)
.saturating_add(RocksDbWeight::get().reads(8_u64))
}
/// Storage: `ElectionProviderMultiPhase::Round` (r:1 w:0)
/// Proof: `ElectionProviderMultiPhase::Round` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// Storage: `ElectionProviderMultiPhase::CurrentPhase` (r:1 w:1)
/// Proof: `ElectionProviderMultiPhase::CurrentPhase` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// Storage: ElectionProviderMultiPhase Round (r:1 w:0)
/// Proof Skipped: ElectionProviderMultiPhase Round (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: ElectionProviderMultiPhase CurrentPhase (r:1 w:1)
/// Proof Skipped: ElectionProviderMultiPhase CurrentPhase (max_values: Some(1), max_size: None, mode: Measured)
fn on_initialize_open_signed() -> Weight {
// Proof Size summary in bytes:
// Measured: `148`
// Estimated: `1633`
// Minimum execution time: 8_067_000 picoseconds.
Weight::from_parts(8_508_000, 1633)
// Minimum execution time: 11_986_000 picoseconds.
Weight::from_parts(12_445_000, 1633)
.saturating_add(RocksDbWeight::get().reads(2_u64))
.saturating_add(RocksDbWeight::get().writes(1_u64))
}
/// Storage: `ElectionProviderMultiPhase::Round` (r:1 w:0)
/// Proof: `ElectionProviderMultiPhase::Round` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// Storage: `ElectionProviderMultiPhase::CurrentPhase` (r:1 w:1)
/// Proof: `ElectionProviderMultiPhase::CurrentPhase` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// Storage: ElectionProviderMultiPhase Round (r:1 w:0)
/// Proof Skipped: ElectionProviderMultiPhase Round (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: ElectionProviderMultiPhase CurrentPhase (r:1 w:1)
/// Proof Skipped: ElectionProviderMultiPhase CurrentPhase (max_values: Some(1), max_size: None, mode: Measured)
fn on_initialize_open_unsigned() -> Weight {
// Proof Size summary in bytes:
// Measured: `148`
// Estimated: `1633`
// Minimum execution time: 8_810_000 picoseconds.
Weight::from_parts(9_061_000, 1633)
// Minimum execution time: 12_988_000 picoseconds.
Weight::from_parts(13_281_000, 1633)
.saturating_add(RocksDbWeight::get().reads(2_u64))
.saturating_add(RocksDbWeight::get().writes(1_u64))
}
/// Storage: `System::Account` (r:1 w:1)
/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
/// Storage: `ElectionProviderMultiPhase::QueuedSolution` (r:0 w:1)
/// Proof: `ElectionProviderMultiPhase::QueuedSolution` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// Storage: System Account (r:1 w:1)
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
/// Storage: ElectionProviderMultiPhase QueuedSolution (r:0 w:1)
/// Proof Skipped: ElectionProviderMultiPhase QueuedSolution (max_values: Some(1), max_size: None, mode: Measured)
fn finalize_signed_phase_accept_solution() -> Weight {
// Proof Size summary in bytes:
// Measured: `174`
// Estimated: `3593`
// Minimum execution time: 24_339_000 picoseconds.
Weight::from_parts(25_322_000, 3593)
// Minimum execution time: 32_659_000 picoseconds.
Weight::from_parts(33_281_000, 3593)
.saturating_add(RocksDbWeight::get().reads(1_u64))
.saturating_add(RocksDbWeight::get().writes(2_u64))
}
/// Storage: `System::Account` (r:1 w:1)
/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
/// Storage: System Account (r:1 w:1)
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
fn finalize_signed_phase_reject_solution() -> Weight {
// Proof Size summary in bytes:
// Measured: `174`
// Estimated: `3593`
// Minimum execution time: 16_635_000 picoseconds.
Weight::from_parts(17_497_000, 3593)
// Minimum execution time: 22_471_000 picoseconds.
Weight::from_parts(23_046_000, 3593)
.saturating_add(RocksDbWeight::get().reads(1_u64))
.saturating_add(RocksDbWeight::get().writes(1_u64))
}
/// Storage: `ElectionProviderMultiPhase::SnapshotMetadata` (r:0 w:1)
/// Proof: `ElectionProviderMultiPhase::SnapshotMetadata` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// Storage: `ElectionProviderMultiPhase::DesiredTargets` (r:0 w:1)
/// Proof: `ElectionProviderMultiPhase::DesiredTargets` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// Storage: `ElectionProviderMultiPhase::Snapshot` (r:0 w:1)
/// Proof: `ElectionProviderMultiPhase::Snapshot` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// Storage: ElectionProviderMultiPhase SnapshotMetadata (r:0 w:1)
/// Proof Skipped: ElectionProviderMultiPhase SnapshotMetadata (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: ElectionProviderMultiPhase DesiredTargets (r:0 w:1)
/// Proof Skipped: ElectionProviderMultiPhase DesiredTargets (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: ElectionProviderMultiPhase Snapshot (r:0 w:1)
/// Proof Skipped: ElectionProviderMultiPhase Snapshot (max_values: Some(1), max_size: None, mode: Measured)
/// The range of component `v` is `[1000, 2000]`.
/// The range of component `t` is `[500, 1000]`.
fn create_snapshot_internal(v: u32, _t: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `0`
// Minimum execution time: 170_730_000 picoseconds.
Weight::from_parts(175_009_000, 0)
// Standard Error: 2_010
.saturating_add(Weight::from_parts(224_974, 0).saturating_mul(v.into()))
// Minimum execution time: 262_360_000 picoseconds.
Weight::from_parts(279_313_000, 0)
// Standard Error: 2_384
.saturating_add(Weight::from_parts(176_415, 0).saturating_mul(v.into()))
.saturating_add(RocksDbWeight::get().writes(3_u64))
}
/// Storage: `ElectionProviderMultiPhase::SignedSubmissionIndices` (r:1 w:1)
/// Proof: `ElectionProviderMultiPhase::SignedSubmissionIndices` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// Storage: `ElectionProviderMultiPhase::SignedSubmissionNextIndex` (r:1 w:1)
/// Proof: `ElectionProviderMultiPhase::SignedSubmissionNextIndex` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// Storage: `ElectionProviderMultiPhase::SnapshotMetadata` (r:1 w:1)
/// Proof: `ElectionProviderMultiPhase::SnapshotMetadata` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// Storage: `ElectionProviderMultiPhase::SignedSubmissionsMap` (r:1 w:0)
/// Proof: `ElectionProviderMultiPhase::SignedSubmissionsMap` (`max_values`: None, `max_size`: None, mode: `Measured`)
/// Storage: `ElectionProviderMultiPhase::QueuedSolution` (r:1 w:1)
/// Proof: `ElectionProviderMultiPhase::QueuedSolution` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// Storage: `ElectionProviderMultiPhase::Round` (r:1 w:1)
/// Proof: `ElectionProviderMultiPhase::Round` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// Storage: `ElectionProviderMultiPhase::CurrentPhase` (r:1 w:1)
/// Proof: `ElectionProviderMultiPhase::CurrentPhase` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// Storage: `ElectionProviderMultiPhase::DesiredTargets` (r:0 w:1)
/// Proof: `ElectionProviderMultiPhase::DesiredTargets` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// Storage: `ElectionProviderMultiPhase::Snapshot` (r:0 w:1)
/// Proof: `ElectionProviderMultiPhase::Snapshot` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// Storage: ElectionProviderMultiPhase SignedSubmissionIndices (r:1 w:1)
/// Proof Skipped: ElectionProviderMultiPhase SignedSubmissionIndices (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: ElectionProviderMultiPhase SignedSubmissionNextIndex (r:1 w:1)
/// Proof Skipped: ElectionProviderMultiPhase SignedSubmissionNextIndex (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: ElectionProviderMultiPhase SnapshotMetadata (r:1 w:1)
/// Proof Skipped: ElectionProviderMultiPhase SnapshotMetadata (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: ElectionProviderMultiPhase SignedSubmissionsMap (r:1 w:0)
/// Proof Skipped: ElectionProviderMultiPhase SignedSubmissionsMap (max_values: None, max_size: None, mode: Measured)
/// Storage: ElectionProviderMultiPhase QueuedSolution (r:1 w:1)
/// Proof Skipped: ElectionProviderMultiPhase QueuedSolution (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: ElectionProviderMultiPhase Round (r:1 w:1)
/// Proof Skipped: ElectionProviderMultiPhase Round (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: ElectionProviderMultiPhase CurrentPhase (r:1 w:1)
/// Proof Skipped: ElectionProviderMultiPhase CurrentPhase (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: ElectionProviderMultiPhase DesiredTargets (r:0 w:1)
/// Proof Skipped: ElectionProviderMultiPhase DesiredTargets (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: ElectionProviderMultiPhase Snapshot (r:0 w:1)
/// Proof Skipped: ElectionProviderMultiPhase Snapshot (max_values: Some(1), max_size: None, mode: Measured)
/// The range of component `a` is `[500, 800]`.
/// The range of component `d` is `[200, 400]`.
fn elect_queued(a: u32, d: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `371 + a * (768 ±0) + d * (48 ±0)`
// Estimated: `3923 + a * (768 ±0) + d * (49 ±0)`
// Minimum execution time: 280_705_000 picoseconds.
Weight::from_parts(303_018_000, 3923)
// Standard Error: 4_633
.saturating_add(Weight::from_parts(307_274, 0).saturating_mul(a.into()))
// Minimum execution time: 301_283_000 picoseconds.
Weight::from_parts(324_586_000, 3923)
// Standard Error: 4_763
.saturating_add(Weight::from_parts(279_812, 0).saturating_mul(a.into()))
.saturating_add(RocksDbWeight::get().reads(7_u64))
.saturating_add(RocksDbWeight::get().writes(8_u64))
.saturating_add(Weight::from_parts(0, 768).saturating_mul(a.into()))
.saturating_add(Weight::from_parts(0, 49).saturating_mul(d.into()))
}
/// Storage: `ElectionProviderMultiPhase::CurrentPhase` (r:1 w:0)
/// Proof: `ElectionProviderMultiPhase::CurrentPhase` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// Storage: `ElectionProviderMultiPhase::Round` (r:1 w:0)
/// Proof: `ElectionProviderMultiPhase::Round` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// Storage: `ElectionProviderMultiPhase::SnapshotMetadata` (r:1 w:0)
/// Proof: `ElectionProviderMultiPhase::SnapshotMetadata` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// Storage: `ElectionProviderMultiPhase::SignedSubmissionIndices` (r:1 w:1)
/// Proof: `ElectionProviderMultiPhase::SignedSubmissionIndices` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// Storage: `ElectionProviderMultiPhase::SignedSubmissionNextIndex` (r:1 w:1)
/// Proof: `ElectionProviderMultiPhase::SignedSubmissionNextIndex` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// Storage: `TransactionPayment::NextFeeMultiplier` (r:1 w:0)
/// Proof: `TransactionPayment::NextFeeMultiplier` (`max_values`: Some(1), `max_size`: Some(16), added: 511, mode: `MaxEncodedLen`)
/// Storage: `ElectionProviderMultiPhase::SignedSubmissionsMap` (r:0 w:1)
/// Proof: `ElectionProviderMultiPhase::SignedSubmissionsMap` (`max_values`: None, `max_size`: None, mode: `Measured`)
/// Storage: ElectionProviderMultiPhase CurrentPhase (r:1 w:0)
/// Proof Skipped: ElectionProviderMultiPhase CurrentPhase (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: ElectionProviderMultiPhase SnapshotMetadata (r:1 w:0)
/// Proof Skipped: ElectionProviderMultiPhase SnapshotMetadata (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: TransactionPayment NextFeeMultiplier (r:1 w:0)
/// Proof: TransactionPayment NextFeeMultiplier (max_values: Some(1), max_size: Some(16), added: 511, mode: MaxEncodedLen)
/// Storage: ElectionProviderMultiPhase SignedSubmissionIndices (r:1 w:1)
/// Proof Skipped: ElectionProviderMultiPhase SignedSubmissionIndices (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: ElectionProviderMultiPhase SignedSubmissionNextIndex (r:1 w:1)
/// Proof Skipped: ElectionProviderMultiPhase SignedSubmissionNextIndex (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: ElectionProviderMultiPhase SignedSubmissionsMap (r:0 w:1)
/// Proof Skipped: ElectionProviderMultiPhase SignedSubmissionsMap (max_values: None, max_size: None, mode: Measured)
fn submit() -> Weight {
// Proof Size summary in bytes:
// Measured: `927`
// Estimated: `2412`
// Minimum execution time: 43_405_000 picoseconds.
Weight::from_parts(45_734_000, 2412)
.saturating_add(RocksDbWeight::get().reads(6_u64))
// Minimum execution time: 52_276_000 picoseconds.
Weight::from_parts(53_846_000, 2412)
.saturating_add(RocksDbWeight::get().reads(5_u64))
.saturating_add(RocksDbWeight::get().writes(3_u64))
}
/// Storage: `ElectionProviderMultiPhase::CurrentPhase` (r:1 w:0)
/// Proof: `ElectionProviderMultiPhase::CurrentPhase` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// Storage: `ElectionProviderMultiPhase::Round` (r:1 w:0)
/// Proof: `ElectionProviderMultiPhase::Round` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// Storage: `ElectionProviderMultiPhase::DesiredTargets` (r:1 w:0)
/// Proof: `ElectionProviderMultiPhase::DesiredTargets` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// Storage: `ElectionProviderMultiPhase::QueuedSolution` (r:1 w:1)
/// Proof: `ElectionProviderMultiPhase::QueuedSolution` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// Storage: `ElectionProviderMultiPhase::SnapshotMetadata` (r:1 w:0)
/// Proof: `ElectionProviderMultiPhase::SnapshotMetadata` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// Storage: `ElectionProviderMultiPhase::Snapshot` (r:1 w:0)
/// Proof: `ElectionProviderMultiPhase::Snapshot` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// Storage: `ElectionProviderMultiPhase::MinimumUntrustedScore` (r:1 w:0)
/// Proof: `ElectionProviderMultiPhase::MinimumUntrustedScore` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// Storage: ElectionProviderMultiPhase CurrentPhase (r:1 w:0)
/// Proof Skipped: ElectionProviderMultiPhase CurrentPhase (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: ElectionProviderMultiPhase Round (r:1 w:0)
/// Proof Skipped: ElectionProviderMultiPhase Round (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: ElectionProviderMultiPhase DesiredTargets (r:1 w:0)
/// Proof Skipped: ElectionProviderMultiPhase DesiredTargets (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: ElectionProviderMultiPhase QueuedSolution (r:1 w:1)
/// Proof Skipped: ElectionProviderMultiPhase QueuedSolution (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: ElectionProviderMultiPhase SnapshotMetadata (r:1 w:0)
/// Proof Skipped: ElectionProviderMultiPhase SnapshotMetadata (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: ElectionProviderMultiPhase Snapshot (r:1 w:0)
/// Proof Skipped: ElectionProviderMultiPhase Snapshot (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: ElectionProviderMultiPhase MinimumUntrustedScore (r:1 w:0)
/// Proof Skipped: ElectionProviderMultiPhase MinimumUntrustedScore (max_values: Some(1), max_size: None, mode: Measured)
/// The range of component `v` is `[1000, 2000]`.
/// The range of component `t` is `[500, 1000]`.
/// The range of component `a` is `[500, 800]`.
@@ -447,25 +444,25 @@ impl WeightInfo for () {
// Proof Size summary in bytes:
// Measured: `253 + t * (32 ±0) + v * (553 ±0)`
// Estimated: `1738 + t * (32 ±0) + v * (553 ±0)`
// Minimum execution time: 5_059_092_000 picoseconds.
Weight::from_parts(5_263_076_000, 1738)
// Standard Error: 17_317
.saturating_add(Weight::from_parts(384_051, 0).saturating_mul(v.into()))
// Standard Error: 51_319
.saturating_add(Weight::from_parts(4_095_128, 0).saturating_mul(a.into()))
// Minimum execution time: 5_448_459_000 picoseconds.
Weight::from_parts(5_525_622_000, 1738)
// Standard Error: 21_478
.saturating_add(Weight::from_parts(256_345, 0).saturating_mul(v.into()))
// Standard Error: 63_648
.saturating_add(Weight::from_parts(5_103_224, 0).saturating_mul(a.into()))
.saturating_add(RocksDbWeight::get().reads(7_u64))
.saturating_add(RocksDbWeight::get().writes(1_u64))
.saturating_add(Weight::from_parts(0, 32).saturating_mul(t.into()))
.saturating_add(Weight::from_parts(0, 553).saturating_mul(v.into()))
}
/// Storage: `ElectionProviderMultiPhase::DesiredTargets` (r:1 w:0)
/// Proof: `ElectionProviderMultiPhase::DesiredTargets` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// Storage: `ElectionProviderMultiPhase::Snapshot` (r:1 w:0)
/// Proof: `ElectionProviderMultiPhase::Snapshot` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// Storage: `ElectionProviderMultiPhase::Round` (r:1 w:0)
/// Proof: `ElectionProviderMultiPhase::Round` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// Storage: `ElectionProviderMultiPhase::MinimumUntrustedScore` (r:1 w:0)
/// Proof: `ElectionProviderMultiPhase::MinimumUntrustedScore` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// Storage: ElectionProviderMultiPhase DesiredTargets (r:1 w:0)
/// Proof Skipped: ElectionProviderMultiPhase DesiredTargets (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: ElectionProviderMultiPhase Snapshot (r:1 w:0)
/// Proof Skipped: ElectionProviderMultiPhase Snapshot (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: ElectionProviderMultiPhase Round (r:1 w:0)
/// Proof Skipped: ElectionProviderMultiPhase Round (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: ElectionProviderMultiPhase MinimumUntrustedScore (r:1 w:0)
/// Proof Skipped: ElectionProviderMultiPhase MinimumUntrustedScore (max_values: Some(1), max_size: None, mode: Measured)
/// The range of component `v` is `[1000, 2000]`.
/// The range of component `t` is `[500, 1000]`.
/// The range of component `a` is `[500, 800]`.
@@ -474,12 +471,12 @@ impl WeightInfo for () {
// Proof Size summary in bytes:
// Measured: `228 + t * (32 ±0) + v * (553 ±0)`
// Estimated: `1713 + t * (32 ±0) + v * (553 ±0)`
// Minimum execution time: 4_426_416_000 picoseconds.
Weight::from_parts(4_466_923_000, 1713)
// Standard Error: 15_415
.saturating_add(Weight::from_parts(334_047, 0).saturating_mul(v.into()))
// Standard Error: 45_682
.saturating_add(Weight::from_parts(3_097_318, 0).saturating_mul(a.into()))
// Minimum execution time: 4_724_399_000 picoseconds.
Weight::from_parts(4_886_472_000, 1713)
// Standard Error: 15_220
.saturating_add(Weight::from_parts(365_569, 0).saturating_mul(v.into()))
// Standard Error: 45_104
.saturating_add(Weight::from_parts(3_176_675, 0).saturating_mul(a.into()))
.saturating_add(RocksDbWeight::get().reads(4_u64))
.saturating_add(Weight::from_parts(0, 32).saturating_mul(t.into()))
.saturating_add(Weight::from_parts(0, 553).saturating_mul(v.into()))
@@ -62,7 +62,7 @@ pub const INIT_TIMESTAMP: BlockNumber = 30_000;
pub const BLOCK_TIME: BlockNumber = 1000;
type Block = frame_system::mocking::MockBlockU32<Runtime>;
type Extrinsic = sp_runtime::generic::UncheckedExtrinsic<u64, RuntimeCall, (), ()>;
type Extrinsic = testing::TestXt<RuntimeCall, ()>;
frame_support::construct_runtime!(
pub enum Runtime {
@@ -699,7 +699,7 @@ pub fn roll_to_with_ocw(n: BlockNumber, pool: Arc<RwLock<PoolState>>, delay_solu
for encoded in &pool.read().transactions {
let extrinsic = Extrinsic::decode(&mut &encoded[..]).unwrap();
let _ = match extrinsic.function {
let _ = match extrinsic.call {
RuntimeCall::ElectionProviderMultiPhase(
call @ Call::submit_unsigned { .. },
) => {
@@ -1422,7 +1422,7 @@ mod tests {
pub type Block = sp_runtime::generic::Block<Header, UncheckedExtrinsic>;
pub type UncheckedExtrinsic =
sp_runtime::generic::UncheckedExtrinsic<u32, RuntimeCall, u64, ()>;
sp_runtime::generic::UncheckedExtrinsic<u32, u64, RuntimeCall, ()>;
frame_support::construct_runtime!(
pub enum Test
+325 -330
View File
@@ -15,16 +15,16 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//! Autogenerated weights for `pallet_elections_phragmen`
//! Autogenerated weights for pallet_elections_phragmen
//!
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0
//! DATE: 2024-03-01, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
//! DATE: 2023-06-16, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! WORST CASE MAP SIZE: `1000000`
//! HOSTNAME: `runner-bn-ce5rx-project-674-concurrent-0`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz`
//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("dev")`, DB CACHE: `1024`
//! HOSTNAME: `runner-e8ezs4ez-project-145-concurrent-0`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz`
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024
// Executed Command:
// ./target/production/substrate-node
// ./target/production/substrate
// benchmark
// pallet
// --chain=dev
@@ -35,11 +35,12 @@
// --no-median-slopes
// --no-min-squares
// --extrinsic=*
// --execution=wasm
// --wasm-execution=compiled
// --heap-pages=4096
// --output=./substrate/frame/elections-phragmen/src/weights.rs
// --header=./substrate/HEADER-APACHE2
// --template=./substrate/.maintain/frame-weight-template.hbs
// --output=./frame/elections-phragmen/src/weights.rs
// --header=./HEADER-APACHE2
// --template=./.maintain/frame-weight-template.hbs
#![cfg_attr(rustfmt, rustfmt_skip)]
#![allow(unused_parens)]
@@ -49,7 +50,7 @@
use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}};
use core::marker::PhantomData;
/// Weight functions needed for `pallet_elections_phragmen`.
/// Weight functions needed for pallet_elections_phragmen.
pub trait WeightInfo {
fn vote_equal(v: u32, ) -> Weight;
fn vote_more(v: u32, ) -> Weight;
@@ -65,165 +66,165 @@ pub trait WeightInfo {
fn election_phragmen(c: u32, v: u32, e: u32, ) -> Weight;
}
/// Weights for `pallet_elections_phragmen` using the Substrate node and recommended hardware.
/// Weights for pallet_elections_phragmen using the Substrate node and recommended hardware.
pub struct SubstrateWeight<T>(PhantomData<T>);
impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
/// Storage: `Elections::Candidates` (r:1 w:0)
/// Proof: `Elections::Candidates` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// Storage: `Elections::Members` (r:1 w:0)
/// Proof: `Elections::Members` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// Storage: `Elections::RunnersUp` (r:1 w:0)
/// Proof: `Elections::RunnersUp` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// Storage: `Elections::Voting` (r:1 w:1)
/// Proof: `Elections::Voting` (`max_values`: None, `max_size`: None, mode: `Measured`)
/// Storage: `Balances::Locks` (r:1 w:1)
/// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1299), added: 3774, mode: `MaxEncodedLen`)
/// Storage: `Balances::Freezes` (r:1 w:0)
/// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(67), added: 2542, mode: `MaxEncodedLen`)
/// Storage: Elections Candidates (r:1 w:0)
/// Proof Skipped: Elections Candidates (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: Elections Members (r:1 w:0)
/// Proof Skipped: Elections Members (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: Elections RunnersUp (r:1 w:0)
/// Proof Skipped: Elections RunnersUp (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: Elections Voting (r:1 w:1)
/// Proof Skipped: Elections Voting (max_values: None, max_size: None, mode: Measured)
/// Storage: Balances Locks (r:1 w:1)
/// Proof: Balances Locks (max_values: None, max_size: Some(1299), added: 3774, mode: MaxEncodedLen)
/// Storage: Balances Freezes (r:1 w:0)
/// Proof: Balances Freezes (max_values: None, max_size: Some(49), added: 2524, mode: MaxEncodedLen)
/// The range of component `v` is `[1, 16]`.
fn vote_equal(v: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `403 + v * (80 ±0)`
// Estimated: `4764 + v * (80 ±0)`
// Minimum execution time: 29_390_000 picoseconds.
Weight::from_parts(30_525_476, 4764)
// Standard Error: 3_185
.saturating_add(Weight::from_parts(143_073, 0).saturating_mul(v.into()))
// Minimum execution time: 33_028_000 picoseconds.
Weight::from_parts(34_073_914, 4764)
// Standard Error: 3_474
.saturating_add(Weight::from_parts(205_252, 0).saturating_mul(v.into()))
.saturating_add(T::DbWeight::get().reads(6_u64))
.saturating_add(T::DbWeight::get().writes(2_u64))
.saturating_add(Weight::from_parts(0, 80).saturating_mul(v.into()))
}
/// Storage: `Elections::Candidates` (r:1 w:0)
/// Proof: `Elections::Candidates` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// Storage: `Elections::Members` (r:1 w:0)
/// Proof: `Elections::Members` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// Storage: `Elections::RunnersUp` (r:1 w:0)
/// Proof: `Elections::RunnersUp` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// Storage: `Elections::Voting` (r:1 w:1)
/// Proof: `Elections::Voting` (`max_values`: None, `max_size`: None, mode: `Measured`)
/// Storage: `Balances::Locks` (r:1 w:1)
/// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1299), added: 3774, mode: `MaxEncodedLen`)
/// Storage: `Balances::Freezes` (r:1 w:0)
/// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(67), added: 2542, mode: `MaxEncodedLen`)
/// Storage: Elections Candidates (r:1 w:0)
/// Proof Skipped: Elections Candidates (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: Elections Members (r:1 w:0)
/// Proof Skipped: Elections Members (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: Elections RunnersUp (r:1 w:0)
/// Proof Skipped: Elections RunnersUp (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: Elections Voting (r:1 w:1)
/// Proof Skipped: Elections Voting (max_values: None, max_size: None, mode: Measured)
/// Storage: Balances Locks (r:1 w:1)
/// Proof: Balances Locks (max_values: None, max_size: Some(1299), added: 3774, mode: MaxEncodedLen)
/// Storage: Balances Freezes (r:1 w:0)
/// Proof: Balances Freezes (max_values: None, max_size: Some(49), added: 2524, mode: MaxEncodedLen)
/// The range of component `v` is `[2, 16]`.
fn vote_more(v: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `371 + v * (80 ±0)`
// Estimated: `4764 + v * (80 ±0)`
// Minimum execution time: 39_765_000 picoseconds.
Weight::from_parts(41_374_102, 4764)
// Standard Error: 4_310
.saturating_add(Weight::from_parts(153_015, 0).saturating_mul(v.into()))
// Minimum execution time: 45_725_000 picoseconds.
Weight::from_parts(47_169_586, 4764)
// Standard Error: 5_148
.saturating_add(Weight::from_parts(213_742, 0).saturating_mul(v.into()))
.saturating_add(T::DbWeight::get().reads(6_u64))
.saturating_add(T::DbWeight::get().writes(2_u64))
.saturating_add(Weight::from_parts(0, 80).saturating_mul(v.into()))
}
/// Storage: `Elections::Candidates` (r:1 w:0)
/// Proof: `Elections::Candidates` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// Storage: `Elections::Members` (r:1 w:0)
/// Proof: `Elections::Members` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// Storage: `Elections::RunnersUp` (r:1 w:0)
/// Proof: `Elections::RunnersUp` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// Storage: `Elections::Voting` (r:1 w:1)
/// Proof: `Elections::Voting` (`max_values`: None, `max_size`: None, mode: `Measured`)
/// Storage: `Balances::Locks` (r:1 w:1)
/// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1299), added: 3774, mode: `MaxEncodedLen`)
/// Storage: `Balances::Freezes` (r:1 w:0)
/// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(67), added: 2542, mode: `MaxEncodedLen`)
/// Storage: Elections Candidates (r:1 w:0)
/// Proof Skipped: Elections Candidates (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: Elections Members (r:1 w:0)
/// Proof Skipped: Elections Members (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: Elections RunnersUp (r:1 w:0)
/// Proof Skipped: Elections RunnersUp (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: Elections Voting (r:1 w:1)
/// Proof Skipped: Elections Voting (max_values: None, max_size: None, mode: Measured)
/// Storage: Balances Locks (r:1 w:1)
/// Proof: Balances Locks (max_values: None, max_size: Some(1299), added: 3774, mode: MaxEncodedLen)
/// Storage: Balances Freezes (r:1 w:0)
/// Proof: Balances Freezes (max_values: None, max_size: Some(49), added: 2524, mode: MaxEncodedLen)
/// The range of component `v` is `[2, 16]`.
fn vote_less(v: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `403 + v * (80 ±0)`
// Estimated: `4764 + v * (80 ±0)`
// Minimum execution time: 39_647_000 picoseconds.
Weight::from_parts(41_474_523, 4764)
// Standard Error: 5_503
.saturating_add(Weight::from_parts(149_029, 0).saturating_mul(v.into()))
// Minimum execution time: 45_519_000 picoseconds.
Weight::from_parts(47_339_108, 4764)
// Standard Error: 5_501
.saturating_add(Weight::from_parts(195_247, 0).saturating_mul(v.into()))
.saturating_add(T::DbWeight::get().reads(6_u64))
.saturating_add(T::DbWeight::get().writes(2_u64))
.saturating_add(Weight::from_parts(0, 80).saturating_mul(v.into()))
}
/// Storage: `Elections::Voting` (r:1 w:1)
/// Proof: `Elections::Voting` (`max_values`: None, `max_size`: None, mode: `Measured`)
/// Storage: `Balances::Locks` (r:1 w:1)
/// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1299), added: 3774, mode: `MaxEncodedLen`)
/// Storage: `Balances::Freezes` (r:1 w:0)
/// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(67), added: 2542, mode: `MaxEncodedLen`)
/// Storage: Elections Voting (r:1 w:1)
/// Proof Skipped: Elections Voting (max_values: None, max_size: None, mode: Measured)
/// Storage: Balances Locks (r:1 w:1)
/// Proof: Balances Locks (max_values: None, max_size: Some(1299), added: 3774, mode: MaxEncodedLen)
/// Storage: Balances Freezes (r:1 w:0)
/// Proof: Balances Freezes (max_values: None, max_size: Some(49), added: 2524, mode: MaxEncodedLen)
fn remove_voter() -> Weight {
// Proof Size summary in bytes:
// Measured: `925`
// Estimated: `4764`
// Minimum execution time: 41_882_000 picoseconds.
Weight::from_parts(42_794_000, 4764)
// Minimum execution time: 50_386_000 picoseconds.
Weight::from_parts(51_378_000, 4764)
.saturating_add(T::DbWeight::get().reads(3_u64))
.saturating_add(T::DbWeight::get().writes(2_u64))
}
/// Storage: `Elections::Candidates` (r:1 w:1)
/// Proof: `Elections::Candidates` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// Storage: `Elections::Members` (r:1 w:0)
/// Proof: `Elections::Members` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// Storage: `Elections::RunnersUp` (r:1 w:0)
/// Proof: `Elections::RunnersUp` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// Storage: Elections Candidates (r:1 w:1)
/// Proof Skipped: Elections Candidates (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: Elections Members (r:1 w:0)
/// Proof Skipped: Elections Members (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: Elections RunnersUp (r:1 w:0)
/// Proof Skipped: Elections RunnersUp (max_values: Some(1), max_size: None, mode: Measured)
/// The range of component `c` is `[1, 64]`.
fn submit_candidacy(c: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `1570 + c * (48 ±0)`
// Estimated: `3055 + c * (48 ±0)`
// Minimum execution time: 33_719_000 picoseconds.
Weight::from_parts(35_017_073, 3055)
// Standard Error: 1_587
.saturating_add(Weight::from_parts(121_130, 0).saturating_mul(c.into()))
// Minimum execution time: 38_987_000 picoseconds.
Weight::from_parts(41_302_276, 3055)
// Standard Error: 2_047
.saturating_add(Weight::from_parts(125_200, 0).saturating_mul(c.into()))
.saturating_add(T::DbWeight::get().reads(3_u64))
.saturating_add(T::DbWeight::get().writes(1_u64))
.saturating_add(Weight::from_parts(0, 48).saturating_mul(c.into()))
}
/// Storage: `Elections::Candidates` (r:1 w:1)
/// Proof: `Elections::Candidates` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// Storage: Elections Candidates (r:1 w:1)
/// Proof Skipped: Elections Candidates (max_values: Some(1), max_size: None, mode: Measured)
/// The range of component `c` is `[1, 64]`.
fn renounce_candidacy_candidate(c: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `285 + c * (48 ±0)`
// Estimated: `1770 + c * (48 ±0)`
// Minimum execution time: 27_263_000 picoseconds.
Weight::from_parts(28_215_666, 1770)
// Standard Error: 1_196
.saturating_add(Weight::from_parts(86_804, 0).saturating_mul(c.into()))
// Minimum execution time: 33_510_000 picoseconds.
Weight::from_parts(34_947_760, 1770)
// Standard Error: 1_781
.saturating_add(Weight::from_parts(78_851, 0).saturating_mul(c.into()))
.saturating_add(T::DbWeight::get().reads(1_u64))
.saturating_add(T::DbWeight::get().writes(1_u64))
.saturating_add(Weight::from_parts(0, 48).saturating_mul(c.into()))
}
/// Storage: `Elections::Members` (r:1 w:1)
/// Proof: `Elections::Members` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// Storage: `Elections::RunnersUp` (r:1 w:1)
/// Proof: `Elections::RunnersUp` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// Storage: `Council::Prime` (r:1 w:1)
/// Proof: `Council::Prime` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// Storage: `Council::Proposals` (r:1 w:0)
/// Proof: `Council::Proposals` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// Storage: `Council::Members` (r:0 w:1)
/// Proof: `Council::Members` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// Storage: Elections Members (r:1 w:1)
/// Proof Skipped: Elections Members (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: Elections RunnersUp (r:1 w:1)
/// Proof Skipped: Elections RunnersUp (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: Council Prime (r:1 w:1)
/// Proof Skipped: Council Prime (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: Council Proposals (r:1 w:0)
/// Proof Skipped: Council Proposals (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: Council Members (r:0 w:1)
/// Proof Skipped: Council Members (max_values: Some(1), max_size: None, mode: Measured)
fn renounce_candidacy_members() -> Weight {
// Proof Size summary in bytes:
// Measured: `1933`
// Estimated: `3418`
// Minimum execution time: 41_531_000 picoseconds.
Weight::from_parts(42_937_000, 3418)
// Measured: `1900`
// Estimated: `3385`
// Minimum execution time: 50_603_000 picoseconds.
Weight::from_parts(51_715_000, 3385)
.saturating_add(T::DbWeight::get().reads(4_u64))
.saturating_add(T::DbWeight::get().writes(4_u64))
}
/// Storage: `Elections::RunnersUp` (r:1 w:1)
/// Proof: `Elections::RunnersUp` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// Storage: Elections RunnersUp (r:1 w:1)
/// Proof Skipped: Elections RunnersUp (max_values: Some(1), max_size: None, mode: Measured)
fn renounce_candidacy_runners_up() -> Weight {
// Proof Size summary in bytes:
// Measured: `880`
// Estimated: `2365`
// Minimum execution time: 27_680_000 picoseconds.
Weight::from_parts(28_810_000, 2365)
// Minimum execution time: 33_441_000 picoseconds.
Weight::from_parts(34_812_000, 2365)
.saturating_add(T::DbWeight::get().reads(1_u64))
.saturating_add(T::DbWeight::get().writes(1_u64))
}
/// Storage: `Benchmark::Override` (r:0 w:0)
/// Proof: `Benchmark::Override` (`max_values`: None, `max_size`: None, mode: `Measured`)
/// Storage: Benchmark Override (r:0 w:0)
/// Proof Skipped: Benchmark Override (max_values: None, max_size: None, mode: Measured)
fn remove_member_without_replacement() -> Weight {
// Proof Size summary in bytes:
// Measured: `0`
@@ -231,90 +232,87 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
// Minimum execution time: 2_000_000_000_000 picoseconds.
Weight::from_parts(2_000_000_000_000, 0)
}
/// Storage: `Elections::Members` (r:1 w:1)
/// Proof: `Elections::Members` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// Storage: `System::Account` (r:1 w:1)
/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
/// Storage: `Elections::RunnersUp` (r:1 w:1)
/// Proof: `Elections::RunnersUp` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// Storage: `Council::Prime` (r:1 w:1)
/// Proof: `Council::Prime` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// Storage: `Council::Proposals` (r:1 w:0)
/// Proof: `Council::Proposals` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// Storage: `Council::Members` (r:0 w:1)
/// Proof: `Council::Members` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// Storage: Elections Members (r:1 w:1)
/// Proof Skipped: Elections Members (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: System Account (r:1 w:1)
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
/// Storage: Elections RunnersUp (r:1 w:1)
/// Proof Skipped: Elections RunnersUp (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: Council Prime (r:1 w:1)
/// Proof Skipped: Council Prime (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: Council Proposals (r:1 w:0)
/// Proof Skipped: Council Proposals (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: Council Members (r:0 w:1)
/// Proof Skipped: Council Members (max_values: Some(1), max_size: None, mode: Measured)
fn remove_member_with_replacement() -> Weight {
// Proof Size summary in bytes:
// Measured: `1933`
// Measured: `1900`
// Estimated: `3593`
// Minimum execution time: 45_333_000 picoseconds.
Weight::from_parts(46_523_000, 3593)
// Minimum execution time: 57_289_000 picoseconds.
Weight::from_parts(58_328_000, 3593)
.saturating_add(T::DbWeight::get().reads(5_u64))
.saturating_add(T::DbWeight::get().writes(5_u64))
}
/// Storage: `Elections::Voting` (r:257 w:256)
/// Proof: `Elections::Voting` (`max_values`: None, `max_size`: None, mode: `Measured`)
/// Storage: `Elections::Members` (r:1 w:0)
/// Proof: `Elections::Members` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// Storage: `Elections::RunnersUp` (r:1 w:0)
/// Proof: `Elections::RunnersUp` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// Storage: `Elections::Candidates` (r:1 w:0)
/// Proof: `Elections::Candidates` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// Storage: `Balances::Locks` (r:256 w:256)
/// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1299), added: 3774, mode: `MaxEncodedLen`)
/// Storage: `Balances::Freezes` (r:256 w:0)
/// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(67), added: 2542, mode: `MaxEncodedLen`)
/// Storage: `System::Account` (r:256 w:256)
/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
/// Storage: Elections Voting (r:513 w:512)
/// Proof Skipped: Elections Voting (max_values: None, max_size: None, mode: Measured)
/// Storage: Elections Members (r:1 w:0)
/// Proof Skipped: Elections Members (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: Elections RunnersUp (r:1 w:0)
/// Proof Skipped: Elections RunnersUp (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: Elections Candidates (r:1 w:0)
/// Proof Skipped: Elections Candidates (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: Balances Locks (r:512 w:512)
/// Proof: Balances Locks (max_values: None, max_size: Some(1299), added: 3774, mode: MaxEncodedLen)
/// Storage: Balances Freezes (r:512 w:0)
/// Proof: Balances Freezes (max_values: None, max_size: Some(49), added: 2524, mode: MaxEncodedLen)
/// Storage: System Account (r:512 w:512)
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
/// The range of component `v` is `[256, 512]`.
/// The range of component `d` is `[0, 256]`.
fn clean_defunct_voters(v: u32, d: u32, ) -> Weight {
fn clean_defunct_voters(v: u32, _d: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `0 + d * (818 ±0) + v * (57 ±0)`
// Estimated: `24906 + d * (3774 ±1) + v * (24 ±0)`
// Minimum execution time: 5_620_000 picoseconds.
Weight::from_parts(5_817_000, 24906)
// Standard Error: 18_357
.saturating_add(Weight::from_parts(106_164, 0).saturating_mul(v.into()))
// Standard Error: 39_980
.saturating_add(Weight::from_parts(52_456_337, 0).saturating_mul(d.into()))
// Measured: `1149 + v * (811 ±0)`
// Estimated: `4621 + v * (3774 ±0)`
// Minimum execution time: 18_774_231_000 picoseconds.
Weight::from_parts(18_933_040_000, 4621)
// Standard Error: 301_534
.saturating_add(Weight::from_parts(44_306_903, 0).saturating_mul(v.into()))
.saturating_add(T::DbWeight::get().reads(4_u64))
.saturating_add(T::DbWeight::get().reads((4_u64).saturating_mul(d.into())))
.saturating_add(T::DbWeight::get().writes((3_u64).saturating_mul(d.into())))
.saturating_add(Weight::from_parts(0, 3774).saturating_mul(d.into()))
.saturating_add(Weight::from_parts(0, 24).saturating_mul(v.into()))
.saturating_add(T::DbWeight::get().reads((4_u64).saturating_mul(v.into())))
.saturating_add(T::DbWeight::get().writes((3_u64).saturating_mul(v.into())))
.saturating_add(Weight::from_parts(0, 3774).saturating_mul(v.into()))
}
/// Storage: `Elections::Candidates` (r:1 w:1)
/// Proof: `Elections::Candidates` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// Storage: `Elections::Members` (r:1 w:1)
/// Proof: `Elections::Members` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// Storage: `Elections::RunnersUp` (r:1 w:1)
/// Proof: `Elections::RunnersUp` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// Storage: `Elections::Voting` (r:513 w:0)
/// Proof: `Elections::Voting` (`max_values`: None, `max_size`: None, mode: `Measured`)
/// Storage: `Council::Proposals` (r:1 w:0)
/// Proof: `Council::Proposals` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// Storage: `System::Account` (r:44 w:44)
/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
/// Storage: `Elections::ElectionRounds` (r:1 w:1)
/// Proof: `Elections::ElectionRounds` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// Storage: `Council::Members` (r:0 w:1)
/// Proof: `Council::Members` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// Storage: `Council::Prime` (r:0 w:1)
/// Proof: `Council::Prime` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// Storage: Elections Candidates (r:1 w:1)
/// Proof Skipped: Elections Candidates (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: Elections Members (r:1 w:1)
/// Proof Skipped: Elections Members (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: Elections RunnersUp (r:1 w:1)
/// Proof Skipped: Elections RunnersUp (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: Elections Voting (r:513 w:0)
/// Proof Skipped: Elections Voting (max_values: None, max_size: None, mode: Measured)
/// Storage: Council Proposals (r:1 w:0)
/// Proof Skipped: Council Proposals (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: System Account (r:44 w:44)
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
/// Storage: Elections ElectionRounds (r:1 w:1)
/// Proof Skipped: Elections ElectionRounds (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: Council Members (r:0 w:1)
/// Proof Skipped: Council Members (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: Council Prime (r:0 w:1)
/// Proof Skipped: Council Prime (max_values: Some(1), max_size: None, mode: Measured)
/// The range of component `c` is `[1, 64]`.
/// The range of component `v` is `[1, 512]`.
/// The range of component `e` is `[512, 8192]`.
fn election_phragmen(c: u32, v: u32, e: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `0 + e * (28 ±0) + v * (606 ±0)`
// Estimated: `178920 + c * (2135 ±7) + e * (12 ±0) + v * (2653 ±6)`
// Minimum execution time: 1_082_582_000 picoseconds.
Weight::from_parts(1_084_730_000, 178920)
// Standard Error: 594_096
.saturating_add(Weight::from_parts(19_096_288, 0).saturating_mul(v.into()))
// Standard Error: 38_118
.saturating_add(Weight::from_parts(792_945, 0).saturating_mul(e.into()))
// Estimated: `178887 + c * (2135 ±7) + e * (12 ±0) + v * (2653 ±6)`
// Minimum execution time: 1_281_877_000 picoseconds.
Weight::from_parts(1_288_147_000, 178887)
// Standard Error: 528_851
.saturating_add(Weight::from_parts(17_761_407, 0).saturating_mul(v.into()))
// Standard Error: 33_932
.saturating_add(Weight::from_parts(698_277, 0).saturating_mul(e.into()))
.saturating_add(T::DbWeight::get().reads(21_u64))
.saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(c.into())))
.saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(v.into())))
@@ -326,164 +324,164 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
}
}
// For backwards compatibility and tests.
// For backwards compatibility and tests
impl WeightInfo for () {
/// Storage: `Elections::Candidates` (r:1 w:0)
/// Proof: `Elections::Candidates` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// Storage: `Elections::Members` (r:1 w:0)
/// Proof: `Elections::Members` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// Storage: `Elections::RunnersUp` (r:1 w:0)
/// Proof: `Elections::RunnersUp` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// Storage: `Elections::Voting` (r:1 w:1)
/// Proof: `Elections::Voting` (`max_values`: None, `max_size`: None, mode: `Measured`)
/// Storage: `Balances::Locks` (r:1 w:1)
/// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1299), added: 3774, mode: `MaxEncodedLen`)
/// Storage: `Balances::Freezes` (r:1 w:0)
/// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(67), added: 2542, mode: `MaxEncodedLen`)
/// Storage: Elections Candidates (r:1 w:0)
/// Proof Skipped: Elections Candidates (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: Elections Members (r:1 w:0)
/// Proof Skipped: Elections Members (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: Elections RunnersUp (r:1 w:0)
/// Proof Skipped: Elections RunnersUp (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: Elections Voting (r:1 w:1)
/// Proof Skipped: Elections Voting (max_values: None, max_size: None, mode: Measured)
/// Storage: Balances Locks (r:1 w:1)
/// Proof: Balances Locks (max_values: None, max_size: Some(1299), added: 3774, mode: MaxEncodedLen)
/// Storage: Balances Freezes (r:1 w:0)
/// Proof: Balances Freezes (max_values: None, max_size: Some(49), added: 2524, mode: MaxEncodedLen)
/// The range of component `v` is `[1, 16]`.
fn vote_equal(v: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `403 + v * (80 ±0)`
// Estimated: `4764 + v * (80 ±0)`
// Minimum execution time: 29_390_000 picoseconds.
Weight::from_parts(30_525_476, 4764)
// Standard Error: 3_185
.saturating_add(Weight::from_parts(143_073, 0).saturating_mul(v.into()))
// Minimum execution time: 33_028_000 picoseconds.
Weight::from_parts(34_073_914, 4764)
// Standard Error: 3_474
.saturating_add(Weight::from_parts(205_252, 0).saturating_mul(v.into()))
.saturating_add(RocksDbWeight::get().reads(6_u64))
.saturating_add(RocksDbWeight::get().writes(2_u64))
.saturating_add(Weight::from_parts(0, 80).saturating_mul(v.into()))
}
/// Storage: `Elections::Candidates` (r:1 w:0)
/// Proof: `Elections::Candidates` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// Storage: `Elections::Members` (r:1 w:0)
/// Proof: `Elections::Members` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// Storage: `Elections::RunnersUp` (r:1 w:0)
/// Proof: `Elections::RunnersUp` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// Storage: `Elections::Voting` (r:1 w:1)
/// Proof: `Elections::Voting` (`max_values`: None, `max_size`: None, mode: `Measured`)
/// Storage: `Balances::Locks` (r:1 w:1)
/// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1299), added: 3774, mode: `MaxEncodedLen`)
/// Storage: `Balances::Freezes` (r:1 w:0)
/// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(67), added: 2542, mode: `MaxEncodedLen`)
/// Storage: Elections Candidates (r:1 w:0)
/// Proof Skipped: Elections Candidates (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: Elections Members (r:1 w:0)
/// Proof Skipped: Elections Members (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: Elections RunnersUp (r:1 w:0)
/// Proof Skipped: Elections RunnersUp (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: Elections Voting (r:1 w:1)
/// Proof Skipped: Elections Voting (max_values: None, max_size: None, mode: Measured)
/// Storage: Balances Locks (r:1 w:1)
/// Proof: Balances Locks (max_values: None, max_size: Some(1299), added: 3774, mode: MaxEncodedLen)
/// Storage: Balances Freezes (r:1 w:0)
/// Proof: Balances Freezes (max_values: None, max_size: Some(49), added: 2524, mode: MaxEncodedLen)
/// The range of component `v` is `[2, 16]`.
fn vote_more(v: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `371 + v * (80 ±0)`
// Estimated: `4764 + v * (80 ±0)`
// Minimum execution time: 39_765_000 picoseconds.
Weight::from_parts(41_374_102, 4764)
// Standard Error: 4_310
.saturating_add(Weight::from_parts(153_015, 0).saturating_mul(v.into()))
// Minimum execution time: 45_725_000 picoseconds.
Weight::from_parts(47_169_586, 4764)
// Standard Error: 5_148
.saturating_add(Weight::from_parts(213_742, 0).saturating_mul(v.into()))
.saturating_add(RocksDbWeight::get().reads(6_u64))
.saturating_add(RocksDbWeight::get().writes(2_u64))
.saturating_add(Weight::from_parts(0, 80).saturating_mul(v.into()))
}
/// Storage: `Elections::Candidates` (r:1 w:0)
/// Proof: `Elections::Candidates` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// Storage: `Elections::Members` (r:1 w:0)
/// Proof: `Elections::Members` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// Storage: `Elections::RunnersUp` (r:1 w:0)
/// Proof: `Elections::RunnersUp` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// Storage: `Elections::Voting` (r:1 w:1)
/// Proof: `Elections::Voting` (`max_values`: None, `max_size`: None, mode: `Measured`)
/// Storage: `Balances::Locks` (r:1 w:1)
/// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1299), added: 3774, mode: `MaxEncodedLen`)
/// Storage: `Balances::Freezes` (r:1 w:0)
/// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(67), added: 2542, mode: `MaxEncodedLen`)
/// Storage: Elections Candidates (r:1 w:0)
/// Proof Skipped: Elections Candidates (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: Elections Members (r:1 w:0)
/// Proof Skipped: Elections Members (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: Elections RunnersUp (r:1 w:0)
/// Proof Skipped: Elections RunnersUp (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: Elections Voting (r:1 w:1)
/// Proof Skipped: Elections Voting (max_values: None, max_size: None, mode: Measured)
/// Storage: Balances Locks (r:1 w:1)
/// Proof: Balances Locks (max_values: None, max_size: Some(1299), added: 3774, mode: MaxEncodedLen)
/// Storage: Balances Freezes (r:1 w:0)
/// Proof: Balances Freezes (max_values: None, max_size: Some(49), added: 2524, mode: MaxEncodedLen)
/// The range of component `v` is `[2, 16]`.
fn vote_less(v: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `403 + v * (80 ±0)`
// Estimated: `4764 + v * (80 ±0)`
// Minimum execution time: 39_647_000 picoseconds.
Weight::from_parts(41_474_523, 4764)
// Standard Error: 5_503
.saturating_add(Weight::from_parts(149_029, 0).saturating_mul(v.into()))
// Minimum execution time: 45_519_000 picoseconds.
Weight::from_parts(47_339_108, 4764)
// Standard Error: 5_501
.saturating_add(Weight::from_parts(195_247, 0).saturating_mul(v.into()))
.saturating_add(RocksDbWeight::get().reads(6_u64))
.saturating_add(RocksDbWeight::get().writes(2_u64))
.saturating_add(Weight::from_parts(0, 80).saturating_mul(v.into()))
}
/// Storage: `Elections::Voting` (r:1 w:1)
/// Proof: `Elections::Voting` (`max_values`: None, `max_size`: None, mode: `Measured`)
/// Storage: `Balances::Locks` (r:1 w:1)
/// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1299), added: 3774, mode: `MaxEncodedLen`)
/// Storage: `Balances::Freezes` (r:1 w:0)
/// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(67), added: 2542, mode: `MaxEncodedLen`)
/// Storage: Elections Voting (r:1 w:1)
/// Proof Skipped: Elections Voting (max_values: None, max_size: None, mode: Measured)
/// Storage: Balances Locks (r:1 w:1)
/// Proof: Balances Locks (max_values: None, max_size: Some(1299), added: 3774, mode: MaxEncodedLen)
/// Storage: Balances Freezes (r:1 w:0)
/// Proof: Balances Freezes (max_values: None, max_size: Some(49), added: 2524, mode: MaxEncodedLen)
fn remove_voter() -> Weight {
// Proof Size summary in bytes:
// Measured: `925`
// Estimated: `4764`
// Minimum execution time: 41_882_000 picoseconds.
Weight::from_parts(42_794_000, 4764)
// Minimum execution time: 50_386_000 picoseconds.
Weight::from_parts(51_378_000, 4764)
.saturating_add(RocksDbWeight::get().reads(3_u64))
.saturating_add(RocksDbWeight::get().writes(2_u64))
}
/// Storage: `Elections::Candidates` (r:1 w:1)
/// Proof: `Elections::Candidates` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// Storage: `Elections::Members` (r:1 w:0)
/// Proof: `Elections::Members` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// Storage: `Elections::RunnersUp` (r:1 w:0)
/// Proof: `Elections::RunnersUp` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// Storage: Elections Candidates (r:1 w:1)
/// Proof Skipped: Elections Candidates (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: Elections Members (r:1 w:0)
/// Proof Skipped: Elections Members (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: Elections RunnersUp (r:1 w:0)
/// Proof Skipped: Elections RunnersUp (max_values: Some(1), max_size: None, mode: Measured)
/// The range of component `c` is `[1, 64]`.
fn submit_candidacy(c: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `1570 + c * (48 ±0)`
// Estimated: `3055 + c * (48 ±0)`
// Minimum execution time: 33_719_000 picoseconds.
Weight::from_parts(35_017_073, 3055)
// Standard Error: 1_587
.saturating_add(Weight::from_parts(121_130, 0).saturating_mul(c.into()))
// Minimum execution time: 38_987_000 picoseconds.
Weight::from_parts(41_302_276, 3055)
// Standard Error: 2_047
.saturating_add(Weight::from_parts(125_200, 0).saturating_mul(c.into()))
.saturating_add(RocksDbWeight::get().reads(3_u64))
.saturating_add(RocksDbWeight::get().writes(1_u64))
.saturating_add(Weight::from_parts(0, 48).saturating_mul(c.into()))
}
/// Storage: `Elections::Candidates` (r:1 w:1)
/// Proof: `Elections::Candidates` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// Storage: Elections Candidates (r:1 w:1)
/// Proof Skipped: Elections Candidates (max_values: Some(1), max_size: None, mode: Measured)
/// The range of component `c` is `[1, 64]`.
fn renounce_candidacy_candidate(c: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `285 + c * (48 ±0)`
// Estimated: `1770 + c * (48 ±0)`
// Minimum execution time: 27_263_000 picoseconds.
Weight::from_parts(28_215_666, 1770)
// Standard Error: 1_196
.saturating_add(Weight::from_parts(86_804, 0).saturating_mul(c.into()))
// Minimum execution time: 33_510_000 picoseconds.
Weight::from_parts(34_947_760, 1770)
// Standard Error: 1_781
.saturating_add(Weight::from_parts(78_851, 0).saturating_mul(c.into()))
.saturating_add(RocksDbWeight::get().reads(1_u64))
.saturating_add(RocksDbWeight::get().writes(1_u64))
.saturating_add(Weight::from_parts(0, 48).saturating_mul(c.into()))
}
/// Storage: `Elections::Members` (r:1 w:1)
/// Proof: `Elections::Members` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// Storage: `Elections::RunnersUp` (r:1 w:1)
/// Proof: `Elections::RunnersUp` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// Storage: `Council::Prime` (r:1 w:1)
/// Proof: `Council::Prime` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// Storage: `Council::Proposals` (r:1 w:0)
/// Proof: `Council::Proposals` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// Storage: `Council::Members` (r:0 w:1)
/// Proof: `Council::Members` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// Storage: Elections Members (r:1 w:1)
/// Proof Skipped: Elections Members (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: Elections RunnersUp (r:1 w:1)
/// Proof Skipped: Elections RunnersUp (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: Council Prime (r:1 w:1)
/// Proof Skipped: Council Prime (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: Council Proposals (r:1 w:0)
/// Proof Skipped: Council Proposals (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: Council Members (r:0 w:1)
/// Proof Skipped: Council Members (max_values: Some(1), max_size: None, mode: Measured)
fn renounce_candidacy_members() -> Weight {
// Proof Size summary in bytes:
// Measured: `1933`
// Estimated: `3418`
// Minimum execution time: 41_531_000 picoseconds.
Weight::from_parts(42_937_000, 3418)
// Measured: `1900`
// Estimated: `3385`
// Minimum execution time: 50_603_000 picoseconds.
Weight::from_parts(51_715_000, 3385)
.saturating_add(RocksDbWeight::get().reads(4_u64))
.saturating_add(RocksDbWeight::get().writes(4_u64))
}
/// Storage: `Elections::RunnersUp` (r:1 w:1)
/// Proof: `Elections::RunnersUp` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// Storage: Elections RunnersUp (r:1 w:1)
/// Proof Skipped: Elections RunnersUp (max_values: Some(1), max_size: None, mode: Measured)
fn renounce_candidacy_runners_up() -> Weight {
// Proof Size summary in bytes:
// Measured: `880`
// Estimated: `2365`
// Minimum execution time: 27_680_000 picoseconds.
Weight::from_parts(28_810_000, 2365)
// Minimum execution time: 33_441_000 picoseconds.
Weight::from_parts(34_812_000, 2365)
.saturating_add(RocksDbWeight::get().reads(1_u64))
.saturating_add(RocksDbWeight::get().writes(1_u64))
}
/// Storage: `Benchmark::Override` (r:0 w:0)
/// Proof: `Benchmark::Override` (`max_values`: None, `max_size`: None, mode: `Measured`)
/// Storage: Benchmark Override (r:0 w:0)
/// Proof Skipped: Benchmark Override (max_values: None, max_size: None, mode: Measured)
fn remove_member_without_replacement() -> Weight {
// Proof Size summary in bytes:
// Measured: `0`
@@ -491,90 +489,87 @@ impl WeightInfo for () {
// Minimum execution time: 2_000_000_000_000 picoseconds.
Weight::from_parts(2_000_000_000_000, 0)
}
/// Storage: `Elections::Members` (r:1 w:1)
/// Proof: `Elections::Members` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// Storage: `System::Account` (r:1 w:1)
/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
/// Storage: `Elections::RunnersUp` (r:1 w:1)
/// Proof: `Elections::RunnersUp` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// Storage: `Council::Prime` (r:1 w:1)
/// Proof: `Council::Prime` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// Storage: `Council::Proposals` (r:1 w:0)
/// Proof: `Council::Proposals` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// Storage: `Council::Members` (r:0 w:1)
/// Proof: `Council::Members` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// Storage: Elections Members (r:1 w:1)
/// Proof Skipped: Elections Members (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: System Account (r:1 w:1)
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
/// Storage: Elections RunnersUp (r:1 w:1)
/// Proof Skipped: Elections RunnersUp (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: Council Prime (r:1 w:1)
/// Proof Skipped: Council Prime (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: Council Proposals (r:1 w:0)
/// Proof Skipped: Council Proposals (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: Council Members (r:0 w:1)
/// Proof Skipped: Council Members (max_values: Some(1), max_size: None, mode: Measured)
fn remove_member_with_replacement() -> Weight {
// Proof Size summary in bytes:
// Measured: `1933`
// Measured: `1900`
// Estimated: `3593`
// Minimum execution time: 45_333_000 picoseconds.
Weight::from_parts(46_523_000, 3593)
// Minimum execution time: 57_289_000 picoseconds.
Weight::from_parts(58_328_000, 3593)
.saturating_add(RocksDbWeight::get().reads(5_u64))
.saturating_add(RocksDbWeight::get().writes(5_u64))
}
/// Storage: `Elections::Voting` (r:257 w:256)
/// Proof: `Elections::Voting` (`max_values`: None, `max_size`: None, mode: `Measured`)
/// Storage: `Elections::Members` (r:1 w:0)
/// Proof: `Elections::Members` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// Storage: `Elections::RunnersUp` (r:1 w:0)
/// Proof: `Elections::RunnersUp` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// Storage: `Elections::Candidates` (r:1 w:0)
/// Proof: `Elections::Candidates` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// Storage: `Balances::Locks` (r:256 w:256)
/// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1299), added: 3774, mode: `MaxEncodedLen`)
/// Storage: `Balances::Freezes` (r:256 w:0)
/// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(67), added: 2542, mode: `MaxEncodedLen`)
/// Storage: `System::Account` (r:256 w:256)
/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
/// Storage: Elections Voting (r:513 w:512)
/// Proof Skipped: Elections Voting (max_values: None, max_size: None, mode: Measured)
/// Storage: Elections Members (r:1 w:0)
/// Proof Skipped: Elections Members (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: Elections RunnersUp (r:1 w:0)
/// Proof Skipped: Elections RunnersUp (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: Elections Candidates (r:1 w:0)
/// Proof Skipped: Elections Candidates (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: Balances Locks (r:512 w:512)
/// Proof: Balances Locks (max_values: None, max_size: Some(1299), added: 3774, mode: MaxEncodedLen)
/// Storage: Balances Freezes (r:512 w:0)
/// Proof: Balances Freezes (max_values: None, max_size: Some(49), added: 2524, mode: MaxEncodedLen)
/// Storage: System Account (r:512 w:512)
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
/// The range of component `v` is `[256, 512]`.
/// The range of component `d` is `[0, 256]`.
fn clean_defunct_voters(v: u32, d: u32, ) -> Weight {
fn clean_defunct_voters(v: u32, _d: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `0 + d * (818 ±0) + v * (57 ±0)`
// Estimated: `24906 + d * (3774 ±1) + v * (24 ±0)`
// Minimum execution time: 5_620_000 picoseconds.
Weight::from_parts(5_817_000, 24906)
// Standard Error: 18_357
.saturating_add(Weight::from_parts(106_164, 0).saturating_mul(v.into()))
// Standard Error: 39_980
.saturating_add(Weight::from_parts(52_456_337, 0).saturating_mul(d.into()))
// Measured: `1149 + v * (811 ±0)`
// Estimated: `4621 + v * (3774 ±0)`
// Minimum execution time: 18_774_231_000 picoseconds.
Weight::from_parts(18_933_040_000, 4621)
// Standard Error: 301_534
.saturating_add(Weight::from_parts(44_306_903, 0).saturating_mul(v.into()))
.saturating_add(RocksDbWeight::get().reads(4_u64))
.saturating_add(RocksDbWeight::get().reads((4_u64).saturating_mul(d.into())))
.saturating_add(RocksDbWeight::get().writes((3_u64).saturating_mul(d.into())))
.saturating_add(Weight::from_parts(0, 3774).saturating_mul(d.into()))
.saturating_add(Weight::from_parts(0, 24).saturating_mul(v.into()))
.saturating_add(RocksDbWeight::get().reads((4_u64).saturating_mul(v.into())))
.saturating_add(RocksDbWeight::get().writes((3_u64).saturating_mul(v.into())))
.saturating_add(Weight::from_parts(0, 3774).saturating_mul(v.into()))
}
/// Storage: `Elections::Candidates` (r:1 w:1)
/// Proof: `Elections::Candidates` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// Storage: `Elections::Members` (r:1 w:1)
/// Proof: `Elections::Members` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// Storage: `Elections::RunnersUp` (r:1 w:1)
/// Proof: `Elections::RunnersUp` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// Storage: `Elections::Voting` (r:513 w:0)
/// Proof: `Elections::Voting` (`max_values`: None, `max_size`: None, mode: `Measured`)
/// Storage: `Council::Proposals` (r:1 w:0)
/// Proof: `Council::Proposals` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// Storage: `System::Account` (r:44 w:44)
/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
/// Storage: `Elections::ElectionRounds` (r:1 w:1)
/// Proof: `Elections::ElectionRounds` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// Storage: `Council::Members` (r:0 w:1)
/// Proof: `Council::Members` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// Storage: `Council::Prime` (r:0 w:1)
/// Proof: `Council::Prime` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// Storage: Elections Candidates (r:1 w:1)
/// Proof Skipped: Elections Candidates (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: Elections Members (r:1 w:1)
/// Proof Skipped: Elections Members (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: Elections RunnersUp (r:1 w:1)
/// Proof Skipped: Elections RunnersUp (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: Elections Voting (r:513 w:0)
/// Proof Skipped: Elections Voting (max_values: None, max_size: None, mode: Measured)
/// Storage: Council Proposals (r:1 w:0)
/// Proof Skipped: Council Proposals (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: System Account (r:44 w:44)
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
/// Storage: Elections ElectionRounds (r:1 w:1)
/// Proof Skipped: Elections ElectionRounds (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: Council Members (r:0 w:1)
/// Proof Skipped: Council Members (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: Council Prime (r:0 w:1)
/// Proof Skipped: Council Prime (max_values: Some(1), max_size: None, mode: Measured)
/// The range of component `c` is `[1, 64]`.
/// The range of component `v` is `[1, 512]`.
/// The range of component `e` is `[512, 8192]`.
fn election_phragmen(c: u32, v: u32, e: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `0 + e * (28 ±0) + v * (606 ±0)`
// Estimated: `178920 + c * (2135 ±7) + e * (12 ±0) + v * (2653 ±6)`
// Minimum execution time: 1_082_582_000 picoseconds.
Weight::from_parts(1_084_730_000, 178920)
// Standard Error: 594_096
.saturating_add(Weight::from_parts(19_096_288, 0).saturating_mul(v.into()))
// Standard Error: 38_118
.saturating_add(Weight::from_parts(792_945, 0).saturating_mul(e.into()))
// Estimated: `178887 + c * (2135 ±7) + e * (12 ±0) + v * (2653 ±6)`
// Minimum execution time: 1_281_877_000 picoseconds.
Weight::from_parts(1_288_147_000, 178887)
// Standard Error: 528_851
.saturating_add(Weight::from_parts(17_761_407, 0).saturating_mul(v.into()))
// Standard Error: 33_932
.saturating_add(Weight::from_parts(698_277, 0).saturating_mul(e.into()))
.saturating_add(RocksDbWeight::get().reads(21_u64))
.saturating_add(RocksDbWeight::get().reads((1_u64).saturating_mul(c.into())))
.saturating_add(RocksDbWeight::get().reads((1_u64).saturating_mul(v.into())))
+40 -36
View File
@@ -46,10 +46,9 @@
//! use the [`Config::WeightInfo`] trait to calculate call weights. This can also be overridden,
//! as demonstrated by [`Call::set_dummy`].
//! - A private function that performs a storage update.
//! - A simple transaction extension implementation (see:
//! [`sp_runtime::traits::TransactionExtension`]) which increases the priority of the
//! [`Call::set_dummy`] if it's present and drops any transaction with an encoded length higher
//! than 200 bytes.
//! - A simple signed extension implementation (see: [`sp_runtime::traits::SignedExtension`]) which
//! increases the priority of the [`Call::set_dummy`] if it's present and drops any transaction
//! with an encoded length higher than 200 bytes.
// Ensure we're `no_std` when compiling for Wasm.
#![cfg_attr(not(feature = "std"), no_std)]
@@ -65,12 +64,10 @@ use frame_system::ensure_signed;
use log::info;
use scale_info::TypeInfo;
use sp_runtime::{
impl_tx_ext_default,
traits::{
Bounded, DispatchInfoOf, OriginOf, SaturatedConversion, Saturating, TransactionExtension,
TransactionExtensionBase, ValidateResult,
traits::{Bounded, DispatchInfoOf, SaturatedConversion, Saturating, SignedExtension},
transaction_validity::{
InvalidTransaction, TransactionValidity, TransactionValidityError, ValidTransaction,
},
transaction_validity::{InvalidTransaction, ValidTransaction},
};
use sp_std::vec::Vec;
@@ -443,8 +440,8 @@ impl<T: Config> Pallet<T> {
// Similar to other FRAME pallets, your pallet can also define a signed extension and perform some
// checks and [pre/post]processing [before/after] the transaction. A signed extension can be any
// decodable type that implements `TransactionExtension`. See the trait definition for the full list
// of bounds. As a convention, you can follow this approach to create an extension for your pallet:
// decodable type that implements `SignedExtension`. See the trait definition for the full list of
// bounds. As a convention, you can follow this approach to create an extension for your pallet:
// - If the extension does not carry any data, then use a tuple struct with just a `marker`
// (needed for the compiler to accept `T: Config`) will suffice.
// - Otherwise, create a tuple struct which contains the external data. Of course, for the entire
@@ -458,18 +455,18 @@ impl<T: Config> Pallet<T> {
//
// Using the extension, you can add some hooks to the life cycle of each transaction. Note that by
// default, an extension is applied to all `Call` functions (i.e. all transactions). the `Call` enum
// variant is given to each function of `TransactionExtension`. Hence, you can filter based on
// pallet or a particular call if needed.
// variant is given to each function of `SignedExtension`. Hence, you can filter based on pallet or
// a particular call if needed.
//
// Some extra information, such as encoded length, some static dispatch info like weight and the
// sender of the transaction (if signed) are also provided.
//
// The full list of hooks that can be added to a signed extension can be found
// [here](https://paritytech.github.io/polkadot-sdk/master/sp_runtime/traits/trait.TransactionExtension.html).
// [here](https://paritytech.github.io/polkadot-sdk/master/sp_runtime/traits/trait.SignedExtension.html).
//
// The signed extensions are aggregated in the runtime file of a substrate chain. All extensions
// should be aggregated in a tuple and passed to the `CheckedExtrinsic` and `UncheckedExtrinsic`
// types defined in the runtime. Lookup `pub type TxExtension = (...)` in `node/runtime` and
// types defined in the runtime. Lookup `pub type SignedExtra = (...)` in `node/runtime` and
// `node-template` for an example of this.
/// A simple signed extension that checks for the `set_dummy` call. In that case, it increases the
@@ -487,45 +484,52 @@ impl<T: Config + Send + Sync> core::fmt::Debug for WatchDummy<T> {
}
}
impl<T: Config + Send + Sync> TransactionExtensionBase for WatchDummy<T> {
const IDENTIFIER: &'static str = "WatchDummy";
type Implicit = ();
}
impl<T: Config + Send + Sync, Context>
TransactionExtension<<T as frame_system::Config>::RuntimeCall, Context> for WatchDummy<T>
impl<T: Config + Send + Sync> SignedExtension for WatchDummy<T>
where
<T as frame_system::Config>::RuntimeCall: IsSubType<Call<T>>,
{
const IDENTIFIER: &'static str = "WatchDummy";
type AccountId = T::AccountId;
type Call = <T as frame_system::Config>::RuntimeCall;
type AdditionalSigned = ();
type Pre = ();
type Val = ();
fn additional_signed(&self) -> core::result::Result<(), TransactionValidityError> {
Ok(())
}
fn pre_dispatch(
self,
who: &Self::AccountId,
call: &Self::Call,
info: &DispatchInfoOf<Self::Call>,
len: usize,
) -> Result<Self::Pre, TransactionValidityError> {
self.validate(who, call, info, len).map(|_| ())
}
fn validate(
&self,
origin: OriginOf<<T as frame_system::Config>::RuntimeCall>,
call: &<T as frame_system::Config>::RuntimeCall,
_info: &DispatchInfoOf<<T as frame_system::Config>::RuntimeCall>,
_who: &Self::AccountId,
call: &Self::Call,
_info: &DispatchInfoOf<Self::Call>,
len: usize,
_context: &mut Context,
_self_implicit: Self::Implicit,
_inherited_implication: &impl Encode,
) -> ValidateResult<Self::Val, <T as frame_system::Config>::RuntimeCall> {
) -> TransactionValidity {
// if the transaction is too big, just drop it.
if len > 200 {
return Err(InvalidTransaction::ExhaustsResources.into())
return InvalidTransaction::ExhaustsResources.into()
}
// check for `set_dummy`
let validity = match call.is_sub_type() {
match call.is_sub_type() {
Some(Call::set_dummy { .. }) => {
sp_runtime::print("set_dummy was received.");
let valid_tx =
ValidTransaction { priority: Bounded::max_value(), ..Default::default() };
valid_tx
Ok(valid_tx)
},
_ => Default::default(),
};
Ok((validity, (), origin))
_ => Ok(Default::default()),
}
}
impl_tx_ext_default!(<T as frame_system::Config>::RuntimeCall; Context; prepare);
}
+3 -6
View File
@@ -27,7 +27,7 @@ use sp_core::H256;
// The testing primitives are very useful for avoiding having to work with signatures
// or public keys. `u64` is used as the `AccountId` and no `Signature`s are required.
use sp_runtime::{
traits::{BlakeTwo256, DispatchTransaction, IdentityLookup},
traits::{BlakeTwo256, IdentityLookup},
BuildStorage,
};
// Reexport crate as its pallet name for construct_runtime.
@@ -158,16 +158,13 @@ fn signed_ext_watch_dummy_works() {
assert_eq!(
WatchDummy::<Test>(PhantomData)
.validate_only(Some(1).into(), &call, &info, 150)
.validate(&1, &call, &info, 150)
.unwrap()
.0
.priority,
u64::MAX,
);
assert_eq!(
WatchDummy::<Test>(PhantomData)
.validate_only(Some(1).into(), &call, &info, 250)
.unwrap_err(),
WatchDummy::<Test>(PhantomData).validate(&1, &call, &info, 250),
InvalidTransaction::ExhaustsResources.into(),
);
})
@@ -30,7 +30,7 @@ use sp_core::{
use sp_keystore::{testing::MemoryKeystore, Keystore, KeystoreExt};
use sp_runtime::{
generic::UncheckedExtrinsic,
testing::TestXt,
traits::{BlakeTwo256, Extrinsic as ExtrinsicT, IdentifyAccount, IdentityLookup, Verify},
RuntimeAppPublic,
};
@@ -73,7 +73,7 @@ impl frame_system::Config for Test {
type MaxConsumers = ConstU32<16>;
}
type Extrinsic = UncheckedExtrinsic<u64, RuntimeCall, (), ()>;
type Extrinsic = TestXt<RuntimeCall, ()>;
type AccountId = <<Signature as Verify>::Signer as IdentifyAccount>::AccountId;
impl frame_system::offchain::SigningTypes for Test {
@@ -99,7 +99,7 @@ where
_account: AccountId,
nonce: u64,
) -> Option<(RuntimeCall, <Extrinsic as ExtrinsicT>::SignaturePayload)> {
Some((call, (nonce, (), ())))
Some((call, (nonce, ())))
}
}
@@ -219,8 +219,8 @@ fn should_submit_signed_transaction_on_chain() {
let tx = pool_state.write().transactions.pop().unwrap();
assert!(pool_state.read().transactions.is_empty());
let tx = Extrinsic::decode(&mut &*tx).unwrap();
assert!(matches!(tx.preamble, sp_runtime::generic::Preamble::Signed(0, (), ())));
assert_eq!(tx.function, RuntimeCall::Example(crate::Call::submit_price { price: 15523 }));
assert_eq!(tx.signature.unwrap().0, 0);
assert_eq!(tx.call, RuntimeCall::Example(crate::Call::submit_price { price: 15523 }));
});
}
@@ -259,11 +259,11 @@ fn should_submit_unsigned_transaction_on_chain_for_any_account() {
// then
let tx = pool_state.write().transactions.pop().unwrap();
let tx = Extrinsic::decode(&mut &*tx).unwrap();
assert!(tx.is_inherent());
assert_eq!(tx.signature, None);
if let RuntimeCall::Example(crate::Call::submit_price_unsigned_with_signed_payload {
price_payload: body,
signature,
}) = tx.function
}) = tx.call
{
assert_eq!(body, price_payload);
@@ -313,11 +313,11 @@ fn should_submit_unsigned_transaction_on_chain_for_all_accounts() {
// then
let tx = pool_state.write().transactions.pop().unwrap();
let tx = Extrinsic::decode(&mut &*tx).unwrap();
assert!(tx.is_inherent());
assert_eq!(tx.signature, None);
if let RuntimeCall::Example(crate::Call::submit_price_unsigned_with_signed_payload {
price_payload: body,
signature,
}) = tx.function
}) = tx.call
{
assert_eq!(body, price_payload);
@@ -353,9 +353,9 @@ fn should_submit_raw_unsigned_transaction_on_chain() {
let tx = pool_state.write().transactions.pop().unwrap();
assert!(pool_state.read().transactions.is_empty());
let tx = Extrinsic::decode(&mut &*tx).unwrap();
assert!(tx.is_inherent());
assert_eq!(tx.signature, None);
assert_eq!(
tx.function,
tx.call,
RuntimeCall::Example(crate::Call::submit_price_unsigned {
block_number: 1,
price: 15523
+36 -42
View File
@@ -15,31 +15,30 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//! Autogenerated weights for `tasks_example`
//! Autogenerated weights for `pallet_example_tasks`
//!
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0
//! DATE: 2024-03-01, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
//! DATE: 2023-06-02, STEPS: `20`, REPEAT: `10`, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! WORST CASE MAP SIZE: `1000000`
//! HOSTNAME: `runner-bn-ce5rx-project-674-concurrent-0`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz`
//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("dev")`, DB CACHE: `1024`
//! HOSTNAME: `MacBook.local`, CPU: `<UNKNOWN>`
//! EXECUTION: None, WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024
// Executed Command:
// ./target/production/substrate-node
// ./target/release/node-template
// benchmark
// pallet
// --chain=dev
// --steps=50
// --repeat=20
// --pallet=tasks_example
// --no-storage-info
// --no-median-slopes
// --no-min-squares
// --extrinsic=*
// --wasm-execution=compiled
// --heap-pages=4096
// --output=./substrate/frame/examples/tasks/src/weights.rs
// --header=./substrate/HEADER-APACHE2
// --template=./substrate/.maintain/frame-weight-template.hbs
// --chain
// dev
// --pallet
// pallet_example_tasks
// --extrinsic
// *
// --steps
// 20
// --repeat
// 10
// --output
// frame/examples/tasks/src/weights.rs
#![cfg_attr(rustfmt, rustfmt_skip)]
#![allow(unused_parens)]
@@ -49,42 +48,37 @@
use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}};
use core::marker::PhantomData;
/// Weight functions needed for `tasks_example`.
/// Weight functions needed for pallet_template.
pub trait WeightInfo {
fn add_number_into_total() -> Weight;
}
/// Weights for `tasks_example` using the Substrate node and recommended hardware.
/// Weight functions for `pallet_example_kitchensink`.
pub struct SubstrateWeight<T>(PhantomData<T>);
impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
/// Storage: `TasksExample::Numbers` (r:1 w:1)
/// Proof: `TasksExample::Numbers` (`max_values`: None, `max_size`: None, mode: `Measured`)
/// Storage: `TasksExample::Total` (r:1 w:1)
/// Proof: `TasksExample::Total` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// Storage: Kitchensink OtherFoo (r:0 w:1)
/// Proof Skipped: Kitchensink OtherFoo (max_values: Some(1), max_size: None, mode: Measured)
fn add_number_into_total() -> Weight {
// Proof Size summary in bytes:
// Measured: `149`
// Estimated: `3614`
// Minimum execution time: 5_776_000 picoseconds.
Weight::from_parts(6_178_000, 3614)
.saturating_add(T::DbWeight::get().reads(2_u64))
.saturating_add(T::DbWeight::get().writes(2_u64))
// Measured: `0`
// Estimated: `0`
// Minimum execution time: 1_000_000 picoseconds.
Weight::from_parts(1_000_000, 0)
.saturating_add(Weight::from_parts(0, 0))
.saturating_add(T::DbWeight::get().writes(1))
}
}
// For backwards compatibility and tests.
impl WeightInfo for () {
/// Storage: `TasksExample::Numbers` (r:1 w:1)
/// Proof: `TasksExample::Numbers` (`max_values`: None, `max_size`: None, mode: `Measured`)
/// Storage: `TasksExample::Total` (r:1 w:1)
/// Proof: `TasksExample::Total` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// Storage: Kitchensink OtherFoo (r:0 w:1)
/// Proof Skipped: Kitchensink OtherFoo (max_values: Some(1), max_size: None, mode: Measured)
fn add_number_into_total() -> Weight {
// Proof Size summary in bytes:
// Measured: `149`
// Estimated: `3614`
// Minimum execution time: 5_776_000 picoseconds.
Weight::from_parts(6_178_000, 3614)
.saturating_add(RocksDbWeight::get().reads(2_u64))
.saturating_add(RocksDbWeight::get().writes(2_u64))
// Measured: `0`
// Estimated: `0`
// Minimum execution time: 1_000_000 picoseconds.
Weight::from_parts(1_000_000, 0)
.saturating_add(Weight::from_parts(0, 0))
.saturating_add(RocksDbWeight::get().writes(1))
}
}
+69 -156
View File
@@ -327,42 +327,10 @@ impl frame_system::Config for Runtime {
type Balance = u64;
pub struct BalancesWeights;
impl pallet_balances::WeightInfo for BalancesWeights {
fn transfer_allow_death() -> Weight {
Weight::from_parts(25, 0)
}
fn transfer_keep_alive() -> Weight {
Weight::zero()
}
fn force_set_balance_creating() -> Weight {
Weight::zero()
}
fn force_set_balance_killing() -> Weight {
Weight::zero()
}
fn force_transfer() -> Weight {
Weight::zero()
}
fn transfer_all() -> Weight {
Weight::zero()
}
fn force_unreserve() -> Weight {
Weight::zero()
}
fn upgrade_accounts(_u: u32) -> Weight {
Weight::zero()
}
fn force_adjust_total_issuance() -> Weight {
Weight::zero()
}
}
#[derive_impl(pallet_balances::config_preludes::TestDefaultConfig as pallet_balances::DefaultConfig)]
impl pallet_balances::Config for Runtime {
type Balance = Balance;
type AccountStore = System;
type WeightInfo = BalancesWeights;
}
parameter_types! {
@@ -375,7 +343,6 @@ impl pallet_transaction_payment::Config for Runtime {
type WeightToFee = IdentityFee<Balance>;
type LengthToFee = ConstantMultiplier<Balance, TransactionByteFee>;
type FeeMultiplierUpdate = ();
type WeightInfo = ();
}
impl custom::Config for Runtime {}
@@ -388,46 +355,19 @@ impl frame_support::traits::Get<sp_version::RuntimeVersion> for RuntimeVersion {
}
}
#[derive(Clone, Debug, Encode, codec::Decode, PartialEq, Eq, scale_info::TypeInfo)]
pub struct AccountU64(u64);
impl sp_runtime::traits::IdentifyAccount for AccountU64 {
type AccountId = u64;
fn into_account(self) -> u64 {
self.0
}
}
impl sp_runtime::traits::Verify for AccountU64 {
type Signer = AccountU64;
fn verify<L: sp_runtime::traits::Lazy<[u8]>>(
&self,
_msg: L,
_signer: &<Self::Signer as sp_runtime::traits::IdentifyAccount>::AccountId,
) -> bool {
true
}
}
impl From<u64> for AccountU64 {
fn from(value: u64) -> Self {
Self(value)
}
}
parameter_types! {
pub static RuntimeVersionTestValues: sp_version::RuntimeVersion =
Default::default();
}
type TxExtension = (
type SignedExtra = (
frame_system::CheckEra<Runtime>,
frame_system::CheckNonce<Runtime>,
frame_system::CheckWeight<Runtime>,
pallet_transaction_payment::ChargeTransactionPayment<Runtime>,
);
type UncheckedXt =
sp_runtime::generic::UncheckedExtrinsic<u64, RuntimeCall, AccountU64, TxExtension>;
type TestBlock = Block<UncheckedXt>;
type TestXt = sp_runtime::testing::TestXt<RuntimeCall, SignedExtra>;
type TestBlock = Block<TestXt>;
// Will contain `true` when the custom runtime logic was called.
const CUSTOM_ON_RUNTIME_KEY: &[u8] = b":custom:on_runtime";
@@ -447,7 +387,7 @@ impl OnRuntimeUpgrade for CustomOnRuntimeUpgrade {
type Executive = super::Executive<
Runtime,
Block<UncheckedXt>,
Block<TestXt>,
ChainContext<Runtime>,
Runtime,
AllPalletsWithSystem,
@@ -522,14 +462,17 @@ impl MultiStepMigrator for MockedModeGetter {
}
}
fn tx_ext(nonce: u64, fee: Balance) -> TxExtension {
fn extra(nonce: u64, fee: Balance) -> SignedExtra {
(
frame_system::CheckEra::from(Era::Immortal),
frame_system::CheckNonce::from(nonce),
frame_system::CheckWeight::new(),
pallet_transaction_payment::ChargeTransactionPayment::from(fee),
)
.into()
}
fn sign_extra(who: u64, nonce: u64, fee: Balance) -> Option<(u64, SignedExtra)> {
Some((who, extra(nonce, fee)))
}
fn call_transfer(dest: u64, value: u64) -> RuntimeCall {
@@ -542,7 +485,7 @@ fn balance_transfer_dispatch_works() {
pallet_balances::GenesisConfig::<Runtime> { balances: vec![(1, 211)] }
.assimilate_storage(&mut t)
.unwrap();
let xt = UncheckedXt::new_signed(call_transfer(2, 69), 1, 1.into(), tx_ext(0, 0));
let xt = TestXt::new(call_transfer(2, 69), sign_extra(1, 0, 0));
let weight = xt.get_dispatch_info().weight +
<Runtime as frame_system::Config>::BlockWeights::get()
.get(DispatchClass::Normal)
@@ -653,7 +596,7 @@ fn block_import_of_bad_extrinsic_root_fails() {
fn bad_extrinsic_not_inserted() {
let mut t = new_test_ext(1);
// bad nonce check!
let xt = UncheckedXt::new_signed(call_transfer(33, 69), 1, 1.into(), tx_ext(30, 0));
let xt = TestXt::new(call_transfer(33, 69), sign_extra(1, 30, 0));
t.execute_with(|| {
Executive::initialize_block(&Header::new_from_number(1));
assert_err!(
@@ -667,24 +610,27 @@ fn bad_extrinsic_not_inserted() {
#[test]
fn block_weight_limit_enforced() {
let mut t = new_test_ext(10000);
let transfer_weight =
<<Runtime as pallet_balances::Config>::WeightInfo as pallet_balances::WeightInfo>::transfer_allow_death();
// given: TestXt uses the encoded len as fixed Len:
let xt = TestXt::new(
RuntimeCall::Balances(BalancesCall::transfer_allow_death { dest: 33, value: 0 }),
sign_extra(1, 0, 0),
);
let encoded = xt.encode();
let encoded_len = encoded.len() as u64;
// on_initialize weight + base block execution weight
let block_weights = <Runtime as frame_system::Config>::BlockWeights::get();
let base_block_weight = Weight::from_parts(175, 0) + block_weights.base_block;
let limit = block_weights.get(DispatchClass::Normal).max_total.unwrap() - base_block_weight;
let num_to_exhaust_block = limit.ref_time() / (transfer_weight.ref_time() + 5);
let num_to_exhaust_block = limit.ref_time() / (encoded_len + 5);
t.execute_with(|| {
Executive::initialize_block(&Header::new_from_number(1));
// Base block execution weight + `on_initialize` weight from the custom module.
assert_eq!(<frame_system::Pallet<Runtime>>::block_weight().total(), base_block_weight);
for nonce in 0..=num_to_exhaust_block {
let xt = UncheckedXt::new_signed(
let xt = TestXt::new(
RuntimeCall::Balances(BalancesCall::transfer_allow_death { dest: 33, value: 0 }),
1,
1.into(),
tx_ext(nonce.into(), 0),
sign_extra(1, nonce.into(), 0),
);
let res = Executive::apply_extrinsic(xt);
if nonce != num_to_exhaust_block {
@@ -692,8 +638,7 @@ fn block_weight_limit_enforced() {
assert_eq!(
<frame_system::Pallet<Runtime>>::block_weight().total(),
//--------------------- on_initialize + block_execution + extrinsic_base weight
Weight::from_parts((transfer_weight.ref_time() + 5) * (nonce + 1), 0) +
base_block_weight,
Weight::from_parts((encoded_len + 5) * (nonce + 1), 0) + base_block_weight,
);
assert_eq!(
<frame_system::Pallet<Runtime>>::extrinsic_index(),
@@ -708,26 +653,19 @@ fn block_weight_limit_enforced() {
#[test]
fn block_weight_and_size_is_stored_per_tx() {
let xt = UncheckedXt::new_signed(
let xt = TestXt::new(
RuntimeCall::Balances(BalancesCall::transfer_allow_death { dest: 33, value: 0 }),
1,
1.into(),
tx_ext(0, 0),
sign_extra(1, 0, 0),
);
let x1 = UncheckedXt::new_signed(
let x1 = TestXt::new(
RuntimeCall::Balances(BalancesCall::transfer_allow_death { dest: 33, value: 0 }),
1,
1.into(),
tx_ext(1, 0),
sign_extra(1, 1, 0),
);
let x2 = UncheckedXt::new_signed(
let x2 = TestXt::new(
RuntimeCall::Balances(BalancesCall::transfer_allow_death { dest: 33, value: 0 }),
1,
1.into(),
tx_ext(2, 0),
sign_extra(1, 2, 0),
);
let len = xt.clone().encode().len() as u32;
let transfer_weight = <<Runtime as pallet_balances::Config>::WeightInfo as pallet_balances::WeightInfo>::transfer_allow_death();
let mut t = new_test_ext(1);
t.execute_with(|| {
// Block execution weight + on_initialize weight from custom module
@@ -743,7 +681,8 @@ fn block_weight_and_size_is_stored_per_tx() {
assert!(Executive::apply_extrinsic(x1.clone()).unwrap().is_ok());
assert!(Executive::apply_extrinsic(x2.clone()).unwrap().is_ok());
let extrinsic_weight = transfer_weight +
// default weight for `TestXt` == encoded length.
let extrinsic_weight = Weight::from_parts(len as u64, 0) +
<Runtime as frame_system::Config>::BlockWeights::get()
.get(DispatchClass::Normal)
.base_extrinsic;
@@ -768,8 +707,8 @@ fn block_weight_and_size_is_stored_per_tx() {
#[test]
fn validate_unsigned() {
let valid = UncheckedXt::new_bare(RuntimeCall::Custom(custom::Call::allowed_unsigned {}));
let invalid = UncheckedXt::new_bare(RuntimeCall::Custom(custom::Call::unallowed_unsigned {}));
let valid = TestXt::new(RuntimeCall::Custom(custom::Call::allowed_unsigned {}), None);
let invalid = TestXt::new(RuntimeCall::Custom(custom::Call::unallowed_unsigned {}), None);
let mut t = new_test_ext(1);
t.execute_with(|| {
@@ -806,11 +745,9 @@ fn can_not_pay_for_tx_fee_on_full_lock() {
t.execute_with(|| {
<pallet_balances::Pallet<Runtime> as fungible::MutateFreeze<u64>>::set_freeze(&(), &1, 110)
.unwrap();
let xt = UncheckedXt::new_signed(
let xt = TestXt::new(
RuntimeCall::System(frame_system::Call::remark { remark: vec![1u8] }),
1,
1.into(),
tx_ext(0, 0),
sign_extra(1, 0, 0),
);
Executive::initialize_block(&Header::new_from_number(1));
@@ -935,11 +872,9 @@ fn event_from_runtime_upgrade_is_included() {
/// used through the `ExecuteBlock` trait.
#[test]
fn custom_runtime_upgrade_is_called_when_using_execute_block_trait() {
let xt = UncheckedXt::new_signed(
let xt = TestXt::new(
RuntimeCall::Balances(BalancesCall::transfer_allow_death { dest: 33, value: 0 }),
1,
1.into(),
tx_ext(0, 0),
sign_extra(1, 0, 0),
);
let header = new_test_ext(1).execute_with(|| {
@@ -967,10 +902,7 @@ fn custom_runtime_upgrade_is_called_when_using_execute_block_trait() {
*v = sp_version::RuntimeVersion { spec_version: 1, ..Default::default() }
});
<Executive as ExecuteBlock<Block<UncheckedXt>>>::execute_block(Block::new(
header,
vec![xt],
));
<Executive as ExecuteBlock<Block<TestXt>>>::execute_block(Block::new(header, vec![xt]));
assert_eq!(&sp_io::storage::get(TEST_KEY).unwrap()[..], *b"module");
assert_eq!(sp_io::storage::get(CUSTOM_ON_RUNTIME_KEY).unwrap(), true.encode());
@@ -1036,7 +968,7 @@ fn offchain_worker_works_as_expected() {
#[test]
fn calculating_storage_root_twice_works() {
let call = RuntimeCall::Custom(custom::Call::calculate_storage_root {});
let xt = UncheckedXt::new_signed(call, 1, 1.into(), tx_ext(0, 0));
let xt = TestXt::new(call, sign_extra(1, 0, 0));
let header = new_test_ext(1).execute_with(|| {
// Let's build some fake block.
@@ -1055,13 +987,11 @@ fn calculating_storage_root_twice_works() {
#[test]
#[should_panic(expected = "Invalid inherent position for extrinsic at index 1")]
fn invalid_inherent_position_fail() {
let xt1 = UncheckedXt::new_signed(
let xt1 = TestXt::new(
RuntimeCall::Balances(BalancesCall::transfer_allow_death { dest: 33, value: 0 }),
1,
1.into(),
tx_ext(0, 0),
sign_extra(1, 0, 0),
);
let xt2 = UncheckedXt::new_bare(RuntimeCall::Custom(custom::Call::inherent {}));
let xt2 = TestXt::new(RuntimeCall::Custom(custom::Call::inherent {}), None);
let header = new_test_ext(1).execute_with(|| {
// Let's build some fake block.
@@ -1080,8 +1010,8 @@ fn invalid_inherent_position_fail() {
#[test]
fn valid_inherents_position_works() {
let xt1 = UncheckedXt::new_bare(RuntimeCall::Custom(custom::Call::inherent {}));
let xt2 = UncheckedXt::new_signed(call_transfer(33, 0), 1, 1.into(), tx_ext(0, 0));
let xt1 = TestXt::new(RuntimeCall::Custom(custom::Call::inherent {}), None);
let xt2 = TestXt::new(call_transfer(33, 0), sign_extra(1, 0, 0));
let header = new_test_ext(1).execute_with(|| {
// Let's build some fake block.
@@ -1101,12 +1031,7 @@ fn valid_inherents_position_works() {
#[test]
#[should_panic(expected = "A call was labelled as mandatory, but resulted in an Error.")]
fn invalid_inherents_fail_block_execution() {
let xt1 = UncheckedXt::new_signed(
RuntimeCall::Custom(custom::Call::inherent {}),
1,
1.into(),
tx_ext(0, 0),
);
let xt1 = TestXt::new(RuntimeCall::Custom(custom::Call::inherent {}), sign_extra(1, 0, 0));
new_test_ext(1).execute_with(|| {
Executive::execute_block(Block::new(
@@ -1119,7 +1044,7 @@ fn invalid_inherents_fail_block_execution() {
// Inherents are created by the runtime and don't need to be validated.
#[test]
fn inherents_fail_validate_block() {
let xt1 = UncheckedXt::new_bare(RuntimeCall::Custom(custom::Call::inherent {}));
let xt1 = TestXt::new(RuntimeCall::Custom(custom::Call::inherent {}), None);
new_test_ext(1).execute_with(|| {
assert_eq!(
@@ -1133,7 +1058,7 @@ fn inherents_fail_validate_block() {
/// Inherents still work while `initialize_block` forbids transactions.
#[test]
fn inherents_ok_while_exts_forbidden_works() {
let xt1 = UncheckedXt::new_bare(RuntimeCall::Custom(custom::Call::inherent {}));
let xt1 = TestXt::new(RuntimeCall::Custom(custom::Call::inherent {}), None);
let header = new_test_ext(1).execute_with(|| {
Executive::initialize_block(&Header::new_from_number(1));
@@ -1153,8 +1078,8 @@ fn inherents_ok_while_exts_forbidden_works() {
#[test]
#[should_panic = "Only inherents are allowed in this block"]
fn transactions_in_only_inherents_block_errors() {
let xt1 = UncheckedXt::new_bare(RuntimeCall::Custom(custom::Call::inherent {}));
let xt2 = UncheckedXt::new_signed(call_transfer(33, 0), 1, 1.into(), tx_ext(0, 0));
let xt1 = TestXt::new(RuntimeCall::Custom(custom::Call::inherent {}), None);
let xt2 = TestXt::new(call_transfer(33, 0), sign_extra(1, 0, 0));
let header = new_test_ext(1).execute_with(|| {
Executive::initialize_block(&Header::new_from_number(1));
@@ -1174,8 +1099,8 @@ fn transactions_in_only_inherents_block_errors() {
/// Same as above but no error.
#[test]
fn transactions_in_normal_block_works() {
let xt1 = UncheckedXt::new_bare(RuntimeCall::Custom(custom::Call::inherent {}));
let xt2 = UncheckedXt::new_signed(call_transfer(33, 0), 1, 1.into(), tx_ext(0, 0));
let xt1 = TestXt::new(RuntimeCall::Custom(custom::Call::inherent {}), None);
let xt2 = TestXt::new(call_transfer(33, 0), sign_extra(1, 0, 0));
let header = new_test_ext(1).execute_with(|| {
Executive::initialize_block(&Header::new_from_number(1));
@@ -1195,8 +1120,8 @@ fn transactions_in_normal_block_works() {
#[test]
#[cfg(feature = "try-runtime")]
fn try_execute_block_works() {
let xt1 = UncheckedXt::new_bare(RuntimeCall::Custom(custom::Call::inherent {}));
let xt2 = UncheckedXt::new_signed(call_transfer(33, 0), 1, 1.into(), tx_ext(0, 0));
let xt1 = TestXt::new(RuntimeCall::Custom(custom::Call::inherent {}), None);
let xt2 = TestXt::new(call_transfer(33, 0), sign_extra(1, 0, 0));
let header = new_test_ext(1).execute_with(|| {
Executive::initialize_block(&Header::new_from_number(1));
@@ -1223,8 +1148,8 @@ fn try_execute_block_works() {
#[cfg(feature = "try-runtime")]
#[should_panic = "Only inherents allowed"]
fn try_execute_tx_forbidden_errors() {
let xt1 = UncheckedXt::new_bare(RuntimeCall::Custom(custom::Call::inherent {}));
let xt2 = UncheckedXt::new_signed(call_transfer(33, 0), 1, 1.into(), tx_ext(0, 0));
let xt1 = TestXt::new(RuntimeCall::Custom(custom::Call::inherent {}), None);
let xt2 = TestXt::new(call_transfer(33, 0), sign_extra(1, 0, 0));
let header = new_test_ext(1).execute_with(|| {
// Let's build some fake block.
@@ -1251,9 +1176,9 @@ fn try_execute_tx_forbidden_errors() {
/// Check that `ensure_inherents_are_first` reports the correct indices.
#[test]
fn ensure_inherents_are_first_works() {
let in1 = UncheckedXt::new_bare(RuntimeCall::Custom(custom::Call::inherent {}));
let in2 = UncheckedXt::new_bare(RuntimeCall::Custom2(custom2::Call::inherent {}));
let xt2 = UncheckedXt::new_signed(call_transfer(33, 0), 1, 1.into(), tx_ext(0, 0));
let in1 = TestXt::new(RuntimeCall::Custom(custom::Call::inherent {}), None);
let in2 = TestXt::new(RuntimeCall::Custom2(custom2::Call::inherent {}), None);
let xt2 = TestXt::new(call_transfer(33, 0), sign_extra(1, 0, 0));
// Mocked empty header:
let header = new_test_ext(1).execute_with(|| {
@@ -1331,20 +1256,18 @@ fn callbacks_in_block_execution_works_inner(mbms_active: bool) {
for i in 0..n_in {
let xt = if i % 2 == 0 {
UncheckedXt::new_bare(RuntimeCall::Custom(custom::Call::inherent {}))
TestXt::new(RuntimeCall::Custom(custom::Call::inherent {}), None)
} else {
UncheckedXt::new_bare(RuntimeCall::Custom2(custom2::Call::optional_inherent {}))
TestXt::new(RuntimeCall::Custom2(custom2::Call::optional_inherent {}), None)
};
Executive::apply_extrinsic(xt.clone()).unwrap().unwrap();
extrinsics.push(xt);
}
for t in 0..n_tx {
let xt = UncheckedXt::new_signed(
let xt = TestXt::new(
RuntimeCall::Custom2(custom2::Call::some_call {}),
1,
1.into(),
tx_ext(t as u64, 0),
sign_extra(1, t as u64, 0),
);
// Extrinsics can be applied even when MBMs are active. Only the `execute_block`
// will reject it.
@@ -1384,13 +1307,8 @@ fn callbacks_in_block_execution_works_inner(mbms_active: bool) {
#[test]
fn post_inherent_called_after_all_inherents() {
let in1 = UncheckedXt::new_bare(RuntimeCall::Custom2(custom2::Call::inherent {}));
let xt1 = UncheckedXt::new_signed(
RuntimeCall::Custom2(custom2::Call::some_call {}),
1,
1.into(),
tx_ext(0, 0),
);
let in1 = TestXt::new(RuntimeCall::Custom2(custom2::Call::inherent {}), None);
let xt1 = TestXt::new(RuntimeCall::Custom2(custom2::Call::some_call {}), sign_extra(1, 0, 0));
let header = new_test_ext(1).execute_with(|| {
// Let's build some fake block.
@@ -1424,13 +1342,8 @@ fn post_inherent_called_after_all_inherents() {
/// Regression test for AppSec finding #40.
#[test]
fn post_inherent_called_after_all_optional_inherents() {
let in1 = UncheckedXt::new_bare(RuntimeCall::Custom2(custom2::Call::optional_inherent {}));
let xt1 = UncheckedXt::new_signed(
RuntimeCall::Custom2(custom2::Call::some_call {}),
1,
1.into(),
tx_ext(0, 0),
);
let in1 = TestXt::new(RuntimeCall::Custom2(custom2::Call::optional_inherent {}), None);
let xt1 = TestXt::new(RuntimeCall::Custom2(custom2::Call::some_call {}), sign_extra(1, 0, 0));
let header = new_test_ext(1).execute_with(|| {
// Let's build some fake block.
@@ -1463,14 +1376,14 @@ fn post_inherent_called_after_all_optional_inherents() {
#[test]
fn is_inherent_works() {
let ext = UncheckedXt::new_bare(RuntimeCall::Custom2(custom2::Call::inherent {}));
let ext = TestXt::new(RuntimeCall::Custom2(custom2::Call::inherent {}), None);
assert!(Runtime::is_inherent(&ext));
let ext = UncheckedXt::new_bare(RuntimeCall::Custom2(custom2::Call::optional_inherent {}));
let ext = TestXt::new(RuntimeCall::Custom2(custom2::Call::optional_inherent {}), None);
assert!(Runtime::is_inherent(&ext));
let ext = UncheckedXt::new_signed(call_transfer(33, 0), 1, 1.into(), tx_ext(0, 0));
let ext = TestXt::new(call_transfer(33, 0), sign_extra(1, 0, 0));
assert!(!Runtime::is_inherent(&ext));
let ext = UncheckedXt::new_bare(RuntimeCall::Custom2(custom2::Call::allowed_unsigned {}));
let ext = TestXt::new(RuntimeCall::Custom2(custom2::Call::allowed_unsigned {}), None);
assert!(!Runtime::is_inherent(&ext), "Unsigned ext are not automatically inherents");
}
+235 -238
View File
@@ -15,16 +15,16 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//! Autogenerated weights for `pallet_fast_unstake`
//! Autogenerated weights for pallet_fast_unstake
//!
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0
//! DATE: 2024-03-01, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
//! DATE: 2023-06-16, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! WORST CASE MAP SIZE: `1000000`
//! HOSTNAME: `runner-bn-ce5rx-project-674-concurrent-0`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz`
//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("dev")`, DB CACHE: `1024`
//! HOSTNAME: `runner-e8ezs4ez-project-145-concurrent-0`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz`
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024
// Executed Command:
// ./target/production/substrate-node
// ./target/production/substrate
// benchmark
// pallet
// --chain=dev
@@ -35,11 +35,12 @@
// --no-median-slopes
// --no-min-squares
// --extrinsic=*
// --execution=wasm
// --wasm-execution=compiled
// --heap-pages=4096
// --output=./substrate/frame/fast-unstake/src/weights.rs
// --header=./substrate/HEADER-APACHE2
// --template=./substrate/.maintain/frame-weight-template.hbs
// --output=./frame/fast-unstake/src/weights.rs
// --header=./HEADER-APACHE2
// --template=./.maintain/frame-weight-template.hbs
#![cfg_attr(rustfmt, rustfmt_skip)]
#![allow(unused_parens)]
@@ -49,7 +50,7 @@
use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}};
use core::marker::PhantomData;
/// Weight functions needed for `pallet_fast_unstake`.
/// Weight functions needed for pallet_fast_unstake.
pub trait WeightInfo {
fn on_idle_unstake(b: u32, ) -> Weight;
fn on_idle_check(v: u32, b: u32, ) -> Weight;
@@ -58,305 +59,301 @@ pub trait WeightInfo {
fn control() -> Weight;
}
/// Weights for `pallet_fast_unstake` using the Substrate node and recommended hardware.
/// Weights for pallet_fast_unstake using the Substrate node and recommended hardware.
pub struct SubstrateWeight<T>(PhantomData<T>);
impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
/// Storage: `FastUnstake::ErasToCheckPerBlock` (r:1 w:0)
/// Proof: `FastUnstake::ErasToCheckPerBlock` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
/// Storage: `Staking::ValidatorCount` (r:1 w:0)
/// Proof: `Staking::ValidatorCount` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
/// Storage: `FastUnstake::Head` (r:1 w:1)
/// Proof: `FastUnstake::Head` (`max_values`: Some(1), `max_size`: Some(5768), added: 6263, mode: `MaxEncodedLen`)
/// Storage: `FastUnstake::CounterForQueue` (r:1 w:0)
/// Proof: `FastUnstake::CounterForQueue` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
/// Storage: `ElectionProviderMultiPhase::CurrentPhase` (r:1 w:0)
/// Proof: `ElectionProviderMultiPhase::CurrentPhase` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// Storage: `Staking::CurrentEra` (r:1 w:0)
/// Proof: `Staking::CurrentEra` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
/// Storage: `Staking::SlashingSpans` (r:64 w:0)
/// Proof: `Staking::SlashingSpans` (`max_values`: None, `max_size`: None, mode: `Measured`)
/// Storage: `Staking::Bonded` (r:64 w:64)
/// Proof: `Staking::Bonded` (`max_values`: None, `max_size`: Some(72), added: 2547, mode: `MaxEncodedLen`)
/// Storage: `Staking::Ledger` (r:64 w:64)
/// Proof: `Staking::Ledger` (`max_values`: None, `max_size`: Some(1091), added: 3566, mode: `MaxEncodedLen`)
/// Storage: `Balances::Locks` (r:64 w:64)
/// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1299), added: 3774, mode: `MaxEncodedLen`)
/// Storage: `Balances::Freezes` (r:64 w:0)
/// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(67), added: 2542, mode: `MaxEncodedLen`)
/// Storage: `System::Account` (r:64 w:64)
/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
/// Storage: `Staking::Validators` (r:64 w:0)
/// Proof: `Staking::Validators` (`max_values`: None, `max_size`: Some(45), added: 2520, mode: `MaxEncodedLen`)
/// Storage: `Staking::Nominators` (r:64 w:0)
/// Proof: `Staking::Nominators` (`max_values`: None, `max_size`: Some(558), added: 3033, mode: `MaxEncodedLen`)
/// Storage: `Staking::Payee` (r:0 w:64)
/// Proof: `Staking::Payee` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`)
/// Storage: FastUnstake ErasToCheckPerBlock (r:1 w:0)
/// Proof: FastUnstake ErasToCheckPerBlock (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
/// Storage: Staking ValidatorCount (r:1 w:0)
/// Proof: Staking ValidatorCount (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
/// Storage: FastUnstake Head (r:1 w:1)
/// Proof: FastUnstake Head (max_values: Some(1), max_size: Some(5768), added: 6263, mode: MaxEncodedLen)
/// Storage: FastUnstake CounterForQueue (r:1 w:0)
/// Proof: FastUnstake CounterForQueue (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
/// Storage: ElectionProviderMultiPhase CurrentPhase (r:1 w:0)
/// Proof Skipped: ElectionProviderMultiPhase CurrentPhase (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: Staking CurrentEra (r:1 w:0)
/// Proof: Staking CurrentEra (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
/// Storage: Staking SlashingSpans (r:64 w:0)
/// Proof Skipped: Staking SlashingSpans (max_values: None, max_size: None, mode: Measured)
/// Storage: Staking Bonded (r:64 w:64)
/// Proof: Staking Bonded (max_values: None, max_size: Some(72), added: 2547, mode: MaxEncodedLen)
/// Storage: Staking Validators (r:64 w:0)
/// Proof: Staking Validators (max_values: None, max_size: Some(45), added: 2520, mode: MaxEncodedLen)
/// Storage: Staking Nominators (r:64 w:0)
/// Proof: Staking Nominators (max_values: None, max_size: Some(558), added: 3033, mode: MaxEncodedLen)
/// Storage: System Account (r:64 w:64)
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
/// Storage: Balances Locks (r:64 w:64)
/// Proof: Balances Locks (max_values: None, max_size: Some(1299), added: 3774, mode: MaxEncodedLen)
/// Storage: Balances Freezes (r:64 w:0)
/// Proof: Balances Freezes (max_values: None, max_size: Some(49), added: 2524, mode: MaxEncodedLen)
/// Storage: Staking Ledger (r:0 w:64)
/// Proof: Staking Ledger (max_values: None, max_size: Some(1091), added: 3566, mode: MaxEncodedLen)
/// Storage: Staking Payee (r:0 w:64)
/// Proof: Staking Payee (max_values: None, max_size: Some(73), added: 2548, mode: MaxEncodedLen)
/// The range of component `b` is `[1, 64]`.
fn on_idle_unstake(b: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `1475 + b * (452 ±0)`
// Measured: `1378 + b * (343 ±0)`
// Estimated: `7253 + b * (3774 ±0)`
// Minimum execution time: 89_005_000 picoseconds.
Weight::from_parts(50_257_055, 7253)
// Standard Error: 68_836
.saturating_add(Weight::from_parts(57_329_950, 0).saturating_mul(b.into()))
// Minimum execution time: 92_847_000 picoseconds.
Weight::from_parts(42_300_813, 7253)
// Standard Error: 40_514
.saturating_add(Weight::from_parts(58_412_402, 0).saturating_mul(b.into()))
.saturating_add(T::DbWeight::get().reads(6_u64))
.saturating_add(T::DbWeight::get().reads((8_u64).saturating_mul(b.into())))
.saturating_add(T::DbWeight::get().reads((7_u64).saturating_mul(b.into())))
.saturating_add(T::DbWeight::get().writes(1_u64))
.saturating_add(T::DbWeight::get().writes((5_u64).saturating_mul(b.into())))
.saturating_add(Weight::from_parts(0, 3774).saturating_mul(b.into()))
}
/// Storage: `FastUnstake::ErasToCheckPerBlock` (r:1 w:0)
/// Proof: `FastUnstake::ErasToCheckPerBlock` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
/// Storage: `Staking::ValidatorCount` (r:1 w:0)
/// Proof: `Staking::ValidatorCount` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
/// Storage: `FastUnstake::Head` (r:1 w:1)
/// Proof: `FastUnstake::Head` (`max_values`: Some(1), `max_size`: Some(5768), added: 6263, mode: `MaxEncodedLen`)
/// Storage: `FastUnstake::CounterForQueue` (r:1 w:0)
/// Proof: `FastUnstake::CounterForQueue` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
/// Storage: `ElectionProviderMultiPhase::CurrentPhase` (r:1 w:0)
/// Proof: `ElectionProviderMultiPhase::CurrentPhase` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// Storage: `Staking::CurrentEra` (r:1 w:0)
/// Proof: `Staking::CurrentEra` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
/// Storage: `Staking::ErasStakers` (r:1 w:0)
/// Proof: `Staking::ErasStakers` (`max_values`: None, `max_size`: None, mode: `Measured`)
/// Storage: `Staking::ErasStakersPaged` (r:257 w:0)
/// Proof: `Staking::ErasStakersPaged` (`max_values`: None, `max_size`: None, mode: `Measured`)
/// Storage: FastUnstake ErasToCheckPerBlock (r:1 w:0)
/// Proof: FastUnstake ErasToCheckPerBlock (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
/// Storage: Staking ValidatorCount (r:1 w:0)
/// Proof: Staking ValidatorCount (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
/// Storage: FastUnstake Head (r:1 w:1)
/// Proof: FastUnstake Head (max_values: Some(1), max_size: Some(5768), added: 6263, mode: MaxEncodedLen)
/// Storage: FastUnstake CounterForQueue (r:1 w:0)
/// Proof: FastUnstake CounterForQueue (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
/// Storage: ElectionProviderMultiPhase CurrentPhase (r:1 w:0)
/// Proof Skipped: ElectionProviderMultiPhase CurrentPhase (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: Staking CurrentEra (r:1 w:0)
/// Proof: Staking CurrentEra (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
/// Storage: Staking ErasStakers (r:257 w:0)
/// Proof Skipped: Staking ErasStakers (max_values: None, max_size: None, mode: Measured)
/// The range of component `v` is `[1, 256]`.
/// The range of component `b` is `[1, 64]`.
fn on_idle_check(v: u32, b: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `1879 + b * (55 ±0) + v * (10055 ±0)`
// Estimated: `7253 + b * (56 ±0) + v * (12531 ±0)`
// Minimum execution time: 1_737_131_000 picoseconds.
Weight::from_parts(1_746_770_000, 7253)
// Standard Error: 13_401_143
.saturating_add(Weight::from_parts(426_946_450, 0).saturating_mul(v.into()))
// Standard Error: 53_619_501
.saturating_add(Weight::from_parts(1_664_681_508, 0).saturating_mul(b.into()))
.saturating_add(T::DbWeight::get().reads(8_u64))
// Measured: `1546 + b * (48 ±0) + v * (10037 ±0)`
// Estimated: `7253 + b * (49 ±0) + v * (12513 ±0)`
// Minimum execution time: 1_685_784_000 picoseconds.
Weight::from_parts(1_693_370_000, 7253)
// Standard Error: 13_295_842
.saturating_add(Weight::from_parts(425_349_148, 0).saturating_mul(v.into()))
// Standard Error: 53_198_180
.saturating_add(Weight::from_parts(1_673_328_444, 0).saturating_mul(b.into()))
.saturating_add(T::DbWeight::get().reads(7_u64))
.saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(v.into())))
.saturating_add(T::DbWeight::get().writes(1_u64))
.saturating_add(Weight::from_parts(0, 56).saturating_mul(b.into()))
.saturating_add(Weight::from_parts(0, 12531).saturating_mul(v.into()))
.saturating_add(Weight::from_parts(0, 49).saturating_mul(b.into()))
.saturating_add(Weight::from_parts(0, 12513).saturating_mul(v.into()))
}
/// Storage: `FastUnstake::ErasToCheckPerBlock` (r:1 w:0)
/// Proof: `FastUnstake::ErasToCheckPerBlock` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
/// Storage: `Staking::Ledger` (r:1 w:1)
/// Proof: `Staking::Ledger` (`max_values`: None, `max_size`: Some(1091), added: 3566, mode: `MaxEncodedLen`)
/// Storage: `FastUnstake::Queue` (r:1 w:1)
/// Proof: `FastUnstake::Queue` (`max_values`: None, `max_size`: Some(56), added: 2531, mode: `MaxEncodedLen`)
/// Storage: `FastUnstake::Head` (r:1 w:0)
/// Proof: `FastUnstake::Head` (`max_values`: Some(1), `max_size`: Some(5768), added: 6263, mode: `MaxEncodedLen`)
/// Storage: `Staking::Bonded` (r:1 w:0)
/// Proof: `Staking::Bonded` (`max_values`: None, `max_size`: Some(72), added: 2547, mode: `MaxEncodedLen`)
/// Storage: `Staking::Validators` (r:1 w:0)
/// Proof: `Staking::Validators` (`max_values`: None, `max_size`: Some(45), added: 2520, mode: `MaxEncodedLen`)
/// Storage: `Staking::Nominators` (r:1 w:1)
/// Proof: `Staking::Nominators` (`max_values`: None, `max_size`: Some(558), added: 3033, mode: `MaxEncodedLen`)
/// Storage: `Staking::CounterForNominators` (r:1 w:1)
/// Proof: `Staking::CounterForNominators` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
/// Storage: `VoterList::ListNodes` (r:1 w:1)
/// Proof: `VoterList::ListNodes` (`max_values`: None, `max_size`: Some(154), added: 2629, mode: `MaxEncodedLen`)
/// Storage: `VoterList::ListBags` (r:1 w:1)
/// Proof: `VoterList::ListBags` (`max_values`: None, `max_size`: Some(82), added: 2557, mode: `MaxEncodedLen`)
/// Storage: `VoterList::CounterForListNodes` (r:1 w:1)
/// Proof: `VoterList::CounterForListNodes` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
/// Storage: `Staking::CurrentEra` (r:1 w:0)
/// Proof: `Staking::CurrentEra` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
/// Storage: `Balances::Locks` (r:1 w:1)
/// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1299), added: 3774, mode: `MaxEncodedLen`)
/// Storage: `Balances::Freezes` (r:1 w:0)
/// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(67), added: 2542, mode: `MaxEncodedLen`)
/// Storage: `FastUnstake::CounterForQueue` (r:1 w:1)
/// Proof: `FastUnstake::CounterForQueue` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
/// Storage: FastUnstake ErasToCheckPerBlock (r:1 w:0)
/// Proof: FastUnstake ErasToCheckPerBlock (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
/// Storage: Staking Ledger (r:1 w:1)
/// Proof: Staking Ledger (max_values: None, max_size: Some(1091), added: 3566, mode: MaxEncodedLen)
/// Storage: FastUnstake Queue (r:1 w:1)
/// Proof: FastUnstake Queue (max_values: None, max_size: Some(56), added: 2531, mode: MaxEncodedLen)
/// Storage: FastUnstake Head (r:1 w:0)
/// Proof: FastUnstake Head (max_values: Some(1), max_size: Some(5768), added: 6263, mode: MaxEncodedLen)
/// Storage: Staking Bonded (r:1 w:0)
/// Proof: Staking Bonded (max_values: None, max_size: Some(72), added: 2547, mode: MaxEncodedLen)
/// Storage: Staking Validators (r:1 w:0)
/// Proof: Staking Validators (max_values: None, max_size: Some(45), added: 2520, mode: MaxEncodedLen)
/// Storage: Staking Nominators (r:1 w:1)
/// Proof: Staking Nominators (max_values: None, max_size: Some(558), added: 3033, mode: MaxEncodedLen)
/// Storage: Staking CounterForNominators (r:1 w:1)
/// Proof: Staking CounterForNominators (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
/// Storage: VoterList ListNodes (r:1 w:1)
/// Proof: VoterList ListNodes (max_values: None, max_size: Some(154), added: 2629, mode: MaxEncodedLen)
/// Storage: VoterList ListBags (r:1 w:1)
/// Proof: VoterList ListBags (max_values: None, max_size: Some(82), added: 2557, mode: MaxEncodedLen)
/// Storage: VoterList CounterForListNodes (r:1 w:1)
/// Proof: VoterList CounterForListNodes (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
/// Storage: Staking CurrentEra (r:1 w:0)
/// Proof: Staking CurrentEra (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
/// Storage: Balances Locks (r:1 w:1)
/// Proof: Balances Locks (max_values: None, max_size: Some(1299), added: 3774, mode: MaxEncodedLen)
/// Storage: Balances Freezes (r:1 w:0)
/// Proof: Balances Freezes (max_values: None, max_size: Some(49), added: 2524, mode: MaxEncodedLen)
/// Storage: FastUnstake CounterForQueue (r:1 w:1)
/// Proof: FastUnstake CounterForQueue (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
fn register_fast_unstake() -> Weight {
// Proof Size summary in bytes:
// Measured: `1955`
// Measured: `1964`
// Estimated: `7253`
// Minimum execution time: 112_632_000 picoseconds.
Weight::from_parts(117_267_000, 7253)
// Minimum execution time: 125_512_000 picoseconds.
Weight::from_parts(129_562_000, 7253)
.saturating_add(T::DbWeight::get().reads(15_u64))
.saturating_add(T::DbWeight::get().writes(9_u64))
}
/// Storage: `FastUnstake::ErasToCheckPerBlock` (r:1 w:0)
/// Proof: `FastUnstake::ErasToCheckPerBlock` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
/// Storage: `Staking::Ledger` (r:1 w:0)
/// Proof: `Staking::Ledger` (`max_values`: None, `max_size`: Some(1091), added: 3566, mode: `MaxEncodedLen`)
/// Storage: `FastUnstake::Queue` (r:1 w:1)
/// Proof: `FastUnstake::Queue` (`max_values`: None, `max_size`: Some(56), added: 2531, mode: `MaxEncodedLen`)
/// Storage: `FastUnstake::Head` (r:1 w:0)
/// Proof: `FastUnstake::Head` (`max_values`: Some(1), `max_size`: Some(5768), added: 6263, mode: `MaxEncodedLen`)
/// Storage: `FastUnstake::CounterForQueue` (r:1 w:1)
/// Proof: `FastUnstake::CounterForQueue` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
/// Storage: FastUnstake ErasToCheckPerBlock (r:1 w:0)
/// Proof: FastUnstake ErasToCheckPerBlock (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
/// Storage: Staking Ledger (r:1 w:0)
/// Proof: Staking Ledger (max_values: None, max_size: Some(1091), added: 3566, mode: MaxEncodedLen)
/// Storage: FastUnstake Queue (r:1 w:1)
/// Proof: FastUnstake Queue (max_values: None, max_size: Some(56), added: 2531, mode: MaxEncodedLen)
/// Storage: FastUnstake Head (r:1 w:0)
/// Proof: FastUnstake Head (max_values: Some(1), max_size: Some(5768), added: 6263, mode: MaxEncodedLen)
/// Storage: FastUnstake CounterForQueue (r:1 w:1)
/// Proof: FastUnstake CounterForQueue (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
fn deregister() -> Weight {
// Proof Size summary in bytes:
// Measured: `1251`
// Measured: `1223`
// Estimated: `7253`
// Minimum execution time: 39_253_000 picoseconds.
Weight::from_parts(40_053_000, 7253)
// Minimum execution time: 43_943_000 picoseconds.
Weight::from_parts(45_842_000, 7253)
.saturating_add(T::DbWeight::get().reads(5_u64))
.saturating_add(T::DbWeight::get().writes(2_u64))
}
/// Storage: `FastUnstake::ErasToCheckPerBlock` (r:0 w:1)
/// Proof: `FastUnstake::ErasToCheckPerBlock` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
/// Storage: FastUnstake ErasToCheckPerBlock (r:0 w:1)
/// Proof: FastUnstake ErasToCheckPerBlock (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
fn control() -> Weight {
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `0`
// Minimum execution time: 2_386_000 picoseconds.
Weight::from_parts(2_508_000, 0)
// Minimum execution time: 2_677_000 picoseconds.
Weight::from_parts(2_849_000, 0)
.saturating_add(T::DbWeight::get().writes(1_u64))
}
}
// For backwards compatibility and tests.
// For backwards compatibility and tests
impl WeightInfo for () {
/// Storage: `FastUnstake::ErasToCheckPerBlock` (r:1 w:0)
/// Proof: `FastUnstake::ErasToCheckPerBlock` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
/// Storage: `Staking::ValidatorCount` (r:1 w:0)
/// Proof: `Staking::ValidatorCount` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
/// Storage: `FastUnstake::Head` (r:1 w:1)
/// Proof: `FastUnstake::Head` (`max_values`: Some(1), `max_size`: Some(5768), added: 6263, mode: `MaxEncodedLen`)
/// Storage: `FastUnstake::CounterForQueue` (r:1 w:0)
/// Proof: `FastUnstake::CounterForQueue` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
/// Storage: `ElectionProviderMultiPhase::CurrentPhase` (r:1 w:0)
/// Proof: `ElectionProviderMultiPhase::CurrentPhase` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// Storage: `Staking::CurrentEra` (r:1 w:0)
/// Proof: `Staking::CurrentEra` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
/// Storage: `Staking::SlashingSpans` (r:64 w:0)
/// Proof: `Staking::SlashingSpans` (`max_values`: None, `max_size`: None, mode: `Measured`)
/// Storage: `Staking::Bonded` (r:64 w:64)
/// Proof: `Staking::Bonded` (`max_values`: None, `max_size`: Some(72), added: 2547, mode: `MaxEncodedLen`)
/// Storage: `Staking::Ledger` (r:64 w:64)
/// Proof: `Staking::Ledger` (`max_values`: None, `max_size`: Some(1091), added: 3566, mode: `MaxEncodedLen`)
/// Storage: `Balances::Locks` (r:64 w:64)
/// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1299), added: 3774, mode: `MaxEncodedLen`)
/// Storage: `Balances::Freezes` (r:64 w:0)
/// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(67), added: 2542, mode: `MaxEncodedLen`)
/// Storage: `System::Account` (r:64 w:64)
/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
/// Storage: `Staking::Validators` (r:64 w:0)
/// Proof: `Staking::Validators` (`max_values`: None, `max_size`: Some(45), added: 2520, mode: `MaxEncodedLen`)
/// Storage: `Staking::Nominators` (r:64 w:0)
/// Proof: `Staking::Nominators` (`max_values`: None, `max_size`: Some(558), added: 3033, mode: `MaxEncodedLen`)
/// Storage: `Staking::Payee` (r:0 w:64)
/// Proof: `Staking::Payee` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`)
/// Storage: FastUnstake ErasToCheckPerBlock (r:1 w:0)
/// Proof: FastUnstake ErasToCheckPerBlock (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
/// Storage: Staking ValidatorCount (r:1 w:0)
/// Proof: Staking ValidatorCount (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
/// Storage: FastUnstake Head (r:1 w:1)
/// Proof: FastUnstake Head (max_values: Some(1), max_size: Some(5768), added: 6263, mode: MaxEncodedLen)
/// Storage: FastUnstake CounterForQueue (r:1 w:0)
/// Proof: FastUnstake CounterForQueue (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
/// Storage: ElectionProviderMultiPhase CurrentPhase (r:1 w:0)
/// Proof Skipped: ElectionProviderMultiPhase CurrentPhase (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: Staking CurrentEra (r:1 w:0)
/// Proof: Staking CurrentEra (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
/// Storage: Staking SlashingSpans (r:64 w:0)
/// Proof Skipped: Staking SlashingSpans (max_values: None, max_size: None, mode: Measured)
/// Storage: Staking Bonded (r:64 w:64)
/// Proof: Staking Bonded (max_values: None, max_size: Some(72), added: 2547, mode: MaxEncodedLen)
/// Storage: Staking Validators (r:64 w:0)
/// Proof: Staking Validators (max_values: None, max_size: Some(45), added: 2520, mode: MaxEncodedLen)
/// Storage: Staking Nominators (r:64 w:0)
/// Proof: Staking Nominators (max_values: None, max_size: Some(558), added: 3033, mode: MaxEncodedLen)
/// Storage: System Account (r:64 w:64)
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
/// Storage: Balances Locks (r:64 w:64)
/// Proof: Balances Locks (max_values: None, max_size: Some(1299), added: 3774, mode: MaxEncodedLen)
/// Storage: Balances Freezes (r:64 w:0)
/// Proof: Balances Freezes (max_values: None, max_size: Some(49), added: 2524, mode: MaxEncodedLen)
/// Storage: Staking Ledger (r:0 w:64)
/// Proof: Staking Ledger (max_values: None, max_size: Some(1091), added: 3566, mode: MaxEncodedLen)
/// Storage: Staking Payee (r:0 w:64)
/// Proof: Staking Payee (max_values: None, max_size: Some(73), added: 2548, mode: MaxEncodedLen)
/// The range of component `b` is `[1, 64]`.
fn on_idle_unstake(b: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `1475 + b * (452 ±0)`
// Measured: `1378 + b * (343 ±0)`
// Estimated: `7253 + b * (3774 ±0)`
// Minimum execution time: 89_005_000 picoseconds.
Weight::from_parts(50_257_055, 7253)
// Standard Error: 68_836
.saturating_add(Weight::from_parts(57_329_950, 0).saturating_mul(b.into()))
// Minimum execution time: 92_847_000 picoseconds.
Weight::from_parts(42_300_813, 7253)
// Standard Error: 40_514
.saturating_add(Weight::from_parts(58_412_402, 0).saturating_mul(b.into()))
.saturating_add(RocksDbWeight::get().reads(6_u64))
.saturating_add(RocksDbWeight::get().reads((8_u64).saturating_mul(b.into())))
.saturating_add(RocksDbWeight::get().reads((7_u64).saturating_mul(b.into())))
.saturating_add(RocksDbWeight::get().writes(1_u64))
.saturating_add(RocksDbWeight::get().writes((5_u64).saturating_mul(b.into())))
.saturating_add(Weight::from_parts(0, 3774).saturating_mul(b.into()))
}
/// Storage: `FastUnstake::ErasToCheckPerBlock` (r:1 w:0)
/// Proof: `FastUnstake::ErasToCheckPerBlock` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
/// Storage: `Staking::ValidatorCount` (r:1 w:0)
/// Proof: `Staking::ValidatorCount` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
/// Storage: `FastUnstake::Head` (r:1 w:1)
/// Proof: `FastUnstake::Head` (`max_values`: Some(1), `max_size`: Some(5768), added: 6263, mode: `MaxEncodedLen`)
/// Storage: `FastUnstake::CounterForQueue` (r:1 w:0)
/// Proof: `FastUnstake::CounterForQueue` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
/// Storage: `ElectionProviderMultiPhase::CurrentPhase` (r:1 w:0)
/// Proof: `ElectionProviderMultiPhase::CurrentPhase` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// Storage: `Staking::CurrentEra` (r:1 w:0)
/// Proof: `Staking::CurrentEra` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
/// Storage: `Staking::ErasStakers` (r:1 w:0)
/// Proof: `Staking::ErasStakers` (`max_values`: None, `max_size`: None, mode: `Measured`)
/// Storage: `Staking::ErasStakersPaged` (r:257 w:0)
/// Proof: `Staking::ErasStakersPaged` (`max_values`: None, `max_size`: None, mode: `Measured`)
/// Storage: FastUnstake ErasToCheckPerBlock (r:1 w:0)
/// Proof: FastUnstake ErasToCheckPerBlock (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
/// Storage: Staking ValidatorCount (r:1 w:0)
/// Proof: Staking ValidatorCount (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
/// Storage: FastUnstake Head (r:1 w:1)
/// Proof: FastUnstake Head (max_values: Some(1), max_size: Some(5768), added: 6263, mode: MaxEncodedLen)
/// Storage: FastUnstake CounterForQueue (r:1 w:0)
/// Proof: FastUnstake CounterForQueue (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
/// Storage: ElectionProviderMultiPhase CurrentPhase (r:1 w:0)
/// Proof Skipped: ElectionProviderMultiPhase CurrentPhase (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: Staking CurrentEra (r:1 w:0)
/// Proof: Staking CurrentEra (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
/// Storage: Staking ErasStakers (r:257 w:0)
/// Proof Skipped: Staking ErasStakers (max_values: None, max_size: None, mode: Measured)
/// The range of component `v` is `[1, 256]`.
/// The range of component `b` is `[1, 64]`.
fn on_idle_check(v: u32, b: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `1879 + b * (55 ±0) + v * (10055 ±0)`
// Estimated: `7253 + b * (56 ±0) + v * (12531 ±0)`
// Minimum execution time: 1_737_131_000 picoseconds.
Weight::from_parts(1_746_770_000, 7253)
// Standard Error: 13_401_143
.saturating_add(Weight::from_parts(426_946_450, 0).saturating_mul(v.into()))
// Standard Error: 53_619_501
.saturating_add(Weight::from_parts(1_664_681_508, 0).saturating_mul(b.into()))
.saturating_add(RocksDbWeight::get().reads(8_u64))
// Measured: `1546 + b * (48 ±0) + v * (10037 ±0)`
// Estimated: `7253 + b * (49 ±0) + v * (12513 ±0)`
// Minimum execution time: 1_685_784_000 picoseconds.
Weight::from_parts(1_693_370_000, 7253)
// Standard Error: 13_295_842
.saturating_add(Weight::from_parts(425_349_148, 0).saturating_mul(v.into()))
// Standard Error: 53_198_180
.saturating_add(Weight::from_parts(1_673_328_444, 0).saturating_mul(b.into()))
.saturating_add(RocksDbWeight::get().reads(7_u64))
.saturating_add(RocksDbWeight::get().reads((1_u64).saturating_mul(v.into())))
.saturating_add(RocksDbWeight::get().writes(1_u64))
.saturating_add(Weight::from_parts(0, 56).saturating_mul(b.into()))
.saturating_add(Weight::from_parts(0, 12531).saturating_mul(v.into()))
.saturating_add(Weight::from_parts(0, 49).saturating_mul(b.into()))
.saturating_add(Weight::from_parts(0, 12513).saturating_mul(v.into()))
}
/// Storage: `FastUnstake::ErasToCheckPerBlock` (r:1 w:0)
/// Proof: `FastUnstake::ErasToCheckPerBlock` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
/// Storage: `Staking::Ledger` (r:1 w:1)
/// Proof: `Staking::Ledger` (`max_values`: None, `max_size`: Some(1091), added: 3566, mode: `MaxEncodedLen`)
/// Storage: `FastUnstake::Queue` (r:1 w:1)
/// Proof: `FastUnstake::Queue` (`max_values`: None, `max_size`: Some(56), added: 2531, mode: `MaxEncodedLen`)
/// Storage: `FastUnstake::Head` (r:1 w:0)
/// Proof: `FastUnstake::Head` (`max_values`: Some(1), `max_size`: Some(5768), added: 6263, mode: `MaxEncodedLen`)
/// Storage: `Staking::Bonded` (r:1 w:0)
/// Proof: `Staking::Bonded` (`max_values`: None, `max_size`: Some(72), added: 2547, mode: `MaxEncodedLen`)
/// Storage: `Staking::Validators` (r:1 w:0)
/// Proof: `Staking::Validators` (`max_values`: None, `max_size`: Some(45), added: 2520, mode: `MaxEncodedLen`)
/// Storage: `Staking::Nominators` (r:1 w:1)
/// Proof: `Staking::Nominators` (`max_values`: None, `max_size`: Some(558), added: 3033, mode: `MaxEncodedLen`)
/// Storage: `Staking::CounterForNominators` (r:1 w:1)
/// Proof: `Staking::CounterForNominators` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
/// Storage: `VoterList::ListNodes` (r:1 w:1)
/// Proof: `VoterList::ListNodes` (`max_values`: None, `max_size`: Some(154), added: 2629, mode: `MaxEncodedLen`)
/// Storage: `VoterList::ListBags` (r:1 w:1)
/// Proof: `VoterList::ListBags` (`max_values`: None, `max_size`: Some(82), added: 2557, mode: `MaxEncodedLen`)
/// Storage: `VoterList::CounterForListNodes` (r:1 w:1)
/// Proof: `VoterList::CounterForListNodes` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
/// Storage: `Staking::CurrentEra` (r:1 w:0)
/// Proof: `Staking::CurrentEra` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
/// Storage: `Balances::Locks` (r:1 w:1)
/// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1299), added: 3774, mode: `MaxEncodedLen`)
/// Storage: `Balances::Freezes` (r:1 w:0)
/// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(67), added: 2542, mode: `MaxEncodedLen`)
/// Storage: `FastUnstake::CounterForQueue` (r:1 w:1)
/// Proof: `FastUnstake::CounterForQueue` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
/// Storage: FastUnstake ErasToCheckPerBlock (r:1 w:0)
/// Proof: FastUnstake ErasToCheckPerBlock (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
/// Storage: Staking Ledger (r:1 w:1)
/// Proof: Staking Ledger (max_values: None, max_size: Some(1091), added: 3566, mode: MaxEncodedLen)
/// Storage: FastUnstake Queue (r:1 w:1)
/// Proof: FastUnstake Queue (max_values: None, max_size: Some(56), added: 2531, mode: MaxEncodedLen)
/// Storage: FastUnstake Head (r:1 w:0)
/// Proof: FastUnstake Head (max_values: Some(1), max_size: Some(5768), added: 6263, mode: MaxEncodedLen)
/// Storage: Staking Bonded (r:1 w:0)
/// Proof: Staking Bonded (max_values: None, max_size: Some(72), added: 2547, mode: MaxEncodedLen)
/// Storage: Staking Validators (r:1 w:0)
/// Proof: Staking Validators (max_values: None, max_size: Some(45), added: 2520, mode: MaxEncodedLen)
/// Storage: Staking Nominators (r:1 w:1)
/// Proof: Staking Nominators (max_values: None, max_size: Some(558), added: 3033, mode: MaxEncodedLen)
/// Storage: Staking CounterForNominators (r:1 w:1)
/// Proof: Staking CounterForNominators (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
/// Storage: VoterList ListNodes (r:1 w:1)
/// Proof: VoterList ListNodes (max_values: None, max_size: Some(154), added: 2629, mode: MaxEncodedLen)
/// Storage: VoterList ListBags (r:1 w:1)
/// Proof: VoterList ListBags (max_values: None, max_size: Some(82), added: 2557, mode: MaxEncodedLen)
/// Storage: VoterList CounterForListNodes (r:1 w:1)
/// Proof: VoterList CounterForListNodes (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
/// Storage: Staking CurrentEra (r:1 w:0)
/// Proof: Staking CurrentEra (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
/// Storage: Balances Locks (r:1 w:1)
/// Proof: Balances Locks (max_values: None, max_size: Some(1299), added: 3774, mode: MaxEncodedLen)
/// Storage: Balances Freezes (r:1 w:0)
/// Proof: Balances Freezes (max_values: None, max_size: Some(49), added: 2524, mode: MaxEncodedLen)
/// Storage: FastUnstake CounterForQueue (r:1 w:1)
/// Proof: FastUnstake CounterForQueue (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
fn register_fast_unstake() -> Weight {
// Proof Size summary in bytes:
// Measured: `1955`
// Measured: `1964`
// Estimated: `7253`
// Minimum execution time: 112_632_000 picoseconds.
Weight::from_parts(117_267_000, 7253)
// Minimum execution time: 125_512_000 picoseconds.
Weight::from_parts(129_562_000, 7253)
.saturating_add(RocksDbWeight::get().reads(15_u64))
.saturating_add(RocksDbWeight::get().writes(9_u64))
}
/// Storage: `FastUnstake::ErasToCheckPerBlock` (r:1 w:0)
/// Proof: `FastUnstake::ErasToCheckPerBlock` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
/// Storage: `Staking::Ledger` (r:1 w:0)
/// Proof: `Staking::Ledger` (`max_values`: None, `max_size`: Some(1091), added: 3566, mode: `MaxEncodedLen`)
/// Storage: `FastUnstake::Queue` (r:1 w:1)
/// Proof: `FastUnstake::Queue` (`max_values`: None, `max_size`: Some(56), added: 2531, mode: `MaxEncodedLen`)
/// Storage: `FastUnstake::Head` (r:1 w:0)
/// Proof: `FastUnstake::Head` (`max_values`: Some(1), `max_size`: Some(5768), added: 6263, mode: `MaxEncodedLen`)
/// Storage: `FastUnstake::CounterForQueue` (r:1 w:1)
/// Proof: `FastUnstake::CounterForQueue` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
/// Storage: FastUnstake ErasToCheckPerBlock (r:1 w:0)
/// Proof: FastUnstake ErasToCheckPerBlock (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
/// Storage: Staking Ledger (r:1 w:0)
/// Proof: Staking Ledger (max_values: None, max_size: Some(1091), added: 3566, mode: MaxEncodedLen)
/// Storage: FastUnstake Queue (r:1 w:1)
/// Proof: FastUnstake Queue (max_values: None, max_size: Some(56), added: 2531, mode: MaxEncodedLen)
/// Storage: FastUnstake Head (r:1 w:0)
/// Proof: FastUnstake Head (max_values: Some(1), max_size: Some(5768), added: 6263, mode: MaxEncodedLen)
/// Storage: FastUnstake CounterForQueue (r:1 w:1)
/// Proof: FastUnstake CounterForQueue (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
fn deregister() -> Weight {
// Proof Size summary in bytes:
// Measured: `1251`
// Measured: `1223`
// Estimated: `7253`
// Minimum execution time: 39_253_000 picoseconds.
Weight::from_parts(40_053_000, 7253)
// Minimum execution time: 43_943_000 picoseconds.
Weight::from_parts(45_842_000, 7253)
.saturating_add(RocksDbWeight::get().reads(5_u64))
.saturating_add(RocksDbWeight::get().writes(2_u64))
}
/// Storage: `FastUnstake::ErasToCheckPerBlock` (r:0 w:1)
/// Proof: `FastUnstake::ErasToCheckPerBlock` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
/// Storage: FastUnstake ErasToCheckPerBlock (r:0 w:1)
/// Proof: FastUnstake ErasToCheckPerBlock (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
fn control() -> Weight {
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `0`
// Minimum execution time: 2_386_000 picoseconds.
Weight::from_parts(2_508_000, 0)
// Minimum execution time: 2_677_000 picoseconds.
Weight::from_parts(2_849_000, 0)
.saturating_add(RocksDbWeight::get().writes(1_u64))
}
}
+125 -124
View File
@@ -15,16 +15,16 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//! Autogenerated weights for `pallet_glutton`
//! Autogenerated weights for pallet_glutton
//!
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0
//! DATE: 2024-03-01, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
//! DATE: 2023-06-16, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! WORST CASE MAP SIZE: `1000000`
//! HOSTNAME: `runner-bn-ce5rx-project-674-concurrent-0`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz`
//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("dev")`, DB CACHE: `1024`
//! HOSTNAME: `runner-e8ezs4ez-project-145-concurrent-0`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz`
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024
// Executed Command:
// ./target/production/substrate-node
// ./target/production/substrate
// benchmark
// pallet
// --chain=dev
@@ -35,11 +35,12 @@
// --no-median-slopes
// --no-min-squares
// --extrinsic=*
// --execution=wasm
// --wasm-execution=compiled
// --heap-pages=4096
// --output=./substrate/frame/glutton/src/weights.rs
// --header=./substrate/HEADER-APACHE2
// --template=./substrate/.maintain/frame-weight-template.hbs
// --output=./frame/glutton/src/weights.rs
// --header=./HEADER-APACHE2
// --template=./.maintain/frame-weight-template.hbs
#![cfg_attr(rustfmt, rustfmt_skip)]
#![allow(unused_parens)]
@@ -49,7 +50,7 @@
use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}};
use core::marker::PhantomData;
/// Weight functions needed for `pallet_glutton`.
/// Weight functions needed for pallet_glutton.
pub trait WeightInfo {
fn initialize_pallet_grow(n: u32, ) -> Weight;
fn initialize_pallet_shrink(n: u32, ) -> Weight;
@@ -62,39 +63,39 @@ pub trait WeightInfo {
fn set_storage() -> Weight;
}
/// Weights for `pallet_glutton` using the Substrate node and recommended hardware.
/// Weights for pallet_glutton using the Substrate node and recommended hardware.
pub struct SubstrateWeight<T>(PhantomData<T>);
impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
/// Storage: `Glutton::TrashDataCount` (r:1 w:1)
/// Proof: `Glutton::TrashDataCount` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
/// Storage: `Glutton::TrashData` (r:0 w:1000)
/// Proof: `Glutton::TrashData` (`max_values`: Some(65000), `max_size`: Some(1036), added: 3016, mode: `MaxEncodedLen`)
/// Storage: Glutton TrashDataCount (r:1 w:1)
/// Proof: Glutton TrashDataCount (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
/// Storage: Glutton TrashData (r:0 w:1000)
/// Proof: Glutton TrashData (max_values: Some(65000), max_size: Some(1036), added: 3016, mode: MaxEncodedLen)
/// The range of component `n` is `[0, 1000]`.
fn initialize_pallet_grow(n: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `86`
// Estimated: `1489`
// Minimum execution time: 8_443_000 picoseconds.
Weight::from_parts(103_698_651, 1489)
// Standard Error: 21_777
.saturating_add(Weight::from_parts(9_529_476, 0).saturating_mul(n.into()))
// Minimum execution time: 11_488_000 picoseconds.
Weight::from_parts(93_073_710, 1489)
// Standard Error: 22_390
.saturating_add(Weight::from_parts(9_572_012, 0).saturating_mul(n.into()))
.saturating_add(T::DbWeight::get().reads(1_u64))
.saturating_add(T::DbWeight::get().writes(1_u64))
.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(n.into())))
}
/// Storage: `Glutton::TrashDataCount` (r:1 w:1)
/// Proof: `Glutton::TrashDataCount` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
/// Storage: `Glutton::TrashData` (r:0 w:1000)
/// Proof: `Glutton::TrashData` (`max_values`: Some(65000), `max_size`: Some(1036), added: 3016, mode: `MaxEncodedLen`)
/// Storage: Glutton TrashDataCount (r:1 w:1)
/// Proof: Glutton TrashDataCount (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
/// Storage: Glutton TrashData (r:0 w:1000)
/// Proof: Glutton TrashData (max_values: Some(65000), max_size: Some(1036), added: 3016, mode: MaxEncodedLen)
/// The range of component `n` is `[0, 1000]`.
fn initialize_pallet_shrink(n: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `119`
// Estimated: `1489`
// Minimum execution time: 8_343_000 picoseconds.
Weight::from_parts(304_498, 1489)
// Standard Error: 1_568
.saturating_add(Weight::from_parts(1_146_553, 0).saturating_mul(n.into()))
// Minimum execution time: 11_378_000 picoseconds.
Weight::from_parts(5_591_508, 1489)
// Standard Error: 1_592
.saturating_add(Weight::from_parts(1_163_758, 0).saturating_mul(n.into()))
.saturating_add(T::DbWeight::get().reads(1_u64))
.saturating_add(T::DbWeight::get().writes(1_u64))
.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(n.into())))
@@ -104,119 +105,119 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `0`
// Minimum execution time: 656_000 picoseconds.
Weight::from_parts(1_875_128, 0)
// Standard Error: 8
.saturating_add(Weight::from_parts(103_381, 0).saturating_mul(i.into()))
// Minimum execution time: 669_000 picoseconds.
Weight::from_parts(990_745, 0)
// Standard Error: 10
.saturating_add(Weight::from_parts(105_224, 0).saturating_mul(i.into()))
}
/// Storage: `Glutton::TrashData` (r:5000 w:0)
/// Proof: `Glutton::TrashData` (`max_values`: Some(65000), `max_size`: Some(1036), added: 3016, mode: `MaxEncodedLen`)
/// Storage: Glutton TrashData (r:5000 w:0)
/// Proof: Glutton TrashData (max_values: Some(65000), max_size: Some(1036), added: 3016, mode: MaxEncodedLen)
/// The range of component `i` is `[0, 5000]`.
fn waste_proof_size_some(i: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `119114 + i * (1022 ±0)`
// Estimated: `990 + i * (3016 ±0)`
// Minimum execution time: 454_000 picoseconds.
Weight::from_parts(521_000, 990)
// Standard Error: 1_940
.saturating_add(Weight::from_parts(5_729_831, 0).saturating_mul(i.into()))
// Minimum execution time: 435_000 picoseconds.
Weight::from_parts(66_547_542, 990)
// Standard Error: 4_557
.saturating_add(Weight::from_parts(5_851_324, 0).saturating_mul(i.into()))
.saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(i.into())))
.saturating_add(Weight::from_parts(0, 3016).saturating_mul(i.into()))
}
/// Storage: `Glutton::Storage` (r:1 w:0)
/// Proof: `Glutton::Storage` (`max_values`: Some(1), `max_size`: Some(8), added: 503, mode: `MaxEncodedLen`)
/// Storage: `Glutton::Compute` (r:1 w:0)
/// Proof: `Glutton::Compute` (`max_values`: Some(1), `max_size`: Some(8), added: 503, mode: `MaxEncodedLen`)
/// Storage: `Glutton::TrashData` (r:1737 w:0)
/// Proof: `Glutton::TrashData` (`max_values`: Some(65000), `max_size`: Some(1036), added: 3016, mode: `MaxEncodedLen`)
/// Storage: Glutton Storage (r:1 w:0)
/// Proof: Glutton Storage (max_values: Some(1), max_size: Some(8), added: 503, mode: MaxEncodedLen)
/// Storage: Glutton Compute (r:1 w:0)
/// Proof: Glutton Compute (max_values: Some(1), max_size: Some(8), added: 503, mode: MaxEncodedLen)
/// Storage: Glutton TrashData (r:1737 w:0)
/// Proof: Glutton TrashData (max_values: Some(65000), max_size: Some(1036), added: 3016, mode: MaxEncodedLen)
fn on_idle_high_proof_waste() -> Weight {
// Proof Size summary in bytes:
// Measured: `1900497`
// Estimated: `5239782`
// Minimum execution time: 55_403_909_000 picoseconds.
Weight::from_parts(55_472_412_000, 5239782)
// Minimum execution time: 67_699_845_000 picoseconds.
Weight::from_parts(67_893_204_000, 5239782)
.saturating_add(T::DbWeight::get().reads(1739_u64))
}
/// Storage: `Glutton::Storage` (r:1 w:0)
/// Proof: `Glutton::Storage` (`max_values`: Some(1), `max_size`: Some(8), added: 503, mode: `MaxEncodedLen`)
/// Storage: `Glutton::Compute` (r:1 w:0)
/// Proof: `Glutton::Compute` (`max_values`: Some(1), `max_size`: Some(8), added: 503, mode: `MaxEncodedLen`)
/// Storage: `Glutton::TrashData` (r:5 w:0)
/// Proof: `Glutton::TrashData` (`max_values`: Some(65000), `max_size`: Some(1036), added: 3016, mode: `MaxEncodedLen`)
/// Storage: Glutton Storage (r:1 w:0)
/// Proof: Glutton Storage (max_values: Some(1), max_size: Some(8), added: 503, mode: MaxEncodedLen)
/// Storage: Glutton Compute (r:1 w:0)
/// Proof: Glutton Compute (max_values: Some(1), max_size: Some(8), added: 503, mode: MaxEncodedLen)
/// Storage: Glutton TrashData (r:5 w:0)
/// Proof: Glutton TrashData (max_values: Some(65000), max_size: Some(1036), added: 3016, mode: MaxEncodedLen)
fn on_idle_low_proof_waste() -> Weight {
// Proof Size summary in bytes:
// Measured: `9547`
// Estimated: `16070`
// Minimum execution time: 97_959_007_000 picoseconds.
Weight::from_parts(98_030_476_000, 16070)
// Minimum execution time: 122_297_527_000 picoseconds.
Weight::from_parts(122_394_818_000, 16070)
.saturating_add(T::DbWeight::get().reads(7_u64))
}
/// Storage: `Glutton::Storage` (r:1 w:0)
/// Proof: `Glutton::Storage` (`max_values`: Some(1), `max_size`: Some(8), added: 503, mode: `MaxEncodedLen`)
/// Storage: `Glutton::Compute` (r:1 w:0)
/// Proof: `Glutton::Compute` (`max_values`: Some(1), `max_size`: Some(8), added: 503, mode: `MaxEncodedLen`)
/// Storage: Glutton Storage (r:1 w:0)
/// Proof: Glutton Storage (max_values: Some(1), max_size: Some(8), added: 503, mode: MaxEncodedLen)
/// Storage: Glutton Compute (r:1 w:0)
/// Proof: Glutton Compute (max_values: Some(1), max_size: Some(8), added: 503, mode: MaxEncodedLen)
fn empty_on_idle() -> Weight {
// Proof Size summary in bytes:
// Measured: `86`
// Estimated: `1493`
// Minimum execution time: 5_011_000 picoseconds.
Weight::from_parts(5_183_000, 1493)
// Minimum execution time: 5_882_000 picoseconds.
Weight::from_parts(6_138_000, 1493)
.saturating_add(T::DbWeight::get().reads(2_u64))
}
/// Storage: `Glutton::Compute` (r:0 w:1)
/// Proof: `Glutton::Compute` (`max_values`: Some(1), `max_size`: Some(8), added: 503, mode: `MaxEncodedLen`)
/// Storage: Glutton Compute (r:0 w:1)
/// Proof: Glutton Compute (max_values: Some(1), max_size: Some(8), added: 503, mode: MaxEncodedLen)
fn set_compute() -> Weight {
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `0`
// Minimum execution time: 5_591_000 picoseconds.
Weight::from_parts(5_970_000, 0)
// Minimum execution time: 7_830_000 picoseconds.
Weight::from_parts(8_366_000, 0)
.saturating_add(T::DbWeight::get().writes(1_u64))
}
/// Storage: `Glutton::Storage` (r:0 w:1)
/// Proof: `Glutton::Storage` (`max_values`: Some(1), `max_size`: Some(8), added: 503, mode: `MaxEncodedLen`)
/// Storage: Glutton Storage (r:0 w:1)
/// Proof: Glutton Storage (max_values: Some(1), max_size: Some(8), added: 503, mode: MaxEncodedLen)
fn set_storage() -> Weight {
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `0`
// Minimum execution time: 5_689_000 picoseconds.
Weight::from_parts(6_038_000, 0)
// Minimum execution time: 7_933_000 picoseconds.
Weight::from_parts(8_213_000, 0)
.saturating_add(T::DbWeight::get().writes(1_u64))
}
}
// For backwards compatibility and tests.
// For backwards compatibility and tests
impl WeightInfo for () {
/// Storage: `Glutton::TrashDataCount` (r:1 w:1)
/// Proof: `Glutton::TrashDataCount` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
/// Storage: `Glutton::TrashData` (r:0 w:1000)
/// Proof: `Glutton::TrashData` (`max_values`: Some(65000), `max_size`: Some(1036), added: 3016, mode: `MaxEncodedLen`)
/// Storage: Glutton TrashDataCount (r:1 w:1)
/// Proof: Glutton TrashDataCount (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
/// Storage: Glutton TrashData (r:0 w:1000)
/// Proof: Glutton TrashData (max_values: Some(65000), max_size: Some(1036), added: 3016, mode: MaxEncodedLen)
/// The range of component `n` is `[0, 1000]`.
fn initialize_pallet_grow(n: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `86`
// Estimated: `1489`
// Minimum execution time: 8_443_000 picoseconds.
Weight::from_parts(103_698_651, 1489)
// Standard Error: 21_777
.saturating_add(Weight::from_parts(9_529_476, 0).saturating_mul(n.into()))
// Minimum execution time: 11_488_000 picoseconds.
Weight::from_parts(93_073_710, 1489)
// Standard Error: 22_390
.saturating_add(Weight::from_parts(9_572_012, 0).saturating_mul(n.into()))
.saturating_add(RocksDbWeight::get().reads(1_u64))
.saturating_add(RocksDbWeight::get().writes(1_u64))
.saturating_add(RocksDbWeight::get().writes((1_u64).saturating_mul(n.into())))
}
/// Storage: `Glutton::TrashDataCount` (r:1 w:1)
/// Proof: `Glutton::TrashDataCount` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
/// Storage: `Glutton::TrashData` (r:0 w:1000)
/// Proof: `Glutton::TrashData` (`max_values`: Some(65000), `max_size`: Some(1036), added: 3016, mode: `MaxEncodedLen`)
/// Storage: Glutton TrashDataCount (r:1 w:1)
/// Proof: Glutton TrashDataCount (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
/// Storage: Glutton TrashData (r:0 w:1000)
/// Proof: Glutton TrashData (max_values: Some(65000), max_size: Some(1036), added: 3016, mode: MaxEncodedLen)
/// The range of component `n` is `[0, 1000]`.
fn initialize_pallet_shrink(n: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `119`
// Estimated: `1489`
// Minimum execution time: 8_343_000 picoseconds.
Weight::from_parts(304_498, 1489)
// Standard Error: 1_568
.saturating_add(Weight::from_parts(1_146_553, 0).saturating_mul(n.into()))
// Minimum execution time: 11_378_000 picoseconds.
Weight::from_parts(5_591_508, 1489)
// Standard Error: 1_592
.saturating_add(Weight::from_parts(1_163_758, 0).saturating_mul(n.into()))
.saturating_add(RocksDbWeight::get().reads(1_u64))
.saturating_add(RocksDbWeight::get().writes(1_u64))
.saturating_add(RocksDbWeight::get().writes((1_u64).saturating_mul(n.into())))
@@ -226,83 +227,83 @@ impl WeightInfo for () {
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `0`
// Minimum execution time: 656_000 picoseconds.
Weight::from_parts(1_875_128, 0)
// Standard Error: 8
.saturating_add(Weight::from_parts(103_381, 0).saturating_mul(i.into()))
// Minimum execution time: 669_000 picoseconds.
Weight::from_parts(990_745, 0)
// Standard Error: 10
.saturating_add(Weight::from_parts(105_224, 0).saturating_mul(i.into()))
}
/// Storage: `Glutton::TrashData` (r:5000 w:0)
/// Proof: `Glutton::TrashData` (`max_values`: Some(65000), `max_size`: Some(1036), added: 3016, mode: `MaxEncodedLen`)
/// Storage: Glutton TrashData (r:5000 w:0)
/// Proof: Glutton TrashData (max_values: Some(65000), max_size: Some(1036), added: 3016, mode: MaxEncodedLen)
/// The range of component `i` is `[0, 5000]`.
fn waste_proof_size_some(i: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `119114 + i * (1022 ±0)`
// Estimated: `990 + i * (3016 ±0)`
// Minimum execution time: 454_000 picoseconds.
Weight::from_parts(521_000, 990)
// Standard Error: 1_940
.saturating_add(Weight::from_parts(5_729_831, 0).saturating_mul(i.into()))
// Minimum execution time: 435_000 picoseconds.
Weight::from_parts(66_547_542, 990)
// Standard Error: 4_557
.saturating_add(Weight::from_parts(5_851_324, 0).saturating_mul(i.into()))
.saturating_add(RocksDbWeight::get().reads((1_u64).saturating_mul(i.into())))
.saturating_add(Weight::from_parts(0, 3016).saturating_mul(i.into()))
}
/// Storage: `Glutton::Storage` (r:1 w:0)
/// Proof: `Glutton::Storage` (`max_values`: Some(1), `max_size`: Some(8), added: 503, mode: `MaxEncodedLen`)
/// Storage: `Glutton::Compute` (r:1 w:0)
/// Proof: `Glutton::Compute` (`max_values`: Some(1), `max_size`: Some(8), added: 503, mode: `MaxEncodedLen`)
/// Storage: `Glutton::TrashData` (r:1737 w:0)
/// Proof: `Glutton::TrashData` (`max_values`: Some(65000), `max_size`: Some(1036), added: 3016, mode: `MaxEncodedLen`)
/// Storage: Glutton Storage (r:1 w:0)
/// Proof: Glutton Storage (max_values: Some(1), max_size: Some(8), added: 503, mode: MaxEncodedLen)
/// Storage: Glutton Compute (r:1 w:0)
/// Proof: Glutton Compute (max_values: Some(1), max_size: Some(8), added: 503, mode: MaxEncodedLen)
/// Storage: Glutton TrashData (r:1737 w:0)
/// Proof: Glutton TrashData (max_values: Some(65000), max_size: Some(1036), added: 3016, mode: MaxEncodedLen)
fn on_idle_high_proof_waste() -> Weight {
// Proof Size summary in bytes:
// Measured: `1900497`
// Estimated: `5239782`
// Minimum execution time: 55_403_909_000 picoseconds.
Weight::from_parts(55_472_412_000, 5239782)
// Minimum execution time: 67_699_845_000 picoseconds.
Weight::from_parts(67_893_204_000, 5239782)
.saturating_add(RocksDbWeight::get().reads(1739_u64))
}
/// Storage: `Glutton::Storage` (r:1 w:0)
/// Proof: `Glutton::Storage` (`max_values`: Some(1), `max_size`: Some(8), added: 503, mode: `MaxEncodedLen`)
/// Storage: `Glutton::Compute` (r:1 w:0)
/// Proof: `Glutton::Compute` (`max_values`: Some(1), `max_size`: Some(8), added: 503, mode: `MaxEncodedLen`)
/// Storage: `Glutton::TrashData` (r:5 w:0)
/// Proof: `Glutton::TrashData` (`max_values`: Some(65000), `max_size`: Some(1036), added: 3016, mode: `MaxEncodedLen`)
/// Storage: Glutton Storage (r:1 w:0)
/// Proof: Glutton Storage (max_values: Some(1), max_size: Some(8), added: 503, mode: MaxEncodedLen)
/// Storage: Glutton Compute (r:1 w:0)
/// Proof: Glutton Compute (max_values: Some(1), max_size: Some(8), added: 503, mode: MaxEncodedLen)
/// Storage: Glutton TrashData (r:5 w:0)
/// Proof: Glutton TrashData (max_values: Some(65000), max_size: Some(1036), added: 3016, mode: MaxEncodedLen)
fn on_idle_low_proof_waste() -> Weight {
// Proof Size summary in bytes:
// Measured: `9547`
// Estimated: `16070`
// Minimum execution time: 97_959_007_000 picoseconds.
Weight::from_parts(98_030_476_000, 16070)
// Minimum execution time: 122_297_527_000 picoseconds.
Weight::from_parts(122_394_818_000, 16070)
.saturating_add(RocksDbWeight::get().reads(7_u64))
}
/// Storage: `Glutton::Storage` (r:1 w:0)
/// Proof: `Glutton::Storage` (`max_values`: Some(1), `max_size`: Some(8), added: 503, mode: `MaxEncodedLen`)
/// Storage: `Glutton::Compute` (r:1 w:0)
/// Proof: `Glutton::Compute` (`max_values`: Some(1), `max_size`: Some(8), added: 503, mode: `MaxEncodedLen`)
/// Storage: Glutton Storage (r:1 w:0)
/// Proof: Glutton Storage (max_values: Some(1), max_size: Some(8), added: 503, mode: MaxEncodedLen)
/// Storage: Glutton Compute (r:1 w:0)
/// Proof: Glutton Compute (max_values: Some(1), max_size: Some(8), added: 503, mode: MaxEncodedLen)
fn empty_on_idle() -> Weight {
// Proof Size summary in bytes:
// Measured: `86`
// Estimated: `1493`
// Minimum execution time: 5_011_000 picoseconds.
Weight::from_parts(5_183_000, 1493)
// Minimum execution time: 5_882_000 picoseconds.
Weight::from_parts(6_138_000, 1493)
.saturating_add(RocksDbWeight::get().reads(2_u64))
}
/// Storage: `Glutton::Compute` (r:0 w:1)
/// Proof: `Glutton::Compute` (`max_values`: Some(1), `max_size`: Some(8), added: 503, mode: `MaxEncodedLen`)
/// Storage: Glutton Compute (r:0 w:1)
/// Proof: Glutton Compute (max_values: Some(1), max_size: Some(8), added: 503, mode: MaxEncodedLen)
fn set_compute() -> Weight {
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `0`
// Minimum execution time: 5_591_000 picoseconds.
Weight::from_parts(5_970_000, 0)
// Minimum execution time: 7_830_000 picoseconds.
Weight::from_parts(8_366_000, 0)
.saturating_add(RocksDbWeight::get().writes(1_u64))
}
/// Storage: `Glutton::Storage` (r:0 w:1)
/// Proof: `Glutton::Storage` (`max_values`: Some(1), `max_size`: Some(8), added: 503, mode: `MaxEncodedLen`)
/// Storage: Glutton Storage (r:0 w:1)
/// Proof: Glutton Storage (max_values: Some(1), max_size: Some(8), added: 503, mode: MaxEncodedLen)
fn set_storage() -> Weight {
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `0`
// Minimum execution time: 5_689_000 picoseconds.
Weight::from_parts(6_038_000, 0)
// Minimum execution time: 7_933_000 picoseconds.
Weight::from_parts(8_213_000, 0)
.saturating_add(RocksDbWeight::get().writes(1_u64))
}
}
+6 -3
View File
@@ -35,8 +35,11 @@ use sp_consensus_grandpa::{RoundNumber, SetId, GRANDPA_ENGINE_ID};
use sp_core::{crypto::KeyTypeId, H256};
use sp_keyring::Ed25519Keyring;
use sp_runtime::{
curve::PiecewiseLinear, generic::UncheckedExtrinsic, impl_opaque_keys,
testing::UintAuthorityId, traits::OpaqueKeys, BuildStorage, DigestItem, Perbill,
curve::PiecewiseLinear,
impl_opaque_keys,
testing::{TestXt, UintAuthorityId},
traits::OpaqueKeys,
BuildStorage, DigestItem, Perbill,
};
use sp_staking::{EraIndex, SessionIndex};
@@ -74,7 +77,7 @@ where
RuntimeCall: From<C>,
{
type OverarchingCall = RuntimeCall;
type Extrinsic = UncheckedExtrinsic<u64, RuntimeCall, (), ()>;
type Extrinsic = TestXt<RuntimeCall, ()>;
}
parameter_types! {
+417 -400
View File
File diff suppressed because it is too large Load Diff
+2 -2
View File
@@ -27,7 +27,7 @@ use frame_support::{
use pallet_session::historical as pallet_session_historical;
use sp_core::H256;
use sp_runtime::{
testing::UintAuthorityId,
testing::{TestXt, UintAuthorityId},
traits::{BlakeTwo256, ConvertInto, IdentityLookup},
BuildStorage, Permill,
};
@@ -78,7 +78,7 @@ impl pallet_session::historical::SessionManager<u64, u64> for TestSessionManager
}
/// An extrinsic type used for tests.
pub type Extrinsic = sp_runtime::generic::UncheckedExtrinsic<u64, RuntimeCall, (), ()>;
pub type Extrinsic = TestXt<RuntimeCall, ()>;
type IdentificationTuple = (u64, u64);
type Offence = crate::UnresponsivenessOffence<IdentificationTuple>;
+2 -2
View File
@@ -228,7 +228,7 @@ fn should_generate_heartbeats() {
// check stuff about the transaction.
let ex: Extrinsic = Decode::decode(&mut &*transaction).unwrap();
let heartbeat = match ex.function {
let heartbeat = match ex.call {
crate::mock::RuntimeCall::ImOnline(crate::Call::heartbeat { heartbeat, .. }) =>
heartbeat,
e => panic!("Unexpected call: {:?}", e),
@@ -342,7 +342,7 @@ fn should_not_send_a_report_if_already_online() {
assert_eq!(pool_state.read().transactions.len(), 0);
// check stuff about the transaction.
let ex: Extrinsic = Decode::decode(&mut &*transaction).unwrap();
let heartbeat = match ex.function {
let heartbeat = match ex.call {
crate::mock::RuntimeCall::ImOnline(crate::Call::heartbeat { heartbeat, .. }) =>
heartbeat,
e => panic!("Unexpected call: {:?}", e),
+43 -42
View File
@@ -15,16 +15,16 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//! Autogenerated weights for `pallet_im_online`
//! Autogenerated weights for pallet_im_online
//!
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0
//! DATE: 2024-03-01, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
//! DATE: 2023-06-16, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! WORST CASE MAP SIZE: `1000000`
//! HOSTNAME: `runner-bn-ce5rx-project-674-concurrent-0`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz`
//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("dev")`, DB CACHE: `1024`
//! HOSTNAME: `runner-e8ezs4ez-project-145-concurrent-0`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz`
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024
// Executed Command:
// ./target/production/substrate-node
// ./target/production/substrate
// benchmark
// pallet
// --chain=dev
@@ -35,11 +35,12 @@
// --no-median-slopes
// --no-min-squares
// --extrinsic=*
// --execution=wasm
// --wasm-execution=compiled
// --heap-pages=4096
// --output=./substrate/frame/im-online/src/weights.rs
// --header=./substrate/HEADER-APACHE2
// --template=./substrate/.maintain/frame-weight-template.hbs
// --output=./frame/im-online/src/weights.rs
// --header=./HEADER-APACHE2
// --template=./.maintain/frame-weight-template.hbs
#![cfg_attr(rustfmt, rustfmt_skip)]
#![allow(unused_parens)]
@@ -49,60 +50,60 @@
use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}};
use core::marker::PhantomData;
/// Weight functions needed for `pallet_im_online`.
/// Weight functions needed for pallet_im_online.
pub trait WeightInfo {
fn validate_unsigned_and_then_heartbeat(k: u32, ) -> Weight;
}
/// Weights for `pallet_im_online` using the Substrate node and recommended hardware.
/// Weights for pallet_im_online using the Substrate node and recommended hardware.
pub struct SubstrateWeight<T>(PhantomData<T>);
impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
/// Storage: `Session::Validators` (r:1 w:0)
/// Proof: `Session::Validators` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// Storage: `Session::CurrentIndex` (r:1 w:0)
/// Proof: `Session::CurrentIndex` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// Storage: `ImOnline::Keys` (r:1 w:0)
/// Proof: `ImOnline::Keys` (`max_values`: Some(1), `max_size`: Some(320002), added: 320497, mode: `MaxEncodedLen`)
/// Storage: `ImOnline::ReceivedHeartbeats` (r:1 w:1)
/// Proof: `ImOnline::ReceivedHeartbeats` (`max_values`: None, `max_size`: Some(25), added: 2500, mode: `MaxEncodedLen`)
/// Storage: `ImOnline::AuthoredBlocks` (r:1 w:0)
/// Proof: `ImOnline::AuthoredBlocks` (`max_values`: None, `max_size`: Some(56), added: 2531, mode: `MaxEncodedLen`)
/// Storage: Session Validators (r:1 w:0)
/// Proof Skipped: Session Validators (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: Session CurrentIndex (r:1 w:0)
/// Proof Skipped: Session CurrentIndex (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: ImOnline Keys (r:1 w:0)
/// Proof: ImOnline Keys (max_values: Some(1), max_size: Some(320002), added: 320497, mode: MaxEncodedLen)
/// Storage: ImOnline ReceivedHeartbeats (r:1 w:1)
/// Proof: ImOnline ReceivedHeartbeats (max_values: None, max_size: Some(25), added: 2500, mode: MaxEncodedLen)
/// Storage: ImOnline AuthoredBlocks (r:1 w:0)
/// Proof: ImOnline AuthoredBlocks (max_values: None, max_size: Some(56), added: 2531, mode: MaxEncodedLen)
/// The range of component `k` is `[1, 1000]`.
fn validate_unsigned_and_then_heartbeat(k: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `327 + k * (32 ±0)`
// Measured: `295 + k * (32 ±0)`
// Estimated: `321487 + k * (1761 ±0)`
// Minimum execution time: 65_515_000 picoseconds.
Weight::from_parts(74_765_329, 321487)
// Standard Error: 500
.saturating_add(Weight::from_parts(39_171, 0).saturating_mul(k.into()))
// Minimum execution time: 80_568_000 picoseconds.
Weight::from_parts(95_175_595, 321487)
// Standard Error: 627
.saturating_add(Weight::from_parts(39_094, 0).saturating_mul(k.into()))
.saturating_add(T::DbWeight::get().reads(4_u64))
.saturating_add(T::DbWeight::get().writes(1_u64))
.saturating_add(Weight::from_parts(0, 1761).saturating_mul(k.into()))
}
}
// For backwards compatibility and tests.
// For backwards compatibility and tests
impl WeightInfo for () {
/// Storage: `Session::Validators` (r:1 w:0)
/// Proof: `Session::Validators` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// Storage: `Session::CurrentIndex` (r:1 w:0)
/// Proof: `Session::CurrentIndex` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// Storage: `ImOnline::Keys` (r:1 w:0)
/// Proof: `ImOnline::Keys` (`max_values`: Some(1), `max_size`: Some(320002), added: 320497, mode: `MaxEncodedLen`)
/// Storage: `ImOnline::ReceivedHeartbeats` (r:1 w:1)
/// Proof: `ImOnline::ReceivedHeartbeats` (`max_values`: None, `max_size`: Some(25), added: 2500, mode: `MaxEncodedLen`)
/// Storage: `ImOnline::AuthoredBlocks` (r:1 w:0)
/// Proof: `ImOnline::AuthoredBlocks` (`max_values`: None, `max_size`: Some(56), added: 2531, mode: `MaxEncodedLen`)
/// Storage: Session Validators (r:1 w:0)
/// Proof Skipped: Session Validators (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: Session CurrentIndex (r:1 w:0)
/// Proof Skipped: Session CurrentIndex (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: ImOnline Keys (r:1 w:0)
/// Proof: ImOnline Keys (max_values: Some(1), max_size: Some(320002), added: 320497, mode: MaxEncodedLen)
/// Storage: ImOnline ReceivedHeartbeats (r:1 w:1)
/// Proof: ImOnline ReceivedHeartbeats (max_values: None, max_size: Some(25), added: 2500, mode: MaxEncodedLen)
/// Storage: ImOnline AuthoredBlocks (r:1 w:0)
/// Proof: ImOnline AuthoredBlocks (max_values: None, max_size: Some(56), added: 2531, mode: MaxEncodedLen)
/// The range of component `k` is `[1, 1000]`.
fn validate_unsigned_and_then_heartbeat(k: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `327 + k * (32 ±0)`
// Measured: `295 + k * (32 ±0)`
// Estimated: `321487 + k * (1761 ±0)`
// Minimum execution time: 65_515_000 picoseconds.
Weight::from_parts(74_765_329, 321487)
// Standard Error: 500
.saturating_add(Weight::from_parts(39_171, 0).saturating_mul(k.into()))
// Minimum execution time: 80_568_000 picoseconds.
Weight::from_parts(95_175_595, 321487)
// Standard Error: 627
.saturating_add(Weight::from_parts(39_094, 0).saturating_mul(k.into()))
.saturating_add(RocksDbWeight::get().reads(4_u64))
.saturating_add(RocksDbWeight::get().writes(1_u64))
.saturating_add(Weight::from_parts(0, 1761).saturating_mul(k.into()))
+61 -60
View File
@@ -15,16 +15,16 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//! Autogenerated weights for `pallet_indices`
//! Autogenerated weights for pallet_indices
//!
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0
//! DATE: 2024-03-01, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
//! DATE: 2023-06-16, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! WORST CASE MAP SIZE: `1000000`
//! HOSTNAME: `runner-bn-ce5rx-project-674-concurrent-0`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz`
//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("dev")`, DB CACHE: `1024`
//! HOSTNAME: `runner-e8ezs4ez-project-145-concurrent-0`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz`
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024
// Executed Command:
// ./target/production/substrate-node
// ./target/production/substrate
// benchmark
// pallet
// --chain=dev
@@ -35,11 +35,12 @@
// --no-median-slopes
// --no-min-squares
// --extrinsic=*
// --execution=wasm
// --wasm-execution=compiled
// --heap-pages=4096
// --output=./substrate/frame/indices/src/weights.rs
// --header=./substrate/HEADER-APACHE2
// --template=./substrate/.maintain/frame-weight-template.hbs
// --output=./frame/indices/src/weights.rs
// --header=./HEADER-APACHE2
// --template=./.maintain/frame-weight-template.hbs
#![cfg_attr(rustfmt, rustfmt_skip)]
#![allow(unused_parens)]
@@ -49,7 +50,7 @@
use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}};
use core::marker::PhantomData;
/// Weight functions needed for `pallet_indices`.
/// Weight functions needed for pallet_indices.
pub trait WeightInfo {
fn claim() -> Weight;
fn transfer() -> Weight;
@@ -58,128 +59,128 @@ pub trait WeightInfo {
fn freeze() -> Weight;
}
/// Weights for `pallet_indices` using the Substrate node and recommended hardware.
/// Weights for pallet_indices using the Substrate node and recommended hardware.
pub struct SubstrateWeight<T>(PhantomData<T>);
impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
/// Storage: `Indices::Accounts` (r:1 w:1)
/// Proof: `Indices::Accounts` (`max_values`: None, `max_size`: Some(69), added: 2544, mode: `MaxEncodedLen`)
/// Storage: Indices Accounts (r:1 w:1)
/// Proof: Indices Accounts (max_values: None, max_size: Some(69), added: 2544, mode: MaxEncodedLen)
fn claim() -> Weight {
// Proof Size summary in bytes:
// Measured: `76`
// Estimated: `3534`
// Minimum execution time: 20_825_000 picoseconds.
Weight::from_parts(21_507_000, 3534)
// Minimum execution time: 25_491_000 picoseconds.
Weight::from_parts(26_456_000, 3534)
.saturating_add(T::DbWeight::get().reads(1_u64))
.saturating_add(T::DbWeight::get().writes(1_u64))
}
/// Storage: `Indices::Accounts` (r:1 w:1)
/// Proof: `Indices::Accounts` (`max_values`: None, `max_size`: Some(69), added: 2544, mode: `MaxEncodedLen`)
/// Storage: `System::Account` (r:1 w:1)
/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
/// Storage: Indices Accounts (r:1 w:1)
/// Proof: Indices Accounts (max_values: None, max_size: Some(69), added: 2544, mode: MaxEncodedLen)
/// Storage: System Account (r:1 w:1)
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
fn transfer() -> Weight {
// Proof Size summary in bytes:
// Measured: `275`
// Estimated: `3593`
// Minimum execution time: 31_091_000 picoseconds.
Weight::from_parts(31_923_000, 3593)
// Minimum execution time: 38_027_000 picoseconds.
Weight::from_parts(38_749_000, 3593)
.saturating_add(T::DbWeight::get().reads(2_u64))
.saturating_add(T::DbWeight::get().writes(2_u64))
}
/// Storage: `Indices::Accounts` (r:1 w:1)
/// Proof: `Indices::Accounts` (`max_values`: None, `max_size`: Some(69), added: 2544, mode: `MaxEncodedLen`)
/// Storage: Indices Accounts (r:1 w:1)
/// Proof: Indices Accounts (max_values: None, max_size: Some(69), added: 2544, mode: MaxEncodedLen)
fn free() -> Weight {
// Proof Size summary in bytes:
// Measured: `172`
// Estimated: `3534`
// Minimum execution time: 21_832_000 picoseconds.
Weight::from_parts(22_436_000, 3534)
// Minimum execution time: 26_652_000 picoseconds.
Weight::from_parts(27_273_000, 3534)
.saturating_add(T::DbWeight::get().reads(1_u64))
.saturating_add(T::DbWeight::get().writes(1_u64))
}
/// Storage: `Indices::Accounts` (r:1 w:1)
/// Proof: `Indices::Accounts` (`max_values`: None, `max_size`: Some(69), added: 2544, mode: `MaxEncodedLen`)
/// Storage: `System::Account` (r:1 w:1)
/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
/// Storage: Indices Accounts (r:1 w:1)
/// Proof: Indices Accounts (max_values: None, max_size: Some(69), added: 2544, mode: MaxEncodedLen)
/// Storage: System Account (r:1 w:1)
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
fn force_transfer() -> Weight {
// Proof Size summary in bytes:
// Measured: `275`
// Estimated: `3593`
// Minimum execution time: 23_876_000 picoseconds.
Weight::from_parts(24_954_000, 3593)
// Minimum execution time: 29_464_000 picoseconds.
Weight::from_parts(30_959_000, 3593)
.saturating_add(T::DbWeight::get().reads(2_u64))
.saturating_add(T::DbWeight::get().writes(2_u64))
}
/// Storage: `Indices::Accounts` (r:1 w:1)
/// Proof: `Indices::Accounts` (`max_values`: None, `max_size`: Some(69), added: 2544, mode: `MaxEncodedLen`)
/// Storage: Indices Accounts (r:1 w:1)
/// Proof: Indices Accounts (max_values: None, max_size: Some(69), added: 2544, mode: MaxEncodedLen)
fn freeze() -> Weight {
// Proof Size summary in bytes:
// Measured: `172`
// Estimated: `3534`
// Minimum execution time: 22_954_000 picoseconds.
Weight::from_parts(23_792_000, 3534)
// Minimum execution time: 29_015_000 picoseconds.
Weight::from_parts(29_714_000, 3534)
.saturating_add(T::DbWeight::get().reads(1_u64))
.saturating_add(T::DbWeight::get().writes(1_u64))
}
}
// For backwards compatibility and tests.
// For backwards compatibility and tests
impl WeightInfo for () {
/// Storage: `Indices::Accounts` (r:1 w:1)
/// Proof: `Indices::Accounts` (`max_values`: None, `max_size`: Some(69), added: 2544, mode: `MaxEncodedLen`)
/// Storage: Indices Accounts (r:1 w:1)
/// Proof: Indices Accounts (max_values: None, max_size: Some(69), added: 2544, mode: MaxEncodedLen)
fn claim() -> Weight {
// Proof Size summary in bytes:
// Measured: `76`
// Estimated: `3534`
// Minimum execution time: 20_825_000 picoseconds.
Weight::from_parts(21_507_000, 3534)
// Minimum execution time: 25_491_000 picoseconds.
Weight::from_parts(26_456_000, 3534)
.saturating_add(RocksDbWeight::get().reads(1_u64))
.saturating_add(RocksDbWeight::get().writes(1_u64))
}
/// Storage: `Indices::Accounts` (r:1 w:1)
/// Proof: `Indices::Accounts` (`max_values`: None, `max_size`: Some(69), added: 2544, mode: `MaxEncodedLen`)
/// Storage: `System::Account` (r:1 w:1)
/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
/// Storage: Indices Accounts (r:1 w:1)
/// Proof: Indices Accounts (max_values: None, max_size: Some(69), added: 2544, mode: MaxEncodedLen)
/// Storage: System Account (r:1 w:1)
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
fn transfer() -> Weight {
// Proof Size summary in bytes:
// Measured: `275`
// Estimated: `3593`
// Minimum execution time: 31_091_000 picoseconds.
Weight::from_parts(31_923_000, 3593)
// Minimum execution time: 38_027_000 picoseconds.
Weight::from_parts(38_749_000, 3593)
.saturating_add(RocksDbWeight::get().reads(2_u64))
.saturating_add(RocksDbWeight::get().writes(2_u64))
}
/// Storage: `Indices::Accounts` (r:1 w:1)
/// Proof: `Indices::Accounts` (`max_values`: None, `max_size`: Some(69), added: 2544, mode: `MaxEncodedLen`)
/// Storage: Indices Accounts (r:1 w:1)
/// Proof: Indices Accounts (max_values: None, max_size: Some(69), added: 2544, mode: MaxEncodedLen)
fn free() -> Weight {
// Proof Size summary in bytes:
// Measured: `172`
// Estimated: `3534`
// Minimum execution time: 21_832_000 picoseconds.
Weight::from_parts(22_436_000, 3534)
// Minimum execution time: 26_652_000 picoseconds.
Weight::from_parts(27_273_000, 3534)
.saturating_add(RocksDbWeight::get().reads(1_u64))
.saturating_add(RocksDbWeight::get().writes(1_u64))
}
/// Storage: `Indices::Accounts` (r:1 w:1)
/// Proof: `Indices::Accounts` (`max_values`: None, `max_size`: Some(69), added: 2544, mode: `MaxEncodedLen`)
/// Storage: `System::Account` (r:1 w:1)
/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
/// Storage: Indices Accounts (r:1 w:1)
/// Proof: Indices Accounts (max_values: None, max_size: Some(69), added: 2544, mode: MaxEncodedLen)
/// Storage: System Account (r:1 w:1)
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
fn force_transfer() -> Weight {
// Proof Size summary in bytes:
// Measured: `275`
// Estimated: `3593`
// Minimum execution time: 23_876_000 picoseconds.
Weight::from_parts(24_954_000, 3593)
// Minimum execution time: 29_464_000 picoseconds.
Weight::from_parts(30_959_000, 3593)
.saturating_add(RocksDbWeight::get().reads(2_u64))
.saturating_add(RocksDbWeight::get().writes(2_u64))
}
/// Storage: `Indices::Accounts` (r:1 w:1)
/// Proof: `Indices::Accounts` (`max_values`: None, `max_size`: Some(69), added: 2544, mode: `MaxEncodedLen`)
/// Storage: Indices Accounts (r:1 w:1)
/// Proof: Indices Accounts (max_values: None, max_size: Some(69), added: 2544, mode: MaxEncodedLen)
fn freeze() -> Weight {
// Proof Size summary in bytes:
// Measured: `172`
// Estimated: `3534`
// Minimum execution time: 22_954_000 picoseconds.
Weight::from_parts(23_792_000, 3534)
// Minimum execution time: 29_015_000 picoseconds.
Weight::from_parts(29_714_000, 3534)
.saturating_add(RocksDbWeight::get().reads(1_u64))
.saturating_add(RocksDbWeight::get().writes(1_u64))
}
+147 -154
View File
@@ -15,16 +15,16 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//! Autogenerated weights for `pallet_lottery`
//! Autogenerated weights for pallet_lottery
//!
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0
//! DATE: 2024-03-01, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
//! DATE: 2023-06-16, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! WORST CASE MAP SIZE: `1000000`
//! HOSTNAME: `runner-bn-ce5rx-project-674-concurrent-0`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz`
//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("dev")`, DB CACHE: `1024`
//! HOSTNAME: `runner-e8ezs4ez-project-145-concurrent-0`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz`
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024
// Executed Command:
// ./target/production/substrate-node
// ./target/production/substrate
// benchmark
// pallet
// --chain=dev
@@ -35,11 +35,12 @@
// --no-median-slopes
// --no-min-squares
// --extrinsic=*
// --execution=wasm
// --wasm-execution=compiled
// --heap-pages=4096
// --output=./substrate/frame/lottery/src/weights.rs
// --header=./substrate/HEADER-APACHE2
// --template=./substrate/.maintain/frame-weight-template.hbs
// --output=./frame/lottery/src/weights.rs
// --header=./HEADER-APACHE2
// --template=./.maintain/frame-weight-template.hbs
#![cfg_attr(rustfmt, rustfmt_skip)]
#![allow(unused_parens)]
@@ -49,7 +50,7 @@
use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}};
use core::marker::PhantomData;
/// Weight functions needed for `pallet_lottery`.
/// Weight functions needed for pallet_lottery.
pub trait WeightInfo {
fn buy_ticket() -> Weight;
fn set_calls(n: u32, ) -> Weight;
@@ -59,222 +60,214 @@ pub trait WeightInfo {
fn on_initialize_repeat() -> Weight;
}
/// Weights for `pallet_lottery` using the Substrate node and recommended hardware.
/// Weights for pallet_lottery using the Substrate node and recommended hardware.
pub struct SubstrateWeight<T>(PhantomData<T>);
impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
/// Storage: `SafeMode::EnteredUntil` (r:1 w:0)
/// Proof: `SafeMode::EnteredUntil` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
/// Storage: `TxPause::PausedCalls` (r:1 w:0)
/// Proof: `TxPause::PausedCalls` (`max_values`: None, `max_size`: Some(532), added: 3007, mode: `MaxEncodedLen`)
/// Storage: `Lottery::Lottery` (r:1 w:0)
/// Proof: `Lottery::Lottery` (`max_values`: Some(1), `max_size`: Some(29), added: 524, mode: `MaxEncodedLen`)
/// Storage: `Lottery::CallIndices` (r:1 w:0)
/// Proof: `Lottery::CallIndices` (`max_values`: Some(1), `max_size`: Some(21), added: 516, mode: `MaxEncodedLen`)
/// Storage: `Lottery::TicketsCount` (r:1 w:1)
/// Proof: `Lottery::TicketsCount` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
/// Storage: `Lottery::Participants` (r:1 w:1)
/// Proof: `Lottery::Participants` (`max_values`: None, `max_size`: Some(65), added: 2540, mode: `MaxEncodedLen`)
/// Storage: `Lottery::LotteryIndex` (r:1 w:0)
/// Proof: `Lottery::LotteryIndex` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
/// Storage: `System::Account` (r:1 w:1)
/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
/// Storage: `Lottery::Tickets` (r:0 w:1)
/// Proof: `Lottery::Tickets` (`max_values`: None, `max_size`: Some(44), added: 2519, mode: `MaxEncodedLen`)
/// Storage: Lottery Lottery (r:1 w:0)
/// Proof: Lottery Lottery (max_values: Some(1), max_size: Some(29), added: 524, mode: MaxEncodedLen)
/// Storage: Lottery CallIndices (r:1 w:0)
/// Proof: Lottery CallIndices (max_values: Some(1), max_size: Some(21), added: 516, mode: MaxEncodedLen)
/// Storage: Lottery TicketsCount (r:1 w:1)
/// Proof: Lottery TicketsCount (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
/// Storage: Lottery Participants (r:1 w:1)
/// Proof: Lottery Participants (max_values: None, max_size: Some(65), added: 2540, mode: MaxEncodedLen)
/// Storage: Lottery LotteryIndex (r:1 w:0)
/// Proof: Lottery LotteryIndex (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
/// Storage: System Account (r:1 w:1)
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
/// Storage: Lottery Tickets (r:0 w:1)
/// Proof: Lottery Tickets (max_values: None, max_size: Some(44), added: 2519, mode: MaxEncodedLen)
fn buy_ticket() -> Weight {
// Proof Size summary in bytes:
// Measured: `492`
// Estimated: `3997`
// Minimum execution time: 57_891_000 picoseconds.
Weight::from_parts(59_508_000, 3997)
.saturating_add(T::DbWeight::get().reads(8_u64))
// Measured: `452`
// Estimated: `3593`
// Minimum execution time: 60_298_000 picoseconds.
Weight::from_parts(62_058_000, 3593)
.saturating_add(T::DbWeight::get().reads(6_u64))
.saturating_add(T::DbWeight::get().writes(4_u64))
}
/// Storage: `Lottery::CallIndices` (r:0 w:1)
/// Proof: `Lottery::CallIndices` (`max_values`: Some(1), `max_size`: Some(21), added: 516, mode: `MaxEncodedLen`)
/// Storage: Lottery CallIndices (r:0 w:1)
/// Proof: Lottery CallIndices (max_values: Some(1), max_size: Some(21), added: 516, mode: MaxEncodedLen)
/// The range of component `n` is `[0, 10]`.
fn set_calls(n: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `0`
// Minimum execution time: 5_026_000 picoseconds.
Weight::from_parts(5_854_666, 0)
// Standard Error: 3_233
.saturating_add(Weight::from_parts(334_818, 0).saturating_mul(n.into()))
// Minimum execution time: 7_291_000 picoseconds.
Weight::from_parts(8_178_186, 0)
// Standard Error: 3_048
.saturating_add(Weight::from_parts(330_871, 0).saturating_mul(n.into()))
.saturating_add(T::DbWeight::get().writes(1_u64))
}
/// Storage: `Lottery::Lottery` (r:1 w:1)
/// Proof: `Lottery::Lottery` (`max_values`: Some(1), `max_size`: Some(29), added: 524, mode: `MaxEncodedLen`)
/// Storage: `Lottery::LotteryIndex` (r:1 w:1)
/// Proof: `Lottery::LotteryIndex` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
/// Storage: `System::Account` (r:1 w:1)
/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
/// Storage: Lottery Lottery (r:1 w:1)
/// Proof: Lottery Lottery (max_values: Some(1), max_size: Some(29), added: 524, mode: MaxEncodedLen)
/// Storage: Lottery LotteryIndex (r:1 w:1)
/// Proof: Lottery LotteryIndex (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
/// Storage: System Account (r:1 w:1)
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
fn start_lottery() -> Weight {
// Proof Size summary in bytes:
// Measured: `194`
// Measured: `161`
// Estimated: `3593`
// Minimum execution time: 26_216_000 picoseconds.
Weight::from_parts(27_216_000, 3593)
// Minimum execution time: 36_741_000 picoseconds.
Weight::from_parts(38_288_000, 3593)
.saturating_add(T::DbWeight::get().reads(3_u64))
.saturating_add(T::DbWeight::get().writes(3_u64))
}
/// Storage: `Lottery::Lottery` (r:1 w:1)
/// Proof: `Lottery::Lottery` (`max_values`: Some(1), `max_size`: Some(29), added: 524, mode: `MaxEncodedLen`)
/// Storage: Lottery Lottery (r:1 w:1)
/// Proof: Lottery Lottery (max_values: Some(1), max_size: Some(29), added: 524, mode: MaxEncodedLen)
fn stop_repeat() -> Weight {
// Proof Size summary in bytes:
// Measured: `252`
// Measured: `219`
// Estimated: `1514`
// Minimum execution time: 6_208_000 picoseconds.
Weight::from_parts(6_427_000, 1514)
// Minimum execution time: 7_270_000 picoseconds.
Weight::from_parts(7_578_000, 1514)
.saturating_add(T::DbWeight::get().reads(1_u64))
.saturating_add(T::DbWeight::get().writes(1_u64))
}
/// Storage: `RandomnessCollectiveFlip::RandomMaterial` (r:1 w:0)
/// Proof: `RandomnessCollectiveFlip::RandomMaterial` (`max_values`: Some(1), `max_size`: Some(2594), added: 3089, mode: `MaxEncodedLen`)
/// Storage: `Lottery::Lottery` (r:1 w:1)
/// Proof: `Lottery::Lottery` (`max_values`: Some(1), `max_size`: Some(29), added: 524, mode: `MaxEncodedLen`)
/// Storage: `System::Account` (r:2 w:2)
/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
/// Storage: `Lottery::TicketsCount` (r:1 w:1)
/// Proof: `Lottery::TicketsCount` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
/// Storage: `Lottery::Tickets` (r:1 w:0)
/// Proof: `Lottery::Tickets` (`max_values`: None, `max_size`: Some(44), added: 2519, mode: `MaxEncodedLen`)
/// Storage: RandomnessCollectiveFlip RandomMaterial (r:1 w:0)
/// Proof: RandomnessCollectiveFlip RandomMaterial (max_values: Some(1), max_size: Some(2594), added: 3089, mode: MaxEncodedLen)
/// Storage: Lottery Lottery (r:1 w:1)
/// Proof: Lottery Lottery (max_values: Some(1), max_size: Some(29), added: 524, mode: MaxEncodedLen)
/// Storage: System Account (r:2 w:2)
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
/// Storage: Lottery TicketsCount (r:1 w:1)
/// Proof: Lottery TicketsCount (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
/// Storage: Lottery Tickets (r:1 w:0)
/// Proof: Lottery Tickets (max_values: None, max_size: Some(44), added: 2519, mode: MaxEncodedLen)
fn on_initialize_end() -> Weight {
// Proof Size summary in bytes:
// Measured: `591`
// Measured: `558`
// Estimated: `6196`
// Minimum execution time: 58_660_000 picoseconds.
Weight::from_parts(59_358_000, 6196)
// Minimum execution time: 76_611_000 picoseconds.
Weight::from_parts(78_107_000, 6196)
.saturating_add(T::DbWeight::get().reads(6_u64))
.saturating_add(T::DbWeight::get().writes(4_u64))
}
/// Storage: `RandomnessCollectiveFlip::RandomMaterial` (r:1 w:0)
/// Proof: `RandomnessCollectiveFlip::RandomMaterial` (`max_values`: Some(1), `max_size`: Some(2594), added: 3089, mode: `MaxEncodedLen`)
/// Storage: `Lottery::Lottery` (r:1 w:1)
/// Proof: `Lottery::Lottery` (`max_values`: Some(1), `max_size`: Some(29), added: 524, mode: `MaxEncodedLen`)
/// Storage: `System::Account` (r:2 w:2)
/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
/// Storage: `Lottery::TicketsCount` (r:1 w:1)
/// Proof: `Lottery::TicketsCount` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
/// Storage: `Lottery::Tickets` (r:1 w:0)
/// Proof: `Lottery::Tickets` (`max_values`: None, `max_size`: Some(44), added: 2519, mode: `MaxEncodedLen`)
/// Storage: `Lottery::LotteryIndex` (r:1 w:1)
/// Proof: `Lottery::LotteryIndex` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
/// Storage: RandomnessCollectiveFlip RandomMaterial (r:1 w:0)
/// Proof: RandomnessCollectiveFlip RandomMaterial (max_values: Some(1), max_size: Some(2594), added: 3089, mode: MaxEncodedLen)
/// Storage: Lottery Lottery (r:1 w:1)
/// Proof: Lottery Lottery (max_values: Some(1), max_size: Some(29), added: 524, mode: MaxEncodedLen)
/// Storage: System Account (r:2 w:2)
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
/// Storage: Lottery TicketsCount (r:1 w:1)
/// Proof: Lottery TicketsCount (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
/// Storage: Lottery Tickets (r:1 w:0)
/// Proof: Lottery Tickets (max_values: None, max_size: Some(44), added: 2519, mode: MaxEncodedLen)
/// Storage: Lottery LotteryIndex (r:1 w:1)
/// Proof: Lottery LotteryIndex (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
fn on_initialize_repeat() -> Weight {
// Proof Size summary in bytes:
// Measured: `591`
// Measured: `558`
// Estimated: `6196`
// Minimum execution time: 59_376_000 picoseconds.
Weight::from_parts(60_598_000, 6196)
// Minimum execution time: 78_731_000 picoseconds.
Weight::from_parts(80_248_000, 6196)
.saturating_add(T::DbWeight::get().reads(7_u64))
.saturating_add(T::DbWeight::get().writes(5_u64))
}
}
// For backwards compatibility and tests.
// For backwards compatibility and tests
impl WeightInfo for () {
/// Storage: `SafeMode::EnteredUntil` (r:1 w:0)
/// Proof: `SafeMode::EnteredUntil` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
/// Storage: `TxPause::PausedCalls` (r:1 w:0)
/// Proof: `TxPause::PausedCalls` (`max_values`: None, `max_size`: Some(532), added: 3007, mode: `MaxEncodedLen`)
/// Storage: `Lottery::Lottery` (r:1 w:0)
/// Proof: `Lottery::Lottery` (`max_values`: Some(1), `max_size`: Some(29), added: 524, mode: `MaxEncodedLen`)
/// Storage: `Lottery::CallIndices` (r:1 w:0)
/// Proof: `Lottery::CallIndices` (`max_values`: Some(1), `max_size`: Some(21), added: 516, mode: `MaxEncodedLen`)
/// Storage: `Lottery::TicketsCount` (r:1 w:1)
/// Proof: `Lottery::TicketsCount` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
/// Storage: `Lottery::Participants` (r:1 w:1)
/// Proof: `Lottery::Participants` (`max_values`: None, `max_size`: Some(65), added: 2540, mode: `MaxEncodedLen`)
/// Storage: `Lottery::LotteryIndex` (r:1 w:0)
/// Proof: `Lottery::LotteryIndex` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
/// Storage: `System::Account` (r:1 w:1)
/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
/// Storage: `Lottery::Tickets` (r:0 w:1)
/// Proof: `Lottery::Tickets` (`max_values`: None, `max_size`: Some(44), added: 2519, mode: `MaxEncodedLen`)
/// Storage: Lottery Lottery (r:1 w:0)
/// Proof: Lottery Lottery (max_values: Some(1), max_size: Some(29), added: 524, mode: MaxEncodedLen)
/// Storage: Lottery CallIndices (r:1 w:0)
/// Proof: Lottery CallIndices (max_values: Some(1), max_size: Some(21), added: 516, mode: MaxEncodedLen)
/// Storage: Lottery TicketsCount (r:1 w:1)
/// Proof: Lottery TicketsCount (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
/// Storage: Lottery Participants (r:1 w:1)
/// Proof: Lottery Participants (max_values: None, max_size: Some(65), added: 2540, mode: MaxEncodedLen)
/// Storage: Lottery LotteryIndex (r:1 w:0)
/// Proof: Lottery LotteryIndex (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
/// Storage: System Account (r:1 w:1)
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
/// Storage: Lottery Tickets (r:0 w:1)
/// Proof: Lottery Tickets (max_values: None, max_size: Some(44), added: 2519, mode: MaxEncodedLen)
fn buy_ticket() -> Weight {
// Proof Size summary in bytes:
// Measured: `492`
// Estimated: `3997`
// Minimum execution time: 57_891_000 picoseconds.
Weight::from_parts(59_508_000, 3997)
.saturating_add(RocksDbWeight::get().reads(8_u64))
// Measured: `452`
// Estimated: `3593`
// Minimum execution time: 60_298_000 picoseconds.
Weight::from_parts(62_058_000, 3593)
.saturating_add(RocksDbWeight::get().reads(6_u64))
.saturating_add(RocksDbWeight::get().writes(4_u64))
}
/// Storage: `Lottery::CallIndices` (r:0 w:1)
/// Proof: `Lottery::CallIndices` (`max_values`: Some(1), `max_size`: Some(21), added: 516, mode: `MaxEncodedLen`)
/// Storage: Lottery CallIndices (r:0 w:1)
/// Proof: Lottery CallIndices (max_values: Some(1), max_size: Some(21), added: 516, mode: MaxEncodedLen)
/// The range of component `n` is `[0, 10]`.
fn set_calls(n: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `0`
// Minimum execution time: 5_026_000 picoseconds.
Weight::from_parts(5_854_666, 0)
// Standard Error: 3_233
.saturating_add(Weight::from_parts(334_818, 0).saturating_mul(n.into()))
// Minimum execution time: 7_291_000 picoseconds.
Weight::from_parts(8_178_186, 0)
// Standard Error: 3_048
.saturating_add(Weight::from_parts(330_871, 0).saturating_mul(n.into()))
.saturating_add(RocksDbWeight::get().writes(1_u64))
}
/// Storage: `Lottery::Lottery` (r:1 w:1)
/// Proof: `Lottery::Lottery` (`max_values`: Some(1), `max_size`: Some(29), added: 524, mode: `MaxEncodedLen`)
/// Storage: `Lottery::LotteryIndex` (r:1 w:1)
/// Proof: `Lottery::LotteryIndex` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
/// Storage: `System::Account` (r:1 w:1)
/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
/// Storage: Lottery Lottery (r:1 w:1)
/// Proof: Lottery Lottery (max_values: Some(1), max_size: Some(29), added: 524, mode: MaxEncodedLen)
/// Storage: Lottery LotteryIndex (r:1 w:1)
/// Proof: Lottery LotteryIndex (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
/// Storage: System Account (r:1 w:1)
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
fn start_lottery() -> Weight {
// Proof Size summary in bytes:
// Measured: `194`
// Measured: `161`
// Estimated: `3593`
// Minimum execution time: 26_216_000 picoseconds.
Weight::from_parts(27_216_000, 3593)
// Minimum execution time: 36_741_000 picoseconds.
Weight::from_parts(38_288_000, 3593)
.saturating_add(RocksDbWeight::get().reads(3_u64))
.saturating_add(RocksDbWeight::get().writes(3_u64))
}
/// Storage: `Lottery::Lottery` (r:1 w:1)
/// Proof: `Lottery::Lottery` (`max_values`: Some(1), `max_size`: Some(29), added: 524, mode: `MaxEncodedLen`)
/// Storage: Lottery Lottery (r:1 w:1)
/// Proof: Lottery Lottery (max_values: Some(1), max_size: Some(29), added: 524, mode: MaxEncodedLen)
fn stop_repeat() -> Weight {
// Proof Size summary in bytes:
// Measured: `252`
// Measured: `219`
// Estimated: `1514`
// Minimum execution time: 6_208_000 picoseconds.
Weight::from_parts(6_427_000, 1514)
// Minimum execution time: 7_270_000 picoseconds.
Weight::from_parts(7_578_000, 1514)
.saturating_add(RocksDbWeight::get().reads(1_u64))
.saturating_add(RocksDbWeight::get().writes(1_u64))
}
/// Storage: `RandomnessCollectiveFlip::RandomMaterial` (r:1 w:0)
/// Proof: `RandomnessCollectiveFlip::RandomMaterial` (`max_values`: Some(1), `max_size`: Some(2594), added: 3089, mode: `MaxEncodedLen`)
/// Storage: `Lottery::Lottery` (r:1 w:1)
/// Proof: `Lottery::Lottery` (`max_values`: Some(1), `max_size`: Some(29), added: 524, mode: `MaxEncodedLen`)
/// Storage: `System::Account` (r:2 w:2)
/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
/// Storage: `Lottery::TicketsCount` (r:1 w:1)
/// Proof: `Lottery::TicketsCount` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
/// Storage: `Lottery::Tickets` (r:1 w:0)
/// Proof: `Lottery::Tickets` (`max_values`: None, `max_size`: Some(44), added: 2519, mode: `MaxEncodedLen`)
/// Storage: RandomnessCollectiveFlip RandomMaterial (r:1 w:0)
/// Proof: RandomnessCollectiveFlip RandomMaterial (max_values: Some(1), max_size: Some(2594), added: 3089, mode: MaxEncodedLen)
/// Storage: Lottery Lottery (r:1 w:1)
/// Proof: Lottery Lottery (max_values: Some(1), max_size: Some(29), added: 524, mode: MaxEncodedLen)
/// Storage: System Account (r:2 w:2)
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
/// Storage: Lottery TicketsCount (r:1 w:1)
/// Proof: Lottery TicketsCount (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
/// Storage: Lottery Tickets (r:1 w:0)
/// Proof: Lottery Tickets (max_values: None, max_size: Some(44), added: 2519, mode: MaxEncodedLen)
fn on_initialize_end() -> Weight {
// Proof Size summary in bytes:
// Measured: `591`
// Measured: `558`
// Estimated: `6196`
// Minimum execution time: 58_660_000 picoseconds.
Weight::from_parts(59_358_000, 6196)
// Minimum execution time: 76_611_000 picoseconds.
Weight::from_parts(78_107_000, 6196)
.saturating_add(RocksDbWeight::get().reads(6_u64))
.saturating_add(RocksDbWeight::get().writes(4_u64))
}
/// Storage: `RandomnessCollectiveFlip::RandomMaterial` (r:1 w:0)
/// Proof: `RandomnessCollectiveFlip::RandomMaterial` (`max_values`: Some(1), `max_size`: Some(2594), added: 3089, mode: `MaxEncodedLen`)
/// Storage: `Lottery::Lottery` (r:1 w:1)
/// Proof: `Lottery::Lottery` (`max_values`: Some(1), `max_size`: Some(29), added: 524, mode: `MaxEncodedLen`)
/// Storage: `System::Account` (r:2 w:2)
/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
/// Storage: `Lottery::TicketsCount` (r:1 w:1)
/// Proof: `Lottery::TicketsCount` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
/// Storage: `Lottery::Tickets` (r:1 w:0)
/// Proof: `Lottery::Tickets` (`max_values`: None, `max_size`: Some(44), added: 2519, mode: `MaxEncodedLen`)
/// Storage: `Lottery::LotteryIndex` (r:1 w:1)
/// Proof: `Lottery::LotteryIndex` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
/// Storage: RandomnessCollectiveFlip RandomMaterial (r:1 w:0)
/// Proof: RandomnessCollectiveFlip RandomMaterial (max_values: Some(1), max_size: Some(2594), added: 3089, mode: MaxEncodedLen)
/// Storage: Lottery Lottery (r:1 w:1)
/// Proof: Lottery Lottery (max_values: Some(1), max_size: Some(29), added: 524, mode: MaxEncodedLen)
/// Storage: System Account (r:2 w:2)
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
/// Storage: Lottery TicketsCount (r:1 w:1)
/// Proof: Lottery TicketsCount (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
/// Storage: Lottery Tickets (r:1 w:0)
/// Proof: Lottery Tickets (max_values: None, max_size: Some(44), added: 2519, mode: MaxEncodedLen)
/// Storage: Lottery LotteryIndex (r:1 w:1)
/// Proof: Lottery LotteryIndex (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
fn on_initialize_repeat() -> Weight {
// Proof Size summary in bytes:
// Measured: `591`
// Measured: `558`
// Estimated: `6196`
// Minimum execution time: 59_376_000 picoseconds.
Weight::from_parts(60_598_000, 6196)
// Minimum execution time: 78_731_000 picoseconds.
Weight::from_parts(80_248_000, 6196)
.saturating_add(RocksDbWeight::get().reads(7_u64))
.saturating_add(RocksDbWeight::get().writes(5_u64))
}
+193 -192
View File
@@ -15,16 +15,16 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//! Autogenerated weights for `pallet_membership`
//! Autogenerated weights for pallet_membership
//!
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0
//! DATE: 2024-03-01, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
//! DATE: 2023-06-16, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! WORST CASE MAP SIZE: `1000000`
//! HOSTNAME: `runner-bn-ce5rx-project-674-concurrent-0`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz`
//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("dev")`, DB CACHE: `1024`
//! HOSTNAME: `runner-e8ezs4ez-project-145-concurrent-0`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz`
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024
// Executed Command:
// ./target/production/substrate-node
// ./target/production/substrate
// benchmark
// pallet
// --chain=dev
@@ -35,11 +35,12 @@
// --no-median-slopes
// --no-min-squares
// --extrinsic=*
// --execution=wasm
// --wasm-execution=compiled
// --heap-pages=4096
// --output=./substrate/frame/membership/src/weights.rs
// --header=./substrate/HEADER-APACHE2
// --template=./substrate/.maintain/frame-weight-template.hbs
// --output=./frame/membership/src/weights.rs
// --header=./HEADER-APACHE2
// --template=./.maintain/frame-weight-template.hbs
#![cfg_attr(rustfmt, rustfmt_skip)]
#![allow(unused_parens)]
@@ -49,7 +50,7 @@
use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}};
use core::marker::PhantomData;
/// Weight functions needed for `pallet_membership`.
/// Weight functions needed for pallet_membership.
pub trait WeightInfo {
fn add_member(m: u32, ) -> Weight;
fn remove_member(m: u32, ) -> Weight;
@@ -60,299 +61,299 @@ pub trait WeightInfo {
fn clear_prime() -> Weight;
}
/// Weights for `pallet_membership` using the Substrate node and recommended hardware.
/// Weights for pallet_membership using the Substrate node and recommended hardware.
pub struct SubstrateWeight<T>(PhantomData<T>);
impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
/// Storage: `TechnicalMembership::Members` (r:1 w:1)
/// Proof: `TechnicalMembership::Members` (`max_values`: Some(1), `max_size`: Some(3202), added: 3697, mode: `MaxEncodedLen`)
/// Storage: `TechnicalCommittee::Proposals` (r:1 w:0)
/// Proof: `TechnicalCommittee::Proposals` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// Storage: `TechnicalCommittee::Members` (r:0 w:1)
/// Proof: `TechnicalCommittee::Members` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// Storage: `TechnicalCommittee::Prime` (r:0 w:1)
/// Proof: `TechnicalCommittee::Prime` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// Storage: TechnicalMembership Members (r:1 w:1)
/// Proof: TechnicalMembership Members (max_values: Some(1), max_size: Some(3202), added: 3697, mode: MaxEncodedLen)
/// Storage: TechnicalCommittee Proposals (r:1 w:0)
/// Proof Skipped: TechnicalCommittee Proposals (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: TechnicalCommittee Members (r:0 w:1)
/// Proof Skipped: TechnicalCommittee Members (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: TechnicalCommittee Prime (r:0 w:1)
/// Proof Skipped: TechnicalCommittee Prime (max_values: Some(1), max_size: None, mode: Measured)
/// The range of component `m` is `[1, 99]`.
fn add_member(m: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `207 + m * (64 ±0)`
// Measured: `208 + m * (64 ±0)`
// Estimated: `4687 + m * (64 ±0)`
// Minimum execution time: 12_126_000 picoseconds.
Weight::from_parts(13_085_583, 4687)
// Standard Error: 659
.saturating_add(Weight::from_parts(36_103, 0).saturating_mul(m.into()))
// Minimum execution time: 17_040_000 picoseconds.
Weight::from_parts(18_344_571, 4687)
// Standard Error: 847
.saturating_add(Weight::from_parts(50_842, 0).saturating_mul(m.into()))
.saturating_add(T::DbWeight::get().reads(2_u64))
.saturating_add(T::DbWeight::get().writes(3_u64))
.saturating_add(Weight::from_parts(0, 64).saturating_mul(m.into()))
}
/// Storage: `TechnicalMembership::Members` (r:1 w:1)
/// Proof: `TechnicalMembership::Members` (`max_values`: Some(1), `max_size`: Some(3202), added: 3697, mode: `MaxEncodedLen`)
/// Storage: `TechnicalCommittee::Proposals` (r:1 w:0)
/// Proof: `TechnicalCommittee::Proposals` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// Storage: `TechnicalMembership::Prime` (r:1 w:0)
/// Proof: `TechnicalMembership::Prime` (`max_values`: Some(1), `max_size`: Some(32), added: 527, mode: `MaxEncodedLen`)
/// Storage: `TechnicalCommittee::Members` (r:0 w:1)
/// Proof: `TechnicalCommittee::Members` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// Storage: `TechnicalCommittee::Prime` (r:0 w:1)
/// Proof: `TechnicalCommittee::Prime` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// Storage: TechnicalMembership Members (r:1 w:1)
/// Proof: TechnicalMembership Members (max_values: Some(1), max_size: Some(3202), added: 3697, mode: MaxEncodedLen)
/// Storage: TechnicalCommittee Proposals (r:1 w:0)
/// Proof Skipped: TechnicalCommittee Proposals (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: TechnicalMembership Prime (r:1 w:0)
/// Proof: TechnicalMembership Prime (max_values: Some(1), max_size: Some(32), added: 527, mode: MaxEncodedLen)
/// Storage: TechnicalCommittee Members (r:0 w:1)
/// Proof Skipped: TechnicalCommittee Members (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: TechnicalCommittee Prime (r:0 w:1)
/// Proof Skipped: TechnicalCommittee Prime (max_values: Some(1), max_size: None, mode: Measured)
/// The range of component `m` is `[2, 100]`.
fn remove_member(m: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `311 + m * (64 ±0)`
// Measured: `312 + m * (64 ±0)`
// Estimated: `4687 + m * (64 ±0)`
// Minimum execution time: 14_571_000 picoseconds.
Weight::from_parts(15_532_232, 4687)
// Standard Error: 531
.saturating_add(Weight::from_parts(35_757, 0).saturating_mul(m.into()))
// Minimum execution time: 20_088_000 picoseconds.
Weight::from_parts(21_271_384, 4687)
// Standard Error: 786
.saturating_add(Weight::from_parts(44_806, 0).saturating_mul(m.into()))
.saturating_add(T::DbWeight::get().reads(3_u64))
.saturating_add(T::DbWeight::get().writes(3_u64))
.saturating_add(Weight::from_parts(0, 64).saturating_mul(m.into()))
}
/// Storage: `TechnicalMembership::Members` (r:1 w:1)
/// Proof: `TechnicalMembership::Members` (`max_values`: Some(1), `max_size`: Some(3202), added: 3697, mode: `MaxEncodedLen`)
/// Storage: `TechnicalCommittee::Proposals` (r:1 w:0)
/// Proof: `TechnicalCommittee::Proposals` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// Storage: `TechnicalMembership::Prime` (r:1 w:0)
/// Proof: `TechnicalMembership::Prime` (`max_values`: Some(1), `max_size`: Some(32), added: 527, mode: `MaxEncodedLen`)
/// Storage: `TechnicalCommittee::Members` (r:0 w:1)
/// Proof: `TechnicalCommittee::Members` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// Storage: `TechnicalCommittee::Prime` (r:0 w:1)
/// Proof: `TechnicalCommittee::Prime` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// Storage: TechnicalMembership Members (r:1 w:1)
/// Proof: TechnicalMembership Members (max_values: Some(1), max_size: Some(3202), added: 3697, mode: MaxEncodedLen)
/// Storage: TechnicalCommittee Proposals (r:1 w:0)
/// Proof Skipped: TechnicalCommittee Proposals (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: TechnicalMembership Prime (r:1 w:0)
/// Proof: TechnicalMembership Prime (max_values: Some(1), max_size: Some(32), added: 527, mode: MaxEncodedLen)
/// Storage: TechnicalCommittee Members (r:0 w:1)
/// Proof Skipped: TechnicalCommittee Members (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: TechnicalCommittee Prime (r:0 w:1)
/// Proof Skipped: TechnicalCommittee Prime (max_values: Some(1), max_size: None, mode: Measured)
/// The range of component `m` is `[2, 100]`.
fn swap_member(m: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `311 + m * (64 ±0)`
// Measured: `312 + m * (64 ±0)`
// Estimated: `4687 + m * (64 ±0)`
// Minimum execution time: 14_833_000 picoseconds.
Weight::from_parts(15_657_084, 4687)
// Standard Error: 650
.saturating_add(Weight::from_parts(44_467, 0).saturating_mul(m.into()))
// Minimum execution time: 20_308_000 picoseconds.
Weight::from_parts(21_469_843, 4687)
// Standard Error: 782
.saturating_add(Weight::from_parts(56_893, 0).saturating_mul(m.into()))
.saturating_add(T::DbWeight::get().reads(3_u64))
.saturating_add(T::DbWeight::get().writes(3_u64))
.saturating_add(Weight::from_parts(0, 64).saturating_mul(m.into()))
}
/// Storage: `TechnicalMembership::Members` (r:1 w:1)
/// Proof: `TechnicalMembership::Members` (`max_values`: Some(1), `max_size`: Some(3202), added: 3697, mode: `MaxEncodedLen`)
/// Storage: `TechnicalCommittee::Proposals` (r:1 w:0)
/// Proof: `TechnicalCommittee::Proposals` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// Storage: `TechnicalMembership::Prime` (r:1 w:0)
/// Proof: `TechnicalMembership::Prime` (`max_values`: Some(1), `max_size`: Some(32), added: 527, mode: `MaxEncodedLen`)
/// Storage: `TechnicalCommittee::Members` (r:0 w:1)
/// Proof: `TechnicalCommittee::Members` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// Storage: `TechnicalCommittee::Prime` (r:0 w:1)
/// Proof: `TechnicalCommittee::Prime` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// Storage: TechnicalMembership Members (r:1 w:1)
/// Proof: TechnicalMembership Members (max_values: Some(1), max_size: Some(3202), added: 3697, mode: MaxEncodedLen)
/// Storage: TechnicalCommittee Proposals (r:1 w:0)
/// Proof Skipped: TechnicalCommittee Proposals (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: TechnicalMembership Prime (r:1 w:0)
/// Proof: TechnicalMembership Prime (max_values: Some(1), max_size: Some(32), added: 527, mode: MaxEncodedLen)
/// Storage: TechnicalCommittee Members (r:0 w:1)
/// Proof Skipped: TechnicalCommittee Members (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: TechnicalCommittee Prime (r:0 w:1)
/// Proof Skipped: TechnicalCommittee Prime (max_values: Some(1), max_size: None, mode: Measured)
/// The range of component `m` is `[1, 100]`.
fn reset_members(m: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `311 + m * (64 ±0)`
// Measured: `312 + m * (64 ±0)`
// Estimated: `4687 + m * (64 ±0)`
// Minimum execution time: 14_629_000 picoseconds.
Weight::from_parts(15_578_203, 4687)
// Standard Error: 910
.saturating_add(Weight::from_parts(145_101, 0).saturating_mul(m.into()))
// Minimum execution time: 19_464_000 picoseconds.
Weight::from_parts(21_223_702, 4687)
// Standard Error: 1_068
.saturating_add(Weight::from_parts(165_438, 0).saturating_mul(m.into()))
.saturating_add(T::DbWeight::get().reads(3_u64))
.saturating_add(T::DbWeight::get().writes(3_u64))
.saturating_add(Weight::from_parts(0, 64).saturating_mul(m.into()))
}
/// Storage: `TechnicalMembership::Members` (r:1 w:1)
/// Proof: `TechnicalMembership::Members` (`max_values`: Some(1), `max_size`: Some(3202), added: 3697, mode: `MaxEncodedLen`)
/// Storage: `TechnicalCommittee::Proposals` (r:1 w:0)
/// Proof: `TechnicalCommittee::Proposals` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// Storage: `TechnicalMembership::Prime` (r:1 w:1)
/// Proof: `TechnicalMembership::Prime` (`max_values`: Some(1), `max_size`: Some(32), added: 527, mode: `MaxEncodedLen`)
/// Storage: `TechnicalCommittee::Members` (r:0 w:1)
/// Proof: `TechnicalCommittee::Members` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// Storage: `TechnicalCommittee::Prime` (r:0 w:1)
/// Proof: `TechnicalCommittee::Prime` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// Storage: TechnicalMembership Members (r:1 w:1)
/// Proof: TechnicalMembership Members (max_values: Some(1), max_size: Some(3202), added: 3697, mode: MaxEncodedLen)
/// Storage: TechnicalCommittee Proposals (r:1 w:0)
/// Proof Skipped: TechnicalCommittee Proposals (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: TechnicalMembership Prime (r:1 w:1)
/// Proof: TechnicalMembership Prime (max_values: Some(1), max_size: Some(32), added: 527, mode: MaxEncodedLen)
/// Storage: TechnicalCommittee Members (r:0 w:1)
/// Proof Skipped: TechnicalCommittee Members (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: TechnicalCommittee Prime (r:0 w:1)
/// Proof Skipped: TechnicalCommittee Prime (max_values: Some(1), max_size: None, mode: Measured)
/// The range of component `m` is `[1, 100]`.
fn change_key(m: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `311 + m * (64 ±0)`
// Measured: `312 + m * (64 ±0)`
// Estimated: `4687 + m * (64 ±0)`
// Minimum execution time: 15_218_000 picoseconds.
Weight::from_parts(16_388_690, 4687)
// Standard Error: 626
.saturating_add(Weight::from_parts(46_204, 0).saturating_mul(m.into()))
// Minimum execution time: 20_965_000 picoseconds.
Weight::from_parts(22_551_007, 4687)
// Standard Error: 860
.saturating_add(Weight::from_parts(52_397, 0).saturating_mul(m.into()))
.saturating_add(T::DbWeight::get().reads(3_u64))
.saturating_add(T::DbWeight::get().writes(4_u64))
.saturating_add(Weight::from_parts(0, 64).saturating_mul(m.into()))
}
/// Storage: `TechnicalMembership::Members` (r:1 w:0)
/// Proof: `TechnicalMembership::Members` (`max_values`: Some(1), `max_size`: Some(3202), added: 3697, mode: `MaxEncodedLen`)
/// Storage: `TechnicalMembership::Prime` (r:0 w:1)
/// Proof: `TechnicalMembership::Prime` (`max_values`: Some(1), `max_size`: Some(32), added: 527, mode: `MaxEncodedLen`)
/// Storage: `TechnicalCommittee::Prime` (r:0 w:1)
/// Proof: `TechnicalCommittee::Prime` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// Storage: TechnicalMembership Members (r:1 w:0)
/// Proof: TechnicalMembership Members (max_values: Some(1), max_size: Some(3202), added: 3697, mode: MaxEncodedLen)
/// Storage: TechnicalMembership Prime (r:0 w:1)
/// Proof: TechnicalMembership Prime (max_values: Some(1), max_size: Some(32), added: 527, mode: MaxEncodedLen)
/// Storage: TechnicalCommittee Prime (r:0 w:1)
/// Proof Skipped: TechnicalCommittee Prime (max_values: Some(1), max_size: None, mode: Measured)
/// The range of component `m` is `[1, 100]`.
fn set_prime(m: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `31 + m * (32 ±0)`
// Measured: `32 + m * (32 ±0)`
// Estimated: `4687 + m * (32 ±0)`
// Minimum execution time: 5_954_000 picoseconds.
Weight::from_parts(6_544_638, 4687)
// Standard Error: 346
.saturating_add(Weight::from_parts(17_638, 0).saturating_mul(m.into()))
// Minimum execution time: 7_481_000 picoseconds.
Weight::from_parts(7_959_053, 4687)
// Standard Error: 364
.saturating_add(Weight::from_parts(18_653, 0).saturating_mul(m.into()))
.saturating_add(T::DbWeight::get().reads(1_u64))
.saturating_add(T::DbWeight::get().writes(2_u64))
.saturating_add(Weight::from_parts(0, 32).saturating_mul(m.into()))
}
/// Storage: `TechnicalMembership::Prime` (r:0 w:1)
/// Proof: `TechnicalMembership::Prime` (`max_values`: Some(1), `max_size`: Some(32), added: 527, mode: `MaxEncodedLen`)
/// Storage: `TechnicalCommittee::Prime` (r:0 w:1)
/// Proof: `TechnicalCommittee::Prime` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// Storage: TechnicalMembership Prime (r:0 w:1)
/// Proof: TechnicalMembership Prime (max_values: Some(1), max_size: Some(32), added: 527, mode: MaxEncodedLen)
/// Storage: TechnicalCommittee Prime (r:0 w:1)
/// Proof Skipped: TechnicalCommittee Prime (max_values: Some(1), max_size: None, mode: Measured)
fn clear_prime() -> Weight {
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `0`
// Minimum execution time: 2_569_000 picoseconds.
Weight::from_parts(2_776_000, 0)
// Minimum execution time: 3_373_000 picoseconds.
Weight::from_parts(3_750_452, 0)
.saturating_add(T::DbWeight::get().writes(2_u64))
}
}
// For backwards compatibility and tests.
// For backwards compatibility and tests
impl WeightInfo for () {
/// Storage: `TechnicalMembership::Members` (r:1 w:1)
/// Proof: `TechnicalMembership::Members` (`max_values`: Some(1), `max_size`: Some(3202), added: 3697, mode: `MaxEncodedLen`)
/// Storage: `TechnicalCommittee::Proposals` (r:1 w:0)
/// Proof: `TechnicalCommittee::Proposals` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// Storage: `TechnicalCommittee::Members` (r:0 w:1)
/// Proof: `TechnicalCommittee::Members` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// Storage: `TechnicalCommittee::Prime` (r:0 w:1)
/// Proof: `TechnicalCommittee::Prime` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// Storage: TechnicalMembership Members (r:1 w:1)
/// Proof: TechnicalMembership Members (max_values: Some(1), max_size: Some(3202), added: 3697, mode: MaxEncodedLen)
/// Storage: TechnicalCommittee Proposals (r:1 w:0)
/// Proof Skipped: TechnicalCommittee Proposals (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: TechnicalCommittee Members (r:0 w:1)
/// Proof Skipped: TechnicalCommittee Members (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: TechnicalCommittee Prime (r:0 w:1)
/// Proof Skipped: TechnicalCommittee Prime (max_values: Some(1), max_size: None, mode: Measured)
/// The range of component `m` is `[1, 99]`.
fn add_member(m: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `207 + m * (64 ±0)`
// Measured: `208 + m * (64 ±0)`
// Estimated: `4687 + m * (64 ±0)`
// Minimum execution time: 12_126_000 picoseconds.
Weight::from_parts(13_085_583, 4687)
// Standard Error: 659
.saturating_add(Weight::from_parts(36_103, 0).saturating_mul(m.into()))
// Minimum execution time: 17_040_000 picoseconds.
Weight::from_parts(18_344_571, 4687)
// Standard Error: 847
.saturating_add(Weight::from_parts(50_842, 0).saturating_mul(m.into()))
.saturating_add(RocksDbWeight::get().reads(2_u64))
.saturating_add(RocksDbWeight::get().writes(3_u64))
.saturating_add(Weight::from_parts(0, 64).saturating_mul(m.into()))
}
/// Storage: `TechnicalMembership::Members` (r:1 w:1)
/// Proof: `TechnicalMembership::Members` (`max_values`: Some(1), `max_size`: Some(3202), added: 3697, mode: `MaxEncodedLen`)
/// Storage: `TechnicalCommittee::Proposals` (r:1 w:0)
/// Proof: `TechnicalCommittee::Proposals` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// Storage: `TechnicalMembership::Prime` (r:1 w:0)
/// Proof: `TechnicalMembership::Prime` (`max_values`: Some(1), `max_size`: Some(32), added: 527, mode: `MaxEncodedLen`)
/// Storage: `TechnicalCommittee::Members` (r:0 w:1)
/// Proof: `TechnicalCommittee::Members` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// Storage: `TechnicalCommittee::Prime` (r:0 w:1)
/// Proof: `TechnicalCommittee::Prime` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// Storage: TechnicalMembership Members (r:1 w:1)
/// Proof: TechnicalMembership Members (max_values: Some(1), max_size: Some(3202), added: 3697, mode: MaxEncodedLen)
/// Storage: TechnicalCommittee Proposals (r:1 w:0)
/// Proof Skipped: TechnicalCommittee Proposals (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: TechnicalMembership Prime (r:1 w:0)
/// Proof: TechnicalMembership Prime (max_values: Some(1), max_size: Some(32), added: 527, mode: MaxEncodedLen)
/// Storage: TechnicalCommittee Members (r:0 w:1)
/// Proof Skipped: TechnicalCommittee Members (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: TechnicalCommittee Prime (r:0 w:1)
/// Proof Skipped: TechnicalCommittee Prime (max_values: Some(1), max_size: None, mode: Measured)
/// The range of component `m` is `[2, 100]`.
fn remove_member(m: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `311 + m * (64 ±0)`
// Measured: `312 + m * (64 ±0)`
// Estimated: `4687 + m * (64 ±0)`
// Minimum execution time: 14_571_000 picoseconds.
Weight::from_parts(15_532_232, 4687)
// Standard Error: 531
.saturating_add(Weight::from_parts(35_757, 0).saturating_mul(m.into()))
// Minimum execution time: 20_088_000 picoseconds.
Weight::from_parts(21_271_384, 4687)
// Standard Error: 786
.saturating_add(Weight::from_parts(44_806, 0).saturating_mul(m.into()))
.saturating_add(RocksDbWeight::get().reads(3_u64))
.saturating_add(RocksDbWeight::get().writes(3_u64))
.saturating_add(Weight::from_parts(0, 64).saturating_mul(m.into()))
}
/// Storage: `TechnicalMembership::Members` (r:1 w:1)
/// Proof: `TechnicalMembership::Members` (`max_values`: Some(1), `max_size`: Some(3202), added: 3697, mode: `MaxEncodedLen`)
/// Storage: `TechnicalCommittee::Proposals` (r:1 w:0)
/// Proof: `TechnicalCommittee::Proposals` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// Storage: `TechnicalMembership::Prime` (r:1 w:0)
/// Proof: `TechnicalMembership::Prime` (`max_values`: Some(1), `max_size`: Some(32), added: 527, mode: `MaxEncodedLen`)
/// Storage: `TechnicalCommittee::Members` (r:0 w:1)
/// Proof: `TechnicalCommittee::Members` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// Storage: `TechnicalCommittee::Prime` (r:0 w:1)
/// Proof: `TechnicalCommittee::Prime` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// Storage: TechnicalMembership Members (r:1 w:1)
/// Proof: TechnicalMembership Members (max_values: Some(1), max_size: Some(3202), added: 3697, mode: MaxEncodedLen)
/// Storage: TechnicalCommittee Proposals (r:1 w:0)
/// Proof Skipped: TechnicalCommittee Proposals (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: TechnicalMembership Prime (r:1 w:0)
/// Proof: TechnicalMembership Prime (max_values: Some(1), max_size: Some(32), added: 527, mode: MaxEncodedLen)
/// Storage: TechnicalCommittee Members (r:0 w:1)
/// Proof Skipped: TechnicalCommittee Members (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: TechnicalCommittee Prime (r:0 w:1)
/// Proof Skipped: TechnicalCommittee Prime (max_values: Some(1), max_size: None, mode: Measured)
/// The range of component `m` is `[2, 100]`.
fn swap_member(m: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `311 + m * (64 ±0)`
// Measured: `312 + m * (64 ±0)`
// Estimated: `4687 + m * (64 ±0)`
// Minimum execution time: 14_833_000 picoseconds.
Weight::from_parts(15_657_084, 4687)
// Standard Error: 650
.saturating_add(Weight::from_parts(44_467, 0).saturating_mul(m.into()))
// Minimum execution time: 20_308_000 picoseconds.
Weight::from_parts(21_469_843, 4687)
// Standard Error: 782
.saturating_add(Weight::from_parts(56_893, 0).saturating_mul(m.into()))
.saturating_add(RocksDbWeight::get().reads(3_u64))
.saturating_add(RocksDbWeight::get().writes(3_u64))
.saturating_add(Weight::from_parts(0, 64).saturating_mul(m.into()))
}
/// Storage: `TechnicalMembership::Members` (r:1 w:1)
/// Proof: `TechnicalMembership::Members` (`max_values`: Some(1), `max_size`: Some(3202), added: 3697, mode: `MaxEncodedLen`)
/// Storage: `TechnicalCommittee::Proposals` (r:1 w:0)
/// Proof: `TechnicalCommittee::Proposals` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// Storage: `TechnicalMembership::Prime` (r:1 w:0)
/// Proof: `TechnicalMembership::Prime` (`max_values`: Some(1), `max_size`: Some(32), added: 527, mode: `MaxEncodedLen`)
/// Storage: `TechnicalCommittee::Members` (r:0 w:1)
/// Proof: `TechnicalCommittee::Members` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// Storage: `TechnicalCommittee::Prime` (r:0 w:1)
/// Proof: `TechnicalCommittee::Prime` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// Storage: TechnicalMembership Members (r:1 w:1)
/// Proof: TechnicalMembership Members (max_values: Some(1), max_size: Some(3202), added: 3697, mode: MaxEncodedLen)
/// Storage: TechnicalCommittee Proposals (r:1 w:0)
/// Proof Skipped: TechnicalCommittee Proposals (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: TechnicalMembership Prime (r:1 w:0)
/// Proof: TechnicalMembership Prime (max_values: Some(1), max_size: Some(32), added: 527, mode: MaxEncodedLen)
/// Storage: TechnicalCommittee Members (r:0 w:1)
/// Proof Skipped: TechnicalCommittee Members (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: TechnicalCommittee Prime (r:0 w:1)
/// Proof Skipped: TechnicalCommittee Prime (max_values: Some(1), max_size: None, mode: Measured)
/// The range of component `m` is `[1, 100]`.
fn reset_members(m: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `311 + m * (64 ±0)`
// Measured: `312 + m * (64 ±0)`
// Estimated: `4687 + m * (64 ±0)`
// Minimum execution time: 14_629_000 picoseconds.
Weight::from_parts(15_578_203, 4687)
// Standard Error: 910
.saturating_add(Weight::from_parts(145_101, 0).saturating_mul(m.into()))
// Minimum execution time: 19_464_000 picoseconds.
Weight::from_parts(21_223_702, 4687)
// Standard Error: 1_068
.saturating_add(Weight::from_parts(165_438, 0).saturating_mul(m.into()))
.saturating_add(RocksDbWeight::get().reads(3_u64))
.saturating_add(RocksDbWeight::get().writes(3_u64))
.saturating_add(Weight::from_parts(0, 64).saturating_mul(m.into()))
}
/// Storage: `TechnicalMembership::Members` (r:1 w:1)
/// Proof: `TechnicalMembership::Members` (`max_values`: Some(1), `max_size`: Some(3202), added: 3697, mode: `MaxEncodedLen`)
/// Storage: `TechnicalCommittee::Proposals` (r:1 w:0)
/// Proof: `TechnicalCommittee::Proposals` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// Storage: `TechnicalMembership::Prime` (r:1 w:1)
/// Proof: `TechnicalMembership::Prime` (`max_values`: Some(1), `max_size`: Some(32), added: 527, mode: `MaxEncodedLen`)
/// Storage: `TechnicalCommittee::Members` (r:0 w:1)
/// Proof: `TechnicalCommittee::Members` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// Storage: `TechnicalCommittee::Prime` (r:0 w:1)
/// Proof: `TechnicalCommittee::Prime` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// Storage: TechnicalMembership Members (r:1 w:1)
/// Proof: TechnicalMembership Members (max_values: Some(1), max_size: Some(3202), added: 3697, mode: MaxEncodedLen)
/// Storage: TechnicalCommittee Proposals (r:1 w:0)
/// Proof Skipped: TechnicalCommittee Proposals (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: TechnicalMembership Prime (r:1 w:1)
/// Proof: TechnicalMembership Prime (max_values: Some(1), max_size: Some(32), added: 527, mode: MaxEncodedLen)
/// Storage: TechnicalCommittee Members (r:0 w:1)
/// Proof Skipped: TechnicalCommittee Members (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: TechnicalCommittee Prime (r:0 w:1)
/// Proof Skipped: TechnicalCommittee Prime (max_values: Some(1), max_size: None, mode: Measured)
/// The range of component `m` is `[1, 100]`.
fn change_key(m: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `311 + m * (64 ±0)`
// Measured: `312 + m * (64 ±0)`
// Estimated: `4687 + m * (64 ±0)`
// Minimum execution time: 15_218_000 picoseconds.
Weight::from_parts(16_388_690, 4687)
// Standard Error: 626
.saturating_add(Weight::from_parts(46_204, 0).saturating_mul(m.into()))
// Minimum execution time: 20_965_000 picoseconds.
Weight::from_parts(22_551_007, 4687)
// Standard Error: 860
.saturating_add(Weight::from_parts(52_397, 0).saturating_mul(m.into()))
.saturating_add(RocksDbWeight::get().reads(3_u64))
.saturating_add(RocksDbWeight::get().writes(4_u64))
.saturating_add(Weight::from_parts(0, 64).saturating_mul(m.into()))
}
/// Storage: `TechnicalMembership::Members` (r:1 w:0)
/// Proof: `TechnicalMembership::Members` (`max_values`: Some(1), `max_size`: Some(3202), added: 3697, mode: `MaxEncodedLen`)
/// Storage: `TechnicalMembership::Prime` (r:0 w:1)
/// Proof: `TechnicalMembership::Prime` (`max_values`: Some(1), `max_size`: Some(32), added: 527, mode: `MaxEncodedLen`)
/// Storage: `TechnicalCommittee::Prime` (r:0 w:1)
/// Proof: `TechnicalCommittee::Prime` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// Storage: TechnicalMembership Members (r:1 w:0)
/// Proof: TechnicalMembership Members (max_values: Some(1), max_size: Some(3202), added: 3697, mode: MaxEncodedLen)
/// Storage: TechnicalMembership Prime (r:0 w:1)
/// Proof: TechnicalMembership Prime (max_values: Some(1), max_size: Some(32), added: 527, mode: MaxEncodedLen)
/// Storage: TechnicalCommittee Prime (r:0 w:1)
/// Proof Skipped: TechnicalCommittee Prime (max_values: Some(1), max_size: None, mode: Measured)
/// The range of component `m` is `[1, 100]`.
fn set_prime(m: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `31 + m * (32 ±0)`
// Measured: `32 + m * (32 ±0)`
// Estimated: `4687 + m * (32 ±0)`
// Minimum execution time: 5_954_000 picoseconds.
Weight::from_parts(6_544_638, 4687)
// Standard Error: 346
.saturating_add(Weight::from_parts(17_638, 0).saturating_mul(m.into()))
// Minimum execution time: 7_481_000 picoseconds.
Weight::from_parts(7_959_053, 4687)
// Standard Error: 364
.saturating_add(Weight::from_parts(18_653, 0).saturating_mul(m.into()))
.saturating_add(RocksDbWeight::get().reads(1_u64))
.saturating_add(RocksDbWeight::get().writes(2_u64))
.saturating_add(Weight::from_parts(0, 32).saturating_mul(m.into()))
}
/// Storage: `TechnicalMembership::Prime` (r:0 w:1)
/// Proof: `TechnicalMembership::Prime` (`max_values`: Some(1), `max_size`: Some(32), added: 527, mode: `MaxEncodedLen`)
/// Storage: `TechnicalCommittee::Prime` (r:0 w:1)
/// Proof: `TechnicalCommittee::Prime` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// Storage: TechnicalMembership Prime (r:0 w:1)
/// Proof: TechnicalMembership Prime (max_values: Some(1), max_size: Some(32), added: 527, mode: MaxEncodedLen)
/// Storage: TechnicalCommittee Prime (r:0 w:1)
/// Proof Skipped: TechnicalCommittee Prime (max_values: Some(1), max_size: None, mode: Measured)
fn clear_prime() -> Weight {
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `0`
// Minimum execution time: 2_569_000 picoseconds.
Weight::from_parts(2_776_000, 0)
// Minimum execution time: 3_373_000 picoseconds.
Weight::from_parts(3_750_452, 0)
.saturating_add(RocksDbWeight::get().writes(2_u64))
}
}
+119 -128
View File
@@ -15,16 +15,16 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//! Autogenerated weights for `pallet_message_queue`
//! Autogenerated weights for pallet_message_queue
//!
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0
//! DATE: 2024-03-01, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
//! DATE: 2023-06-16, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! WORST CASE MAP SIZE: `1000000`
//! HOSTNAME: `runner-bn-ce5rx-project-674-concurrent-0`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz`
//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("dev")`, DB CACHE: `1024`
//! HOSTNAME: `runner-e8ezs4ez-project-145-concurrent-0`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz`
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024
// Executed Command:
// ./target/production/substrate-node
// ./target/production/substrate
// benchmark
// pallet
// --chain=dev
@@ -35,11 +35,12 @@
// --no-median-slopes
// --no-min-squares
// --extrinsic=*
// --execution=wasm
// --wasm-execution=compiled
// --heap-pages=4096
// --output=./substrate/frame/message-queue/src/weights.rs
// --header=./substrate/HEADER-APACHE2
// --template=./substrate/.maintain/frame-weight-template.hbs
// --output=./frame/message-queue/src/weights.rs
// --header=./HEADER-APACHE2
// --template=./.maintain/frame-weight-template.hbs
#![cfg_attr(rustfmt, rustfmt_skip)]
#![allow(unused_parens)]
@@ -49,7 +50,7 @@
use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}};
use core::marker::PhantomData;
/// Weight functions needed for `pallet_message_queue`.
/// Weight functions needed for pallet_message_queue.
pub trait WeightInfo {
fn ready_ring_knit() -> Weight;
fn ready_ring_unknit() -> Weight;
@@ -63,256 +64,246 @@ pub trait WeightInfo {
fn execute_overweight_page_updated() -> Weight;
}
/// Weights for `pallet_message_queue` using the Substrate node and recommended hardware.
/// Weights for pallet_message_queue using the Substrate node and recommended hardware.
pub struct SubstrateWeight<T>(PhantomData<T>);
impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
/// Storage: `MessageQueue::ServiceHead` (r:1 w:0)
/// Proof: `MessageQueue::ServiceHead` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
/// Storage: `MessageQueue::BookStateFor` (r:2 w:2)
/// Proof: `MessageQueue::BookStateFor` (`max_values`: None, `max_size`: Some(49), added: 2524, mode: `MaxEncodedLen`)
/// Storage: MessageQueue ServiceHead (r:1 w:0)
/// Proof: MessageQueue ServiceHead (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
/// Storage: MessageQueue BookStateFor (r:2 w:2)
/// Proof: MessageQueue BookStateFor (max_values: None, max_size: Some(49), added: 2524, mode: MaxEncodedLen)
fn ready_ring_knit() -> Weight {
// Proof Size summary in bytes:
// Measured: `301`
// Measured: `267`
// Estimated: `6038`
// Minimum execution time: 11_563_000 picoseconds.
Weight::from_parts(11_956_000, 6038)
// Minimum execution time: 12_025_000 picoseconds.
Weight::from_parts(12_597_000, 6038)
.saturating_add(T::DbWeight::get().reads(3_u64))
.saturating_add(T::DbWeight::get().writes(2_u64))
}
/// Storage: `MessageQueue::BookStateFor` (r:2 w:2)
/// Proof: `MessageQueue::BookStateFor` (`max_values`: None, `max_size`: Some(49), added: 2524, mode: `MaxEncodedLen`)
/// Storage: `MessageQueue::ServiceHead` (r:1 w:1)
/// Proof: `MessageQueue::ServiceHead` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
/// Storage: MessageQueue BookStateFor (r:2 w:2)
/// Proof: MessageQueue BookStateFor (max_values: None, max_size: Some(49), added: 2524, mode: MaxEncodedLen)
/// Storage: MessageQueue ServiceHead (r:1 w:1)
/// Proof: MessageQueue ServiceHead (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
fn ready_ring_unknit() -> Weight {
// Proof Size summary in bytes:
// Measured: `301`
// Measured: `267`
// Estimated: `6038`
// Minimum execution time: 10_263_000 picoseconds.
Weight::from_parts(10_638_000, 6038)
// Minimum execution time: 11_563_000 picoseconds.
Weight::from_parts(11_785_000, 6038)
.saturating_add(T::DbWeight::get().reads(3_u64))
.saturating_add(T::DbWeight::get().writes(3_u64))
}
/// Storage: `MessageQueue::BookStateFor` (r:1 w:1)
/// Proof: `MessageQueue::BookStateFor` (`max_values`: None, `max_size`: Some(49), added: 2524, mode: `MaxEncodedLen`)
/// Storage: MessageQueue BookStateFor (r:1 w:1)
/// Proof: MessageQueue BookStateFor (max_values: None, max_size: Some(49), added: 2524, mode: MaxEncodedLen)
fn service_queue_base() -> Weight {
// Proof Size summary in bytes:
// Measured: `76`
// Estimated: `3514`
// Minimum execution time: 4_335_000 picoseconds.
Weight::from_parts(4_552_000, 3514)
// Minimum execution time: 4_467_000 picoseconds.
Weight::from_parts(4_655_000, 3514)
.saturating_add(T::DbWeight::get().reads(1_u64))
.saturating_add(T::DbWeight::get().writes(1_u64))
}
/// Storage: `MessageQueue::Pages` (r:1 w:1)
/// Proof: `MessageQueue::Pages` (`max_values`: None, `max_size`: Some(65584), added: 68059, mode: `MaxEncodedLen`)
/// Storage: MessageQueue Pages (r:1 w:1)
/// Proof: MessageQueue Pages (max_values: None, max_size: Some(65584), added: 68059, mode: MaxEncodedLen)
fn service_page_base_completion() -> Weight {
// Proof Size summary in bytes:
// Measured: `147`
// Estimated: `69049`
// Minimum execution time: 6_016_000 picoseconds.
Weight::from_parts(6_224_000, 69049)
// Minimum execution time: 6_103_000 picoseconds.
Weight::from_parts(6_254_000, 69049)
.saturating_add(T::DbWeight::get().reads(1_u64))
.saturating_add(T::DbWeight::get().writes(1_u64))
}
/// Storage: `MessageQueue::Pages` (r:1 w:1)
/// Proof: `MessageQueue::Pages` (`max_values`: None, `max_size`: Some(65584), added: 68059, mode: `MaxEncodedLen`)
/// Storage: MessageQueue Pages (r:1 w:1)
/// Proof: MessageQueue Pages (max_values: None, max_size: Some(65584), added: 68059, mode: MaxEncodedLen)
fn service_page_base_no_completion() -> Weight {
// Proof Size summary in bytes:
// Measured: `147`
// Estimated: `69049`
// Minimum execution time: 6_183_000 picoseconds.
Weight::from_parts(6_348_000, 69049)
// Minimum execution time: 6_320_000 picoseconds.
Weight::from_parts(6_565_000, 69049)
.saturating_add(T::DbWeight::get().reads(1_u64))
.saturating_add(T::DbWeight::get().writes(1_u64))
}
/// Storage: `MessageQueue::BookStateFor` (r:0 w:1)
/// Proof: `MessageQueue::BookStateFor` (`max_values`: None, `max_size`: Some(49), added: 2524, mode: `MaxEncodedLen`)
/// Storage: `MessageQueue::Pages` (r:0 w:1)
/// Proof: `MessageQueue::Pages` (`max_values`: None, `max_size`: Some(65584), added: 68059, mode: `MaxEncodedLen`)
fn service_page_item() -> Weight {
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `0`
// Minimum execution time: 112_864_000 picoseconds.
Weight::from_parts(114_269_000, 0)
.saturating_add(T::DbWeight::get().writes(2_u64))
// Minimum execution time: 66_062_000 picoseconds.
Weight::from_parts(66_371_000, 0)
}
/// Storage: `MessageQueue::ServiceHead` (r:1 w:1)
/// Proof: `MessageQueue::ServiceHead` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
/// Storage: `MessageQueue::BookStateFor` (r:1 w:0)
/// Proof: `MessageQueue::BookStateFor` (`max_values`: None, `max_size`: Some(49), added: 2524, mode: `MaxEncodedLen`)
/// Storage: MessageQueue ServiceHead (r:1 w:1)
/// Proof: MessageQueue ServiceHead (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
/// Storage: MessageQueue BookStateFor (r:1 w:0)
/// Proof: MessageQueue BookStateFor (max_values: None, max_size: Some(49), added: 2524, mode: MaxEncodedLen)
fn bump_service_head() -> Weight {
// Proof Size summary in bytes:
// Measured: `246`
// Measured: `174`
// Estimated: `3514`
// Minimum execution time: 6_665_000 picoseconds.
Weight::from_parts(7_108_000, 3514)
// Minimum execution time: 6_788_000 picoseconds.
Weight::from_parts(7_176_000, 3514)
.saturating_add(T::DbWeight::get().reads(2_u64))
.saturating_add(T::DbWeight::get().writes(1_u64))
}
/// Storage: `MessageQueue::BookStateFor` (r:1 w:1)
/// Proof: `MessageQueue::BookStateFor` (`max_values`: None, `max_size`: Some(49), added: 2524, mode: `MaxEncodedLen`)
/// Storage: `MessageQueue::Pages` (r:1 w:1)
/// Proof: `MessageQueue::Pages` (`max_values`: None, `max_size`: Some(65584), added: 68059, mode: `MaxEncodedLen`)
/// Storage: MessageQueue BookStateFor (r:1 w:1)
/// Proof: MessageQueue BookStateFor (max_values: None, max_size: Some(49), added: 2524, mode: MaxEncodedLen)
/// Storage: MessageQueue Pages (r:1 w:1)
/// Proof: MessageQueue Pages (max_values: None, max_size: Some(65584), added: 68059, mode: MaxEncodedLen)
fn reap_page() -> Weight {
// Proof Size summary in bytes:
// Measured: `65744`
// Estimated: `69049`
// Minimum execution time: 51_420_000 picoseconds.
Weight::from_parts(52_252_000, 69049)
// Minimum execution time: 52_865_000 picoseconds.
Weight::from_parts(54_398_000, 69049)
.saturating_add(T::DbWeight::get().reads(2_u64))
.saturating_add(T::DbWeight::get().writes(2_u64))
}
/// Storage: `MessageQueue::BookStateFor` (r:1 w:1)
/// Proof: `MessageQueue::BookStateFor` (`max_values`: None, `max_size`: Some(49), added: 2524, mode: `MaxEncodedLen`)
/// Storage: `MessageQueue::Pages` (r:1 w:1)
/// Proof: `MessageQueue::Pages` (`max_values`: None, `max_size`: Some(65584), added: 68059, mode: `MaxEncodedLen`)
/// Storage: MessageQueue BookStateFor (r:1 w:1)
/// Proof: MessageQueue BookStateFor (max_values: None, max_size: Some(49), added: 2524, mode: MaxEncodedLen)
/// Storage: MessageQueue Pages (r:1 w:1)
/// Proof: MessageQueue Pages (max_values: None, max_size: Some(65584), added: 68059, mode: MaxEncodedLen)
fn execute_overweight_page_removed() -> Weight {
// Proof Size summary in bytes:
// Measured: `65744`
// Estimated: `69049`
// Minimum execution time: 71_195_000 picoseconds.
Weight::from_parts(72_981_000, 69049)
// Minimum execution time: 69_168_000 picoseconds.
Weight::from_parts(70_560_000, 69049)
.saturating_add(T::DbWeight::get().reads(2_u64))
.saturating_add(T::DbWeight::get().writes(2_u64))
}
/// Storage: `MessageQueue::BookStateFor` (r:1 w:1)
/// Proof: `MessageQueue::BookStateFor` (`max_values`: None, `max_size`: Some(49), added: 2524, mode: `MaxEncodedLen`)
/// Storage: `MessageQueue::Pages` (r:1 w:1)
/// Proof: `MessageQueue::Pages` (`max_values`: None, `max_size`: Some(65584), added: 68059, mode: `MaxEncodedLen`)
/// Storage: MessageQueue BookStateFor (r:1 w:1)
/// Proof: MessageQueue BookStateFor (max_values: None, max_size: Some(49), added: 2524, mode: MaxEncodedLen)
/// Storage: MessageQueue Pages (r:1 w:1)
/// Proof: MessageQueue Pages (max_values: None, max_size: Some(65584), added: 68059, mode: MaxEncodedLen)
fn execute_overweight_page_updated() -> Weight {
// Proof Size summary in bytes:
// Measured: `65744`
// Estimated: `69049`
// Minimum execution time: 83_238_000 picoseconds.
Weight::from_parts(84_422_000, 69049)
// Minimum execution time: 80_947_000 picoseconds.
Weight::from_parts(82_715_000, 69049)
.saturating_add(T::DbWeight::get().reads(2_u64))
.saturating_add(T::DbWeight::get().writes(2_u64))
}
}
// For backwards compatibility and tests.
// For backwards compatibility and tests
impl WeightInfo for () {
/// Storage: `MessageQueue::ServiceHead` (r:1 w:0)
/// Proof: `MessageQueue::ServiceHead` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
/// Storage: `MessageQueue::BookStateFor` (r:2 w:2)
/// Proof: `MessageQueue::BookStateFor` (`max_values`: None, `max_size`: Some(49), added: 2524, mode: `MaxEncodedLen`)
/// Storage: MessageQueue ServiceHead (r:1 w:0)
/// Proof: MessageQueue ServiceHead (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
/// Storage: MessageQueue BookStateFor (r:2 w:2)
/// Proof: MessageQueue BookStateFor (max_values: None, max_size: Some(49), added: 2524, mode: MaxEncodedLen)
fn ready_ring_knit() -> Weight {
// Proof Size summary in bytes:
// Measured: `301`
// Measured: `267`
// Estimated: `6038`
// Minimum execution time: 11_563_000 picoseconds.
Weight::from_parts(11_956_000, 6038)
// Minimum execution time: 12_025_000 picoseconds.
Weight::from_parts(12_597_000, 6038)
.saturating_add(RocksDbWeight::get().reads(3_u64))
.saturating_add(RocksDbWeight::get().writes(2_u64))
}
/// Storage: `MessageQueue::BookStateFor` (r:2 w:2)
/// Proof: `MessageQueue::BookStateFor` (`max_values`: None, `max_size`: Some(49), added: 2524, mode: `MaxEncodedLen`)
/// Storage: `MessageQueue::ServiceHead` (r:1 w:1)
/// Proof: `MessageQueue::ServiceHead` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
/// Storage: MessageQueue BookStateFor (r:2 w:2)
/// Proof: MessageQueue BookStateFor (max_values: None, max_size: Some(49), added: 2524, mode: MaxEncodedLen)
/// Storage: MessageQueue ServiceHead (r:1 w:1)
/// Proof: MessageQueue ServiceHead (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
fn ready_ring_unknit() -> Weight {
// Proof Size summary in bytes:
// Measured: `301`
// Measured: `267`
// Estimated: `6038`
// Minimum execution time: 10_263_000 picoseconds.
Weight::from_parts(10_638_000, 6038)
// Minimum execution time: 11_563_000 picoseconds.
Weight::from_parts(11_785_000, 6038)
.saturating_add(RocksDbWeight::get().reads(3_u64))
.saturating_add(RocksDbWeight::get().writes(3_u64))
}
/// Storage: `MessageQueue::BookStateFor` (r:1 w:1)
/// Proof: `MessageQueue::BookStateFor` (`max_values`: None, `max_size`: Some(49), added: 2524, mode: `MaxEncodedLen`)
/// Storage: MessageQueue BookStateFor (r:1 w:1)
/// Proof: MessageQueue BookStateFor (max_values: None, max_size: Some(49), added: 2524, mode: MaxEncodedLen)
fn service_queue_base() -> Weight {
// Proof Size summary in bytes:
// Measured: `76`
// Estimated: `3514`
// Minimum execution time: 4_335_000 picoseconds.
Weight::from_parts(4_552_000, 3514)
// Minimum execution time: 4_467_000 picoseconds.
Weight::from_parts(4_655_000, 3514)
.saturating_add(RocksDbWeight::get().reads(1_u64))
.saturating_add(RocksDbWeight::get().writes(1_u64))
}
/// Storage: `MessageQueue::Pages` (r:1 w:1)
/// Proof: `MessageQueue::Pages` (`max_values`: None, `max_size`: Some(65584), added: 68059, mode: `MaxEncodedLen`)
/// Storage: MessageQueue Pages (r:1 w:1)
/// Proof: MessageQueue Pages (max_values: None, max_size: Some(65584), added: 68059, mode: MaxEncodedLen)
fn service_page_base_completion() -> Weight {
// Proof Size summary in bytes:
// Measured: `147`
// Estimated: `69049`
// Minimum execution time: 6_016_000 picoseconds.
Weight::from_parts(6_224_000, 69049)
// Minimum execution time: 6_103_000 picoseconds.
Weight::from_parts(6_254_000, 69049)
.saturating_add(RocksDbWeight::get().reads(1_u64))
.saturating_add(RocksDbWeight::get().writes(1_u64))
}
/// Storage: `MessageQueue::Pages` (r:1 w:1)
/// Proof: `MessageQueue::Pages` (`max_values`: None, `max_size`: Some(65584), added: 68059, mode: `MaxEncodedLen`)
/// Storage: MessageQueue Pages (r:1 w:1)
/// Proof: MessageQueue Pages (max_values: None, max_size: Some(65584), added: 68059, mode: MaxEncodedLen)
fn service_page_base_no_completion() -> Weight {
// Proof Size summary in bytes:
// Measured: `147`
// Estimated: `69049`
// Minimum execution time: 6_183_000 picoseconds.
Weight::from_parts(6_348_000, 69049)
// Minimum execution time: 6_320_000 picoseconds.
Weight::from_parts(6_565_000, 69049)
.saturating_add(RocksDbWeight::get().reads(1_u64))
.saturating_add(RocksDbWeight::get().writes(1_u64))
}
/// Storage: `MessageQueue::BookStateFor` (r:0 w:1)
/// Proof: `MessageQueue::BookStateFor` (`max_values`: None, `max_size`: Some(49), added: 2524, mode: `MaxEncodedLen`)
/// Storage: `MessageQueue::Pages` (r:0 w:1)
/// Proof: `MessageQueue::Pages` (`max_values`: None, `max_size`: Some(65584), added: 68059, mode: `MaxEncodedLen`)
fn service_page_item() -> Weight {
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `0`
// Minimum execution time: 112_864_000 picoseconds.
Weight::from_parts(114_269_000, 0)
.saturating_add(RocksDbWeight::get().writes(2_u64))
// Minimum execution time: 66_062_000 picoseconds.
Weight::from_parts(66_371_000, 0)
}
/// Storage: `MessageQueue::ServiceHead` (r:1 w:1)
/// Proof: `MessageQueue::ServiceHead` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
/// Storage: `MessageQueue::BookStateFor` (r:1 w:0)
/// Proof: `MessageQueue::BookStateFor` (`max_values`: None, `max_size`: Some(49), added: 2524, mode: `MaxEncodedLen`)
/// Storage: MessageQueue ServiceHead (r:1 w:1)
/// Proof: MessageQueue ServiceHead (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
/// Storage: MessageQueue BookStateFor (r:1 w:0)
/// Proof: MessageQueue BookStateFor (max_values: None, max_size: Some(49), added: 2524, mode: MaxEncodedLen)
fn bump_service_head() -> Weight {
// Proof Size summary in bytes:
// Measured: `246`
// Measured: `174`
// Estimated: `3514`
// Minimum execution time: 6_665_000 picoseconds.
Weight::from_parts(7_108_000, 3514)
// Minimum execution time: 6_788_000 picoseconds.
Weight::from_parts(7_176_000, 3514)
.saturating_add(RocksDbWeight::get().reads(2_u64))
.saturating_add(RocksDbWeight::get().writes(1_u64))
}
/// Storage: `MessageQueue::BookStateFor` (r:1 w:1)
/// Proof: `MessageQueue::BookStateFor` (`max_values`: None, `max_size`: Some(49), added: 2524, mode: `MaxEncodedLen`)
/// Storage: `MessageQueue::Pages` (r:1 w:1)
/// Proof: `MessageQueue::Pages` (`max_values`: None, `max_size`: Some(65584), added: 68059, mode: `MaxEncodedLen`)
/// Storage: MessageQueue BookStateFor (r:1 w:1)
/// Proof: MessageQueue BookStateFor (max_values: None, max_size: Some(49), added: 2524, mode: MaxEncodedLen)
/// Storage: MessageQueue Pages (r:1 w:1)
/// Proof: MessageQueue Pages (max_values: None, max_size: Some(65584), added: 68059, mode: MaxEncodedLen)
fn reap_page() -> Weight {
// Proof Size summary in bytes:
// Measured: `65744`
// Estimated: `69049`
// Minimum execution time: 51_420_000 picoseconds.
Weight::from_parts(52_252_000, 69049)
// Minimum execution time: 52_865_000 picoseconds.
Weight::from_parts(54_398_000, 69049)
.saturating_add(RocksDbWeight::get().reads(2_u64))
.saturating_add(RocksDbWeight::get().writes(2_u64))
}
/// Storage: `MessageQueue::BookStateFor` (r:1 w:1)
/// Proof: `MessageQueue::BookStateFor` (`max_values`: None, `max_size`: Some(49), added: 2524, mode: `MaxEncodedLen`)
/// Storage: `MessageQueue::Pages` (r:1 w:1)
/// Proof: `MessageQueue::Pages` (`max_values`: None, `max_size`: Some(65584), added: 68059, mode: `MaxEncodedLen`)
/// Storage: MessageQueue BookStateFor (r:1 w:1)
/// Proof: MessageQueue BookStateFor (max_values: None, max_size: Some(49), added: 2524, mode: MaxEncodedLen)
/// Storage: MessageQueue Pages (r:1 w:1)
/// Proof: MessageQueue Pages (max_values: None, max_size: Some(65584), added: 68059, mode: MaxEncodedLen)
fn execute_overweight_page_removed() -> Weight {
// Proof Size summary in bytes:
// Measured: `65744`
// Estimated: `69049`
// Minimum execution time: 71_195_000 picoseconds.
Weight::from_parts(72_981_000, 69049)
// Minimum execution time: 69_168_000 picoseconds.
Weight::from_parts(70_560_000, 69049)
.saturating_add(RocksDbWeight::get().reads(2_u64))
.saturating_add(RocksDbWeight::get().writes(2_u64))
}
/// Storage: `MessageQueue::BookStateFor` (r:1 w:1)
/// Proof: `MessageQueue::BookStateFor` (`max_values`: None, `max_size`: Some(49), added: 2524, mode: `MaxEncodedLen`)
/// Storage: `MessageQueue::Pages` (r:1 w:1)
/// Proof: `MessageQueue::Pages` (`max_values`: None, `max_size`: Some(65584), added: 68059, mode: `MaxEncodedLen`)
/// Storage: MessageQueue BookStateFor (r:1 w:1)
/// Proof: MessageQueue BookStateFor (max_values: None, max_size: Some(49), added: 2524, mode: MaxEncodedLen)
/// Storage: MessageQueue Pages (r:1 w:1)
/// Proof: MessageQueue Pages (max_values: None, max_size: Some(65584), added: 68059, mode: MaxEncodedLen)
fn execute_overweight_page_updated() -> Weight {
// Proof Size summary in bytes:
// Measured: `65744`
// Estimated: `69049`
// Minimum execution time: 83_238_000 picoseconds.
Weight::from_parts(84_422_000, 69049)
// Minimum execution time: 80_947_000 picoseconds.
Weight::from_parts(82_715_000, 69049)
.saturating_add(RocksDbWeight::get().reads(2_u64))
.saturating_add(RocksDbWeight::get().writes(2_u64))
}
+90 -93
View File
@@ -17,29 +17,26 @@
//! Autogenerated weights for `pallet_migrations`
//!
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0
//! DATE: 2024-03-01, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
//! DATE: 2023-12-04, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! WORST CASE MAP SIZE: `1000000`
//! HOSTNAME: `runner-bn-ce5rx-project-674-concurrent-0`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz`
//! HOSTNAME: `loud1`, CPU: `AMD EPYC 7282 16-Core Processor`
//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("dev")`, DB CACHE: `1024`
// Executed Command:
// ./target/production/substrate-node
// target/release/substrate-node
// benchmark
// pallet
// --chain=dev
// --steps=50
// --repeat=20
// --pallet=pallet_migrations
// --no-storage-info
// --no-median-slopes
// --no-min-squares
// --extrinsic=*
// --wasm-execution=compiled
// --heap-pages=4096
// --output=./substrate/frame/migrations/src/weights.rs
// --header=./substrate/HEADER-APACHE2
// --template=./substrate/.maintain/frame-weight-template.hbs
// --chain
// dev
// --pallet
// pallet-migrations
// --extrinsic
//
// --output
// weight.rs
// --template
// ../../polkadot-sdk/substrate/.maintain/frame-weight-template.hbs
#![cfg_attr(rustfmt, rustfmt_skip)]
#![allow(unused_parens)]
@@ -74,10 +71,10 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
/// Proof: UNKNOWN KEY `0x583359fe0e84d953a9dd84e8addb08a5` (r:1 w:0)
fn onboard_new_mbms() -> Weight {
// Proof Size summary in bytes:
// Measured: `276`
// Measured: `243`
// Estimated: `67035`
// Minimum execution time: 7_932_000 picoseconds.
Weight::from_parts(8_428_000, 67035)
// Minimum execution time: 13_980_000 picoseconds.
Weight::from_parts(14_290_000, 67035)
.saturating_add(T::DbWeight::get().reads(2_u64))
.saturating_add(T::DbWeight::get().writes(1_u64))
}
@@ -85,10 +82,10 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
/// Proof: `MultiBlockMigrations::Cursor` (`max_values`: Some(1), `max_size`: Some(65550), added: 66045, mode: `MaxEncodedLen`)
fn progress_mbms_none() -> Weight {
// Proof Size summary in bytes:
// Measured: `142`
// Measured: `109`
// Estimated: `67035`
// Minimum execution time: 2_229_000 picoseconds.
Weight::from_parts(2_329_000, 67035)
// Minimum execution time: 3_770_000 picoseconds.
Weight::from_parts(4_001_000, 67035)
.saturating_add(T::DbWeight::get().reads(1_u64))
}
/// Storage: UNKNOWN KEY `0x583359fe0e84d953a9dd84e8addb08a5` (r:1 w:0)
@@ -99,8 +96,8 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
// Proof Size summary in bytes:
// Measured: `134`
// Estimated: `3599`
// Minimum execution time: 6_051_000 picoseconds.
Weight::from_parts(6_483_000, 3599)
// Minimum execution time: 10_900_000 picoseconds.
Weight::from_parts(11_251_000, 3599)
.saturating_add(T::DbWeight::get().reads(1_u64))
.saturating_add(T::DbWeight::get().writes(1_u64))
}
@@ -110,10 +107,10 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
/// Proof: `MultiBlockMigrations::Historic` (`max_values`: None, `max_size`: Some(266), added: 2741, mode: `MaxEncodedLen`)
fn exec_migration_skipped_historic() -> Weight {
// Proof Size summary in bytes:
// Measured: `330`
// Estimated: `3795`
// Minimum execution time: 10_066_000 picoseconds.
Weight::from_parts(10_713_000, 3795)
// Measured: `297`
// Estimated: `3762`
// Minimum execution time: 17_891_000 picoseconds.
Weight::from_parts(18_501_000, 3762)
.saturating_add(T::DbWeight::get().reads(2_u64))
}
/// Storage: UNKNOWN KEY `0x583359fe0e84d953a9dd84e8addb08a5` (r:1 w:0)
@@ -122,10 +119,10 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
/// Proof: `MultiBlockMigrations::Historic` (`max_values`: None, `max_size`: Some(266), added: 2741, mode: `MaxEncodedLen`)
fn exec_migration_advance() -> Weight {
// Proof Size summary in bytes:
// Measured: `276`
// Estimated: `3741`
// Minimum execution time: 10_026_000 picoseconds.
Weight::from_parts(10_379_000, 3741)
// Measured: `243`
// Estimated: `3731`
// Minimum execution time: 18_271_000 picoseconds.
Weight::from_parts(18_740_000, 3731)
.saturating_add(T::DbWeight::get().reads(2_u64))
}
/// Storage: UNKNOWN KEY `0x583359fe0e84d953a9dd84e8addb08a5` (r:1 w:0)
@@ -134,10 +131,10 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
/// Proof: `MultiBlockMigrations::Historic` (`max_values`: None, `max_size`: Some(266), added: 2741, mode: `MaxEncodedLen`)
fn exec_migration_complete() -> Weight {
// Proof Size summary in bytes:
// Measured: `276`
// Estimated: `3741`
// Minimum execution time: 11_680_000 picoseconds.
Weight::from_parts(12_184_000, 3741)
// Measured: `243`
// Estimated: `3731`
// Minimum execution time: 21_241_000 picoseconds.
Weight::from_parts(21_911_000, 3731)
.saturating_add(T::DbWeight::get().reads(2_u64))
.saturating_add(T::DbWeight::get().writes(1_u64))
}
@@ -149,10 +146,10 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
/// Proof: `MultiBlockMigrations::Cursor` (`max_values`: Some(1), `max_size`: Some(65550), added: 66045, mode: `MaxEncodedLen`)
fn exec_migration_fail() -> Weight {
// Proof Size summary in bytes:
// Measured: `276`
// Estimated: `3741`
// Minimum execution time: 12_334_000 picoseconds.
Weight::from_parts(12_899_000, 3741)
// Measured: `243`
// Estimated: `3731`
// Minimum execution time: 22_740_000 picoseconds.
Weight::from_parts(23_231_000, 3731)
.saturating_add(T::DbWeight::get().reads(2_u64))
.saturating_add(T::DbWeight::get().writes(1_u64))
}
@@ -160,8 +157,8 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `0`
// Minimum execution time: 187_000 picoseconds.
Weight::from_parts(209_000, 0)
// Minimum execution time: 440_000 picoseconds.
Weight::from_parts(500_000, 0)
}
/// Storage: `MultiBlockMigrations::Cursor` (r:0 w:1)
/// Proof: `MultiBlockMigrations::Cursor` (`max_values`: Some(1), `max_size`: Some(65550), added: 66045, mode: `MaxEncodedLen`)
@@ -169,8 +166,8 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `0`
// Minimum execution time: 2_688_000 picoseconds.
Weight::from_parts(2_874_000, 0)
// Minimum execution time: 5_751_000 picoseconds.
Weight::from_parts(5_950_000, 0)
.saturating_add(T::DbWeight::get().writes(1_u64))
}
/// Storage: `MultiBlockMigrations::Cursor` (r:0 w:1)
@@ -179,8 +176,8 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `0`
// Minimum execution time: 3_108_000 picoseconds.
Weight::from_parts(3_263_000, 0)
// Minimum execution time: 6_350_000 picoseconds.
Weight::from_parts(6_560_000, 0)
.saturating_add(T::DbWeight::get().writes(1_u64))
}
/// Storage: `MultiBlockMigrations::Cursor` (r:1 w:0)
@@ -189,10 +186,10 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
/// Proof: UNKNOWN KEY `0x583359fe0e84d953a9dd84e8addb08a5` (r:1 w:0)
fn force_onboard_mbms() -> Weight {
// Proof Size summary in bytes:
// Measured: `251`
// Measured: `218`
// Estimated: `67035`
// Minimum execution time: 5_993_000 picoseconds.
Weight::from_parts(6_359_000, 67035)
// Minimum execution time: 11_121_000 picoseconds.
Weight::from_parts(11_530_000, 67035)
.saturating_add(T::DbWeight::get().reads(2_u64))
}
/// Storage: `MultiBlockMigrations::Historic` (r:256 w:256)
@@ -200,12 +197,12 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
/// The range of component `n` is `[0, 256]`.
fn clear_historic(n: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `1122 + n * (271 ±0)`
// Measured: `1089 + n * (271 ±0)`
// Estimated: `3834 + n * (2740 ±0)`
// Minimum execution time: 16_003_000 picoseconds.
Weight::from_parts(14_453_014, 3834)
// Standard Error: 3_305
.saturating_add(Weight::from_parts(1_325_026, 0).saturating_mul(n.into()))
// Minimum execution time: 21_891_000 picoseconds.
Weight::from_parts(18_572_306, 3834)
// Standard Error: 3_236
.saturating_add(Weight::from_parts(1_648_429, 0).saturating_mul(n.into()))
.saturating_add(T::DbWeight::get().reads(1_u64))
.saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(n.into())))
.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(n.into())))
@@ -221,10 +218,10 @@ impl WeightInfo for () {
/// Proof: UNKNOWN KEY `0x583359fe0e84d953a9dd84e8addb08a5` (r:1 w:0)
fn onboard_new_mbms() -> Weight {
// Proof Size summary in bytes:
// Measured: `276`
// Measured: `243`
// Estimated: `67035`
// Minimum execution time: 7_932_000 picoseconds.
Weight::from_parts(8_428_000, 67035)
// Minimum execution time: 13_980_000 picoseconds.
Weight::from_parts(14_290_000, 67035)
.saturating_add(RocksDbWeight::get().reads(2_u64))
.saturating_add(RocksDbWeight::get().writes(1_u64))
}
@@ -232,10 +229,10 @@ impl WeightInfo for () {
/// Proof: `MultiBlockMigrations::Cursor` (`max_values`: Some(1), `max_size`: Some(65550), added: 66045, mode: `MaxEncodedLen`)
fn progress_mbms_none() -> Weight {
// Proof Size summary in bytes:
// Measured: `142`
// Measured: `109`
// Estimated: `67035`
// Minimum execution time: 2_229_000 picoseconds.
Weight::from_parts(2_329_000, 67035)
// Minimum execution time: 3_770_000 picoseconds.
Weight::from_parts(4_001_000, 67035)
.saturating_add(RocksDbWeight::get().reads(1_u64))
}
/// Storage: UNKNOWN KEY `0x583359fe0e84d953a9dd84e8addb08a5` (r:1 w:0)
@@ -246,8 +243,8 @@ impl WeightInfo for () {
// Proof Size summary in bytes:
// Measured: `134`
// Estimated: `3599`
// Minimum execution time: 6_051_000 picoseconds.
Weight::from_parts(6_483_000, 3599)
// Minimum execution time: 10_900_000 picoseconds.
Weight::from_parts(11_251_000, 3599)
.saturating_add(RocksDbWeight::get().reads(1_u64))
.saturating_add(RocksDbWeight::get().writes(1_u64))
}
@@ -257,10 +254,10 @@ impl WeightInfo for () {
/// Proof: `MultiBlockMigrations::Historic` (`max_values`: None, `max_size`: Some(266), added: 2741, mode: `MaxEncodedLen`)
fn exec_migration_skipped_historic() -> Weight {
// Proof Size summary in bytes:
// Measured: `330`
// Estimated: `3795`
// Minimum execution time: 10_066_000 picoseconds.
Weight::from_parts(10_713_000, 3795)
// Measured: `297`
// Estimated: `3762`
// Minimum execution time: 17_891_000 picoseconds.
Weight::from_parts(18_501_000, 3762)
.saturating_add(RocksDbWeight::get().reads(2_u64))
}
/// Storage: UNKNOWN KEY `0x583359fe0e84d953a9dd84e8addb08a5` (r:1 w:0)
@@ -269,10 +266,10 @@ impl WeightInfo for () {
/// Proof: `MultiBlockMigrations::Historic` (`max_values`: None, `max_size`: Some(266), added: 2741, mode: `MaxEncodedLen`)
fn exec_migration_advance() -> Weight {
// Proof Size summary in bytes:
// Measured: `276`
// Estimated: `3741`
// Minimum execution time: 10_026_000 picoseconds.
Weight::from_parts(10_379_000, 3741)
// Measured: `243`
// Estimated: `3731`
// Minimum execution time: 18_271_000 picoseconds.
Weight::from_parts(18_740_000, 3731)
.saturating_add(RocksDbWeight::get().reads(2_u64))
}
/// Storage: UNKNOWN KEY `0x583359fe0e84d953a9dd84e8addb08a5` (r:1 w:0)
@@ -281,10 +278,10 @@ impl WeightInfo for () {
/// Proof: `MultiBlockMigrations::Historic` (`max_values`: None, `max_size`: Some(266), added: 2741, mode: `MaxEncodedLen`)
fn exec_migration_complete() -> Weight {
// Proof Size summary in bytes:
// Measured: `276`
// Estimated: `3741`
// Minimum execution time: 11_680_000 picoseconds.
Weight::from_parts(12_184_000, 3741)
// Measured: `243`
// Estimated: `3731`
// Minimum execution time: 21_241_000 picoseconds.
Weight::from_parts(21_911_000, 3731)
.saturating_add(RocksDbWeight::get().reads(2_u64))
.saturating_add(RocksDbWeight::get().writes(1_u64))
}
@@ -296,10 +293,10 @@ impl WeightInfo for () {
/// Proof: `MultiBlockMigrations::Cursor` (`max_values`: Some(1), `max_size`: Some(65550), added: 66045, mode: `MaxEncodedLen`)
fn exec_migration_fail() -> Weight {
// Proof Size summary in bytes:
// Measured: `276`
// Estimated: `3741`
// Minimum execution time: 12_334_000 picoseconds.
Weight::from_parts(12_899_000, 3741)
// Measured: `243`
// Estimated: `3731`
// Minimum execution time: 22_740_000 picoseconds.
Weight::from_parts(23_231_000, 3731)
.saturating_add(RocksDbWeight::get().reads(2_u64))
.saturating_add(RocksDbWeight::get().writes(1_u64))
}
@@ -307,8 +304,8 @@ impl WeightInfo for () {
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `0`
// Minimum execution time: 187_000 picoseconds.
Weight::from_parts(209_000, 0)
// Minimum execution time: 440_000 picoseconds.
Weight::from_parts(500_000, 0)
}
/// Storage: `MultiBlockMigrations::Cursor` (r:0 w:1)
/// Proof: `MultiBlockMigrations::Cursor` (`max_values`: Some(1), `max_size`: Some(65550), added: 66045, mode: `MaxEncodedLen`)
@@ -316,8 +313,8 @@ impl WeightInfo for () {
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `0`
// Minimum execution time: 2_688_000 picoseconds.
Weight::from_parts(2_874_000, 0)
// Minimum execution time: 5_751_000 picoseconds.
Weight::from_parts(5_950_000, 0)
.saturating_add(RocksDbWeight::get().writes(1_u64))
}
/// Storage: `MultiBlockMigrations::Cursor` (r:0 w:1)
@@ -326,8 +323,8 @@ impl WeightInfo for () {
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `0`
// Minimum execution time: 3_108_000 picoseconds.
Weight::from_parts(3_263_000, 0)
// Minimum execution time: 6_350_000 picoseconds.
Weight::from_parts(6_560_000, 0)
.saturating_add(RocksDbWeight::get().writes(1_u64))
}
/// Storage: `MultiBlockMigrations::Cursor` (r:1 w:0)
@@ -336,10 +333,10 @@ impl WeightInfo for () {
/// Proof: UNKNOWN KEY `0x583359fe0e84d953a9dd84e8addb08a5` (r:1 w:0)
fn force_onboard_mbms() -> Weight {
// Proof Size summary in bytes:
// Measured: `251`
// Measured: `218`
// Estimated: `67035`
// Minimum execution time: 5_993_000 picoseconds.
Weight::from_parts(6_359_000, 67035)
// Minimum execution time: 11_121_000 picoseconds.
Weight::from_parts(11_530_000, 67035)
.saturating_add(RocksDbWeight::get().reads(2_u64))
}
/// Storage: `MultiBlockMigrations::Historic` (r:256 w:256)
@@ -347,12 +344,12 @@ impl WeightInfo for () {
/// The range of component `n` is `[0, 256]`.
fn clear_historic(n: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `1122 + n * (271 ±0)`
// Measured: `1089 + n * (271 ±0)`
// Estimated: `3834 + n * (2740 ±0)`
// Minimum execution time: 16_003_000 picoseconds.
Weight::from_parts(14_453_014, 3834)
// Standard Error: 3_305
.saturating_add(Weight::from_parts(1_325_026, 0).saturating_mul(n.into()))
// Minimum execution time: 21_891_000 picoseconds.
Weight::from_parts(18_572_306, 3834)
// Standard Error: 3_236
.saturating_add(Weight::from_parts(1_648_429, 0).saturating_mul(n.into()))
.saturating_add(RocksDbWeight::get().reads(1_u64))
.saturating_add(RocksDbWeight::get().reads((1_u64).saturating_mul(n.into())))
.saturating_add(RocksDbWeight::get().writes((1_u64).saturating_mul(n.into())))
+113 -130
View File
@@ -15,16 +15,16 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//! Autogenerated weights for `pallet_multisig`
//! Autogenerated weights for pallet_multisig
//!
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0
//! DATE: 2024-03-01, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
//! DATE: 2023-06-16, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! WORST CASE MAP SIZE: `1000000`
//! HOSTNAME: `runner-bn-ce5rx-project-674-concurrent-0`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz`
//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("dev")`, DB CACHE: `1024`
//! HOSTNAME: `runner-e8ezs4ez-project-145-concurrent-0`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz`
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024
// Executed Command:
// ./target/production/substrate-node
// ./target/production/substrate
// benchmark
// pallet
// --chain=dev
@@ -35,11 +35,12 @@
// --no-median-slopes
// --no-min-squares
// --extrinsic=*
// --execution=wasm
// --wasm-execution=compiled
// --heap-pages=4096
// --output=./substrate/frame/multisig/src/weights.rs
// --header=./substrate/HEADER-APACHE2
// --template=./substrate/.maintain/frame-weight-template.hbs
// --output=./frame/multisig/src/weights.rs
// --header=./HEADER-APACHE2
// --template=./.maintain/frame-weight-template.hbs
#![cfg_attr(rustfmt, rustfmt_skip)]
#![allow(unused_parens)]
@@ -49,7 +50,7 @@
use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}};
use core::marker::PhantomData;
/// Weight functions needed for `pallet_multisig`.
/// Weight functions needed for pallet_multisig.
pub trait WeightInfo {
fn as_multi_threshold_1(z: u32, ) -> Weight;
fn as_multi_create(s: u32, z: u32, ) -> Weight;
@@ -60,238 +61,220 @@ pub trait WeightInfo {
fn cancel_as_multi(s: u32, ) -> Weight;
}
/// Weights for `pallet_multisig` using the Substrate node and recommended hardware.
/// Weights for pallet_multisig using the Substrate node and recommended hardware.
pub struct SubstrateWeight<T>(PhantomData<T>);
impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
/// Storage: `SafeMode::EnteredUntil` (r:1 w:0)
/// Proof: `SafeMode::EnteredUntil` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
/// Storage: `TxPause::PausedCalls` (r:1 w:0)
/// Proof: `TxPause::PausedCalls` (`max_values`: None, `max_size`: Some(532), added: 3007, mode: `MaxEncodedLen`)
/// The range of component `z` is `[0, 10000]`.
fn as_multi_threshold_1(z: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `145`
// Estimated: `3997`
// Minimum execution time: 18_893_000 picoseconds.
Weight::from_parts(20_278_307, 3997)
// Measured: `0`
// Estimated: `0`
// Minimum execution time: 13_452_000 picoseconds.
Weight::from_parts(14_425_869, 0)
// Standard Error: 4
.saturating_add(Weight::from_parts(488, 0).saturating_mul(z.into()))
.saturating_add(T::DbWeight::get().reads(2_u64))
.saturating_add(Weight::from_parts(493, 0).saturating_mul(z.into()))
}
/// Storage: `Multisig::Multisigs` (r:1 w:1)
/// Proof: `Multisig::Multisigs` (`max_values`: None, `max_size`: Some(3346), added: 5821, mode: `MaxEncodedLen`)
/// Storage: Multisig Multisigs (r:1 w:1)
/// Proof: Multisig Multisigs (max_values: None, max_size: Some(3346), added: 5821, mode: MaxEncodedLen)
/// 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 {
// Proof Size summary in bytes:
// Measured: `301 + s * (2 ±0)`
// Estimated: `6811`
// Minimum execution time: 39_478_000 picoseconds.
Weight::from_parts(29_195_487, 6811)
// Standard Error: 739
.saturating_add(Weight::from_parts(118_766, 0).saturating_mul(s.into()))
// Standard Error: 7
.saturating_add(Weight::from_parts(1_511, 0).saturating_mul(z.into()))
// Minimum execution time: 46_012_000 picoseconds.
Weight::from_parts(34_797_344, 6811)
// Standard Error: 833
.saturating_add(Weight::from_parts(127_671, 0).saturating_mul(s.into()))
// Standard Error: 8
.saturating_add(Weight::from_parts(1_498, 0).saturating_mul(z.into()))
.saturating_add(T::DbWeight::get().reads(1_u64))
.saturating_add(T::DbWeight::get().writes(1_u64))
}
/// Storage: `Multisig::Multisigs` (r:1 w:1)
/// Proof: `Multisig::Multisigs` (`max_values`: None, `max_size`: Some(3346), added: 5821, mode: `MaxEncodedLen`)
/// Storage: Multisig Multisigs (r:1 w:1)
/// Proof: Multisig Multisigs (max_values: None, max_size: Some(3346), added: 5821, mode: MaxEncodedLen)
/// 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 {
// Proof Size summary in bytes:
// Measured: `320`
// Estimated: `6811`
// Minimum execution time: 26_401_000 picoseconds.
Weight::from_parts(17_277_296, 6811)
// Standard Error: 492
.saturating_add(Weight::from_parts(101_763, 0).saturating_mul(s.into()))
// Standard Error: 4
.saturating_add(Weight::from_parts(1_486, 0).saturating_mul(z.into()))
// Minimum execution time: 29_834_000 picoseconds.
Weight::from_parts(20_189_154, 6811)
// Standard Error: 637
.saturating_add(Weight::from_parts(110_080, 0).saturating_mul(s.into()))
// Standard Error: 6
.saturating_add(Weight::from_parts(1_483, 0).saturating_mul(z.into()))
.saturating_add(T::DbWeight::get().reads(1_u64))
.saturating_add(T::DbWeight::get().writes(1_u64))
}
/// Storage: `Multisig::Multisigs` (r:1 w:1)
/// Proof: `Multisig::Multisigs` (`max_values`: None, `max_size`: Some(3346), added: 5821, mode: `MaxEncodedLen`)
/// Storage: `System::Account` (r:1 w:1)
/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
/// Storage: `SafeMode::EnteredUntil` (r:1 w:0)
/// Proof: `SafeMode::EnteredUntil` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
/// Storage: `TxPause::PausedCalls` (r:1 w:0)
/// Proof: `TxPause::PausedCalls` (`max_values`: None, `max_size`: Some(532), added: 3007, mode: `MaxEncodedLen`)
/// Storage: Multisig Multisigs (r:1 w:1)
/// Proof: Multisig Multisigs (max_values: None, max_size: Some(3346), added: 5821, mode: MaxEncodedLen)
/// Storage: System Account (r:1 w:1)
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
/// 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 {
// Proof Size summary in bytes:
// Measured: `571 + s * (33 ±0)`
// Measured: `426 + s * (33 ±0)`
// Estimated: `6811`
// Minimum execution time: 52_430_000 picoseconds.
Weight::from_parts(40_585_478, 6811)
// Standard Error: 1_240
.saturating_add(Weight::from_parts(161_405, 0).saturating_mul(s.into()))
// Minimum execution time: 51_464_000 picoseconds.
Weight::from_parts(39_246_644, 6811)
// Standard Error: 1_251
.saturating_add(Weight::from_parts(143_313, 0).saturating_mul(s.into()))
// Standard Error: 12
.saturating_add(Weight::from_parts(1_547, 0).saturating_mul(z.into()))
.saturating_add(T::DbWeight::get().reads(4_u64))
.saturating_add(Weight::from_parts(1_523, 0).saturating_mul(z.into()))
.saturating_add(T::DbWeight::get().reads(2_u64))
.saturating_add(T::DbWeight::get().writes(2_u64))
}
/// Storage: `Multisig::Multisigs` (r:1 w:1)
/// Proof: `Multisig::Multisigs` (`max_values`: None, `max_size`: Some(3346), added: 5821, mode: `MaxEncodedLen`)
/// Storage: Multisig Multisigs (r:1 w:1)
/// Proof: Multisig Multisigs (max_values: None, max_size: Some(3346), added: 5821, mode: MaxEncodedLen)
/// The range of component `s` is `[2, 100]`.
fn approve_as_multi_create(s: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `301 + s * (2 ±0)`
// Estimated: `6811`
// Minimum execution time: 27_797_000 picoseconds.
Weight::from_parts(29_064_584, 6811)
// Standard Error: 817
.saturating_add(Weight::from_parts(108_179, 0).saturating_mul(s.into()))
// Minimum execution time: 33_275_000 picoseconds.
Weight::from_parts(34_073_221, 6811)
// Standard Error: 1_163
.saturating_add(Weight::from_parts(124_815, 0).saturating_mul(s.into()))
.saturating_add(T::DbWeight::get().reads(1_u64))
.saturating_add(T::DbWeight::get().writes(1_u64))
}
/// Storage: `Multisig::Multisigs` (r:1 w:1)
/// Proof: `Multisig::Multisigs` (`max_values`: None, `max_size`: Some(3346), added: 5821, mode: `MaxEncodedLen`)
/// Storage: Multisig Multisigs (r:1 w:1)
/// Proof: Multisig Multisigs (max_values: None, max_size: Some(3346), added: 5821, mode: MaxEncodedLen)
/// The range of component `s` is `[2, 100]`.
fn approve_as_multi_approve(s: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `320`
// Estimated: `6811`
// Minimum execution time: 15_236_000 picoseconds.
Weight::from_parts(16_360_247, 6811)
// Standard Error: 584
.saturating_add(Weight::from_parts(94_917, 0).saturating_mul(s.into()))
// Minimum execution time: 18_411_000 picoseconds.
Weight::from_parts(19_431_787, 6811)
// Standard Error: 694
.saturating_add(Weight::from_parts(107_220, 0).saturating_mul(s.into()))
.saturating_add(T::DbWeight::get().reads(1_u64))
.saturating_add(T::DbWeight::get().writes(1_u64))
}
/// Storage: `Multisig::Multisigs` (r:1 w:1)
/// Proof: `Multisig::Multisigs` (`max_values`: None, `max_size`: Some(3346), added: 5821, mode: `MaxEncodedLen`)
/// Storage: Multisig Multisigs (r:1 w:1)
/// Proof: Multisig Multisigs (max_values: None, max_size: Some(3346), added: 5821, mode: MaxEncodedLen)
/// The range of component `s` is `[2, 100]`.
fn cancel_as_multi(s: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `492 + s * (1 ±0)`
// Estimated: `6811`
// Minimum execution time: 28_730_000 picoseconds.
Weight::from_parts(30_056_661, 6811)
// Standard Error: 792
.saturating_add(Weight::from_parts(108_212, 0).saturating_mul(s.into()))
// Minimum execution time: 33_985_000 picoseconds.
Weight::from_parts(35_547_970, 6811)
// Standard Error: 1_135
.saturating_add(Weight::from_parts(116_537, 0).saturating_mul(s.into()))
.saturating_add(T::DbWeight::get().reads(1_u64))
.saturating_add(T::DbWeight::get().writes(1_u64))
}
}
// For backwards compatibility and tests.
// For backwards compatibility and tests
impl WeightInfo for () {
/// Storage: `SafeMode::EnteredUntil` (r:1 w:0)
/// Proof: `SafeMode::EnteredUntil` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
/// Storage: `TxPause::PausedCalls` (r:1 w:0)
/// Proof: `TxPause::PausedCalls` (`max_values`: None, `max_size`: Some(532), added: 3007, mode: `MaxEncodedLen`)
/// The range of component `z` is `[0, 10000]`.
fn as_multi_threshold_1(z: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `145`
// Estimated: `3997`
// Minimum execution time: 18_893_000 picoseconds.
Weight::from_parts(20_278_307, 3997)
// Measured: `0`
// Estimated: `0`
// Minimum execution time: 13_452_000 picoseconds.
Weight::from_parts(14_425_869, 0)
// Standard Error: 4
.saturating_add(Weight::from_parts(488, 0).saturating_mul(z.into()))
.saturating_add(RocksDbWeight::get().reads(2_u64))
.saturating_add(Weight::from_parts(493, 0).saturating_mul(z.into()))
}
/// Storage: `Multisig::Multisigs` (r:1 w:1)
/// Proof: `Multisig::Multisigs` (`max_values`: None, `max_size`: Some(3346), added: 5821, mode: `MaxEncodedLen`)
/// Storage: Multisig Multisigs (r:1 w:1)
/// Proof: Multisig Multisigs (max_values: None, max_size: Some(3346), added: 5821, mode: MaxEncodedLen)
/// 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 {
// Proof Size summary in bytes:
// Measured: `301 + s * (2 ±0)`
// Estimated: `6811`
// Minimum execution time: 39_478_000 picoseconds.
Weight::from_parts(29_195_487, 6811)
// Standard Error: 739
.saturating_add(Weight::from_parts(118_766, 0).saturating_mul(s.into()))
// Standard Error: 7
.saturating_add(Weight::from_parts(1_511, 0).saturating_mul(z.into()))
// Minimum execution time: 46_012_000 picoseconds.
Weight::from_parts(34_797_344, 6811)
// Standard Error: 833
.saturating_add(Weight::from_parts(127_671, 0).saturating_mul(s.into()))
// Standard Error: 8
.saturating_add(Weight::from_parts(1_498, 0).saturating_mul(z.into()))
.saturating_add(RocksDbWeight::get().reads(1_u64))
.saturating_add(RocksDbWeight::get().writes(1_u64))
}
/// Storage: `Multisig::Multisigs` (r:1 w:1)
/// Proof: `Multisig::Multisigs` (`max_values`: None, `max_size`: Some(3346), added: 5821, mode: `MaxEncodedLen`)
/// Storage: Multisig Multisigs (r:1 w:1)
/// Proof: Multisig Multisigs (max_values: None, max_size: Some(3346), added: 5821, mode: MaxEncodedLen)
/// 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 {
// Proof Size summary in bytes:
// Measured: `320`
// Estimated: `6811`
// Minimum execution time: 26_401_000 picoseconds.
Weight::from_parts(17_277_296, 6811)
// Standard Error: 492
.saturating_add(Weight::from_parts(101_763, 0).saturating_mul(s.into()))
// Standard Error: 4
.saturating_add(Weight::from_parts(1_486, 0).saturating_mul(z.into()))
// Minimum execution time: 29_834_000 picoseconds.
Weight::from_parts(20_189_154, 6811)
// Standard Error: 637
.saturating_add(Weight::from_parts(110_080, 0).saturating_mul(s.into()))
// Standard Error: 6
.saturating_add(Weight::from_parts(1_483, 0).saturating_mul(z.into()))
.saturating_add(RocksDbWeight::get().reads(1_u64))
.saturating_add(RocksDbWeight::get().writes(1_u64))
}
/// Storage: `Multisig::Multisigs` (r:1 w:1)
/// Proof: `Multisig::Multisigs` (`max_values`: None, `max_size`: Some(3346), added: 5821, mode: `MaxEncodedLen`)
/// Storage: `System::Account` (r:1 w:1)
/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
/// Storage: `SafeMode::EnteredUntil` (r:1 w:0)
/// Proof: `SafeMode::EnteredUntil` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
/// Storage: `TxPause::PausedCalls` (r:1 w:0)
/// Proof: `TxPause::PausedCalls` (`max_values`: None, `max_size`: Some(532), added: 3007, mode: `MaxEncodedLen`)
/// Storage: Multisig Multisigs (r:1 w:1)
/// Proof: Multisig Multisigs (max_values: None, max_size: Some(3346), added: 5821, mode: MaxEncodedLen)
/// Storage: System Account (r:1 w:1)
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
/// 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 {
// Proof Size summary in bytes:
// Measured: `571 + s * (33 ±0)`
// Measured: `426 + s * (33 ±0)`
// Estimated: `6811`
// Minimum execution time: 52_430_000 picoseconds.
Weight::from_parts(40_585_478, 6811)
// Standard Error: 1_240
.saturating_add(Weight::from_parts(161_405, 0).saturating_mul(s.into()))
// Minimum execution time: 51_464_000 picoseconds.
Weight::from_parts(39_246_644, 6811)
// Standard Error: 1_251
.saturating_add(Weight::from_parts(143_313, 0).saturating_mul(s.into()))
// Standard Error: 12
.saturating_add(Weight::from_parts(1_547, 0).saturating_mul(z.into()))
.saturating_add(RocksDbWeight::get().reads(4_u64))
.saturating_add(Weight::from_parts(1_523, 0).saturating_mul(z.into()))
.saturating_add(RocksDbWeight::get().reads(2_u64))
.saturating_add(RocksDbWeight::get().writes(2_u64))
}
/// Storage: `Multisig::Multisigs` (r:1 w:1)
/// Proof: `Multisig::Multisigs` (`max_values`: None, `max_size`: Some(3346), added: 5821, mode: `MaxEncodedLen`)
/// Storage: Multisig Multisigs (r:1 w:1)
/// Proof: Multisig Multisigs (max_values: None, max_size: Some(3346), added: 5821, mode: MaxEncodedLen)
/// The range of component `s` is `[2, 100]`.
fn approve_as_multi_create(s: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `301 + s * (2 ±0)`
// Estimated: `6811`
// Minimum execution time: 27_797_000 picoseconds.
Weight::from_parts(29_064_584, 6811)
// Standard Error: 817
.saturating_add(Weight::from_parts(108_179, 0).saturating_mul(s.into()))
// Minimum execution time: 33_275_000 picoseconds.
Weight::from_parts(34_073_221, 6811)
// Standard Error: 1_163
.saturating_add(Weight::from_parts(124_815, 0).saturating_mul(s.into()))
.saturating_add(RocksDbWeight::get().reads(1_u64))
.saturating_add(RocksDbWeight::get().writes(1_u64))
}
/// Storage: `Multisig::Multisigs` (r:1 w:1)
/// Proof: `Multisig::Multisigs` (`max_values`: None, `max_size`: Some(3346), added: 5821, mode: `MaxEncodedLen`)
/// Storage: Multisig Multisigs (r:1 w:1)
/// Proof: Multisig Multisigs (max_values: None, max_size: Some(3346), added: 5821, mode: MaxEncodedLen)
/// The range of component `s` is `[2, 100]`.
fn approve_as_multi_approve(s: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `320`
// Estimated: `6811`
// Minimum execution time: 15_236_000 picoseconds.
Weight::from_parts(16_360_247, 6811)
// Standard Error: 584
.saturating_add(Weight::from_parts(94_917, 0).saturating_mul(s.into()))
// Minimum execution time: 18_411_000 picoseconds.
Weight::from_parts(19_431_787, 6811)
// Standard Error: 694
.saturating_add(Weight::from_parts(107_220, 0).saturating_mul(s.into()))
.saturating_add(RocksDbWeight::get().reads(1_u64))
.saturating_add(RocksDbWeight::get().writes(1_u64))
}
/// Storage: `Multisig::Multisigs` (r:1 w:1)
/// Proof: `Multisig::Multisigs` (`max_values`: None, `max_size`: Some(3346), added: 5821, mode: `MaxEncodedLen`)
/// Storage: Multisig Multisigs (r:1 w:1)
/// Proof: Multisig Multisigs (max_values: None, max_size: Some(3346), added: 5821, mode: MaxEncodedLen)
/// The range of component `s` is `[2, 100]`.
fn cancel_as_multi(s: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `492 + s * (1 ±0)`
// Estimated: `6811`
// Minimum execution time: 28_730_000 picoseconds.
Weight::from_parts(30_056_661, 6811)
// Standard Error: 792
.saturating_add(Weight::from_parts(108_212, 0).saturating_mul(s.into()))
// Minimum execution time: 33_985_000 picoseconds.
Weight::from_parts(35_547_970, 6811)
// Standard Error: 1_135
.saturating_add(Weight::from_parts(116_537, 0).saturating_mul(s.into()))
.saturating_add(RocksDbWeight::get().reads(1_u64))
.saturating_add(RocksDbWeight::get().writes(1_u64))
}
+105 -104
View File
@@ -15,16 +15,16 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//! Autogenerated weights for `pallet_nft_fractionalization`
//! Autogenerated weights for pallet_nft_fractionalization
//!
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0
//! DATE: 2024-03-01, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
//! DATE: 2023-06-16, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! WORST CASE MAP SIZE: `1000000`
//! HOSTNAME: `runner-bn-ce5rx-project-674-concurrent-0`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz`
//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("dev")`, DB CACHE: `1024`
//! HOSTNAME: `runner-e8ezs4ez-project-145-concurrent-0`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz`
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024
// Executed Command:
// ./target/production/substrate-node
// ./target/production/substrate
// benchmark
// pallet
// --chain=dev
@@ -35,11 +35,12 @@
// --no-median-slopes
// --no-min-squares
// --extrinsic=*
// --execution=wasm
// --wasm-execution=compiled
// --heap-pages=4096
// --output=./substrate/frame/nft-fractionalization/src/weights.rs
// --header=./substrate/HEADER-APACHE2
// --template=./substrate/.maintain/frame-weight-template.hbs
// --output=./frame/nft-fractionalization/src/weights.rs
// --header=./HEADER-APACHE2
// --template=./.maintain/frame-weight-template.hbs
#![cfg_attr(rustfmt, rustfmt_skip)]
#![allow(unused_parens)]
@@ -49,136 +50,136 @@
use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}};
use core::marker::PhantomData;
/// Weight functions needed for `pallet_nft_fractionalization`.
/// Weight functions needed for pallet_nft_fractionalization.
pub trait WeightInfo {
fn fractionalize() -> Weight;
fn unify() -> Weight;
}
/// Weights for `pallet_nft_fractionalization` using the Substrate node and recommended hardware.
/// Weights for pallet_nft_fractionalization using the Substrate node and recommended hardware.
pub struct SubstrateWeight<T>(PhantomData<T>);
impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
/// Storage: `Nfts::Item` (r:1 w:0)
/// Proof: `Nfts::Item` (`max_values`: None, `max_size`: Some(861), added: 3336, mode: `MaxEncodedLen`)
/// Storage: `Balances::Holds` (r:1 w:1)
/// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(193), added: 2668, mode: `MaxEncodedLen`)
/// Storage: `Nfts::Attribute` (r:1 w:1)
/// Proof: `Nfts::Attribute` (`max_values`: None, `max_size`: Some(479), added: 2954, mode: `MaxEncodedLen`)
/// Storage: `Nfts::Collection` (r:1 w:1)
/// Proof: `Nfts::Collection` (`max_values`: None, `max_size`: Some(84), added: 2559, mode: `MaxEncodedLen`)
/// Storage: `Assets::Asset` (r:1 w:1)
/// Proof: `Assets::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`)
/// Storage: `Assets::Account` (r:1 w:1)
/// Proof: `Assets::Account` (`max_values`: None, `max_size`: Some(134), added: 2609, mode: `MaxEncodedLen`)
/// Storage: `System::Account` (r:1 w:1)
/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
/// Storage: `Assets::Metadata` (r:1 w:1)
/// Proof: `Assets::Metadata` (`max_values`: None, `max_size`: Some(140), added: 2615, mode: `MaxEncodedLen`)
/// Storage: `NftFractionalization::NftToAsset` (r:0 w:1)
/// Proof: `NftFractionalization::NftToAsset` (`max_values`: None, `max_size`: Some(92), added: 2567, mode: `MaxEncodedLen`)
/// Storage: Nfts Item (r:1 w:0)
/// Proof: Nfts Item (max_values: None, max_size: Some(861), added: 3336, mode: MaxEncodedLen)
/// Storage: Balances Holds (r:1 w:1)
/// Proof: Balances Holds (max_values: None, max_size: Some(85), added: 2560, mode: MaxEncodedLen)
/// Storage: Nfts Collection (r:1 w:1)
/// Proof: Nfts Collection (max_values: None, max_size: Some(84), added: 2559, mode: MaxEncodedLen)
/// Storage: Nfts Attribute (r:1 w:1)
/// Proof: Nfts Attribute (max_values: None, max_size: Some(446), added: 2921, mode: MaxEncodedLen)
/// Storage: Assets Asset (r:1 w:1)
/// Proof: Assets Asset (max_values: None, max_size: Some(210), added: 2685, mode: MaxEncodedLen)
/// Storage: Assets Account (r:1 w:1)
/// Proof: Assets Account (max_values: None, max_size: Some(134), added: 2609, mode: MaxEncodedLen)
/// Storage: System Account (r:1 w:1)
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
/// Storage: Assets Metadata (r:1 w:1)
/// Proof: Assets Metadata (max_values: None, max_size: Some(140), added: 2615, mode: MaxEncodedLen)
/// Storage: NftFractionalization NftToAsset (r:0 w:1)
/// Proof: NftFractionalization NftToAsset (max_values: None, max_size: Some(92), added: 2567, mode: MaxEncodedLen)
fn fractionalize() -> Weight {
// Proof Size summary in bytes:
// Measured: `609`
// Estimated: `4326`
// Minimum execution time: 164_764_000 picoseconds.
Weight::from_parts(168_243_000, 4326)
// Minimum execution time: 187_416_000 picoseconds.
Weight::from_parts(191_131_000, 4326)
.saturating_add(T::DbWeight::get().reads(8_u64))
.saturating_add(T::DbWeight::get().writes(8_u64))
}
/// Storage: `NftFractionalization::NftToAsset` (r:1 w:1)
/// Proof: `NftFractionalization::NftToAsset` (`max_values`: None, `max_size`: Some(92), added: 2567, mode: `MaxEncodedLen`)
/// Storage: `Assets::Asset` (r:1 w:1)
/// Proof: `Assets::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`)
/// Storage: `Assets::Account` (r:1 w:1)
/// Proof: `Assets::Account` (`max_values`: None, `max_size`: Some(134), added: 2609, mode: `MaxEncodedLen`)
/// Storage: `Nfts::Attribute` (r:1 w:1)
/// Proof: `Nfts::Attribute` (`max_values`: None, `max_size`: Some(479), added: 2954, mode: `MaxEncodedLen`)
/// Storage: `Nfts::Collection` (r:1 w:1)
/// Proof: `Nfts::Collection` (`max_values`: None, `max_size`: Some(84), added: 2559, mode: `MaxEncodedLen`)
/// Storage: `Nfts::CollectionConfigOf` (r:1 w:0)
/// Proof: `Nfts::CollectionConfigOf` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`)
/// Storage: `Nfts::ItemConfigOf` (r:1 w:0)
/// Proof: `Nfts::ItemConfigOf` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
/// Storage: `Nfts::Item` (r:1 w:1)
/// Proof: `Nfts::Item` (`max_values`: None, `max_size`: Some(861), added: 3336, mode: `MaxEncodedLen`)
/// Storage: `Balances::Holds` (r:1 w:1)
/// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(193), added: 2668, mode: `MaxEncodedLen`)
/// Storage: `Nfts::Account` (r:0 w:1)
/// Proof: `Nfts::Account` (`max_values`: None, `max_size`: Some(88), added: 2563, mode: `MaxEncodedLen`)
/// Storage: `Nfts::ItemPriceOf` (r:0 w:1)
/// Proof: `Nfts::ItemPriceOf` (`max_values`: None, `max_size`: Some(89), added: 2564, mode: `MaxEncodedLen`)
/// Storage: `Nfts::PendingSwapOf` (r:0 w:1)
/// Proof: `Nfts::PendingSwapOf` (`max_values`: None, `max_size`: Some(71), added: 2546, mode: `MaxEncodedLen`)
/// Storage: NftFractionalization NftToAsset (r:1 w:1)
/// Proof: NftFractionalization NftToAsset (max_values: None, max_size: Some(92), added: 2567, mode: MaxEncodedLen)
/// Storage: Assets Asset (r:1 w:1)
/// Proof: Assets Asset (max_values: None, max_size: Some(210), added: 2685, mode: MaxEncodedLen)
/// Storage: Assets Account (r:1 w:1)
/// Proof: Assets Account (max_values: None, max_size: Some(134), added: 2609, mode: MaxEncodedLen)
/// Storage: Nfts Attribute (r:1 w:1)
/// Proof: Nfts Attribute (max_values: None, max_size: Some(446), added: 2921, mode: MaxEncodedLen)
/// Storage: Nfts Collection (r:1 w:1)
/// Proof: Nfts Collection (max_values: None, max_size: Some(84), added: 2559, mode: MaxEncodedLen)
/// Storage: Nfts CollectionConfigOf (r:1 w:0)
/// Proof: Nfts CollectionConfigOf (max_values: None, max_size: Some(73), added: 2548, mode: MaxEncodedLen)
/// Storage: Nfts ItemConfigOf (r:1 w:0)
/// Proof: Nfts ItemConfigOf (max_values: None, max_size: Some(48), added: 2523, mode: MaxEncodedLen)
/// Storage: Nfts Item (r:1 w:1)
/// Proof: Nfts Item (max_values: None, max_size: Some(861), added: 3336, mode: MaxEncodedLen)
/// Storage: Balances Holds (r:1 w:1)
/// Proof: Balances Holds (max_values: None, max_size: Some(85), added: 2560, mode: MaxEncodedLen)
/// Storage: Nfts Account (r:0 w:1)
/// Proof: Nfts Account (max_values: None, max_size: Some(88), added: 2563, mode: MaxEncodedLen)
/// Storage: Nfts ItemPriceOf (r:0 w:1)
/// Proof: Nfts ItemPriceOf (max_values: None, max_size: Some(89), added: 2564, mode: MaxEncodedLen)
/// Storage: Nfts PendingSwapOf (r:0 w:1)
/// Proof: Nfts PendingSwapOf (max_values: None, max_size: Some(71), added: 2546, mode: MaxEncodedLen)
fn unify() -> Weight {
// Proof Size summary in bytes:
// Measured: `1422`
// Estimated: `4326`
// Minimum execution time: 120_036_000 picoseconds.
Weight::from_parts(123_550_000, 4326)
// Minimum execution time: 134_159_000 picoseconds.
Weight::from_parts(136_621_000, 4326)
.saturating_add(T::DbWeight::get().reads(9_u64))
.saturating_add(T::DbWeight::get().writes(10_u64))
}
}
// For backwards compatibility and tests.
// For backwards compatibility and tests
impl WeightInfo for () {
/// Storage: `Nfts::Item` (r:1 w:0)
/// Proof: `Nfts::Item` (`max_values`: None, `max_size`: Some(861), added: 3336, mode: `MaxEncodedLen`)
/// Storage: `Balances::Holds` (r:1 w:1)
/// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(193), added: 2668, mode: `MaxEncodedLen`)
/// Storage: `Nfts::Attribute` (r:1 w:1)
/// Proof: `Nfts::Attribute` (`max_values`: None, `max_size`: Some(479), added: 2954, mode: `MaxEncodedLen`)
/// Storage: `Nfts::Collection` (r:1 w:1)
/// Proof: `Nfts::Collection` (`max_values`: None, `max_size`: Some(84), added: 2559, mode: `MaxEncodedLen`)
/// Storage: `Assets::Asset` (r:1 w:1)
/// Proof: `Assets::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`)
/// Storage: `Assets::Account` (r:1 w:1)
/// Proof: `Assets::Account` (`max_values`: None, `max_size`: Some(134), added: 2609, mode: `MaxEncodedLen`)
/// Storage: `System::Account` (r:1 w:1)
/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
/// Storage: `Assets::Metadata` (r:1 w:1)
/// Proof: `Assets::Metadata` (`max_values`: None, `max_size`: Some(140), added: 2615, mode: `MaxEncodedLen`)
/// Storage: `NftFractionalization::NftToAsset` (r:0 w:1)
/// Proof: `NftFractionalization::NftToAsset` (`max_values`: None, `max_size`: Some(92), added: 2567, mode: `MaxEncodedLen`)
/// Storage: Nfts Item (r:1 w:0)
/// Proof: Nfts Item (max_values: None, max_size: Some(861), added: 3336, mode: MaxEncodedLen)
/// Storage: Balances Holds (r:1 w:1)
/// Proof: Balances Holds (max_values: None, max_size: Some(85), added: 2560, mode: MaxEncodedLen)
/// Storage: Nfts Collection (r:1 w:1)
/// Proof: Nfts Collection (max_values: None, max_size: Some(84), added: 2559, mode: MaxEncodedLen)
/// Storage: Nfts Attribute (r:1 w:1)
/// Proof: Nfts Attribute (max_values: None, max_size: Some(446), added: 2921, mode: MaxEncodedLen)
/// Storage: Assets Asset (r:1 w:1)
/// Proof: Assets Asset (max_values: None, max_size: Some(210), added: 2685, mode: MaxEncodedLen)
/// Storage: Assets Account (r:1 w:1)
/// Proof: Assets Account (max_values: None, max_size: Some(134), added: 2609, mode: MaxEncodedLen)
/// Storage: System Account (r:1 w:1)
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
/// Storage: Assets Metadata (r:1 w:1)
/// Proof: Assets Metadata (max_values: None, max_size: Some(140), added: 2615, mode: MaxEncodedLen)
/// Storage: NftFractionalization NftToAsset (r:0 w:1)
/// Proof: NftFractionalization NftToAsset (max_values: None, max_size: Some(92), added: 2567, mode: MaxEncodedLen)
fn fractionalize() -> Weight {
// Proof Size summary in bytes:
// Measured: `609`
// Estimated: `4326`
// Minimum execution time: 164_764_000 picoseconds.
Weight::from_parts(168_243_000, 4326)
// Minimum execution time: 187_416_000 picoseconds.
Weight::from_parts(191_131_000, 4326)
.saturating_add(RocksDbWeight::get().reads(8_u64))
.saturating_add(RocksDbWeight::get().writes(8_u64))
}
/// Storage: `NftFractionalization::NftToAsset` (r:1 w:1)
/// Proof: `NftFractionalization::NftToAsset` (`max_values`: None, `max_size`: Some(92), added: 2567, mode: `MaxEncodedLen`)
/// Storage: `Assets::Asset` (r:1 w:1)
/// Proof: `Assets::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`)
/// Storage: `Assets::Account` (r:1 w:1)
/// Proof: `Assets::Account` (`max_values`: None, `max_size`: Some(134), added: 2609, mode: `MaxEncodedLen`)
/// Storage: `Nfts::Attribute` (r:1 w:1)
/// Proof: `Nfts::Attribute` (`max_values`: None, `max_size`: Some(479), added: 2954, mode: `MaxEncodedLen`)
/// Storage: `Nfts::Collection` (r:1 w:1)
/// Proof: `Nfts::Collection` (`max_values`: None, `max_size`: Some(84), added: 2559, mode: `MaxEncodedLen`)
/// Storage: `Nfts::CollectionConfigOf` (r:1 w:0)
/// Proof: `Nfts::CollectionConfigOf` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`)
/// Storage: `Nfts::ItemConfigOf` (r:1 w:0)
/// Proof: `Nfts::ItemConfigOf` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
/// Storage: `Nfts::Item` (r:1 w:1)
/// Proof: `Nfts::Item` (`max_values`: None, `max_size`: Some(861), added: 3336, mode: `MaxEncodedLen`)
/// Storage: `Balances::Holds` (r:1 w:1)
/// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(193), added: 2668, mode: `MaxEncodedLen`)
/// Storage: `Nfts::Account` (r:0 w:1)
/// Proof: `Nfts::Account` (`max_values`: None, `max_size`: Some(88), added: 2563, mode: `MaxEncodedLen`)
/// Storage: `Nfts::ItemPriceOf` (r:0 w:1)
/// Proof: `Nfts::ItemPriceOf` (`max_values`: None, `max_size`: Some(89), added: 2564, mode: `MaxEncodedLen`)
/// Storage: `Nfts::PendingSwapOf` (r:0 w:1)
/// Proof: `Nfts::PendingSwapOf` (`max_values`: None, `max_size`: Some(71), added: 2546, mode: `MaxEncodedLen`)
/// Storage: NftFractionalization NftToAsset (r:1 w:1)
/// Proof: NftFractionalization NftToAsset (max_values: None, max_size: Some(92), added: 2567, mode: MaxEncodedLen)
/// Storage: Assets Asset (r:1 w:1)
/// Proof: Assets Asset (max_values: None, max_size: Some(210), added: 2685, mode: MaxEncodedLen)
/// Storage: Assets Account (r:1 w:1)
/// Proof: Assets Account (max_values: None, max_size: Some(134), added: 2609, mode: MaxEncodedLen)
/// Storage: Nfts Attribute (r:1 w:1)
/// Proof: Nfts Attribute (max_values: None, max_size: Some(446), added: 2921, mode: MaxEncodedLen)
/// Storage: Nfts Collection (r:1 w:1)
/// Proof: Nfts Collection (max_values: None, max_size: Some(84), added: 2559, mode: MaxEncodedLen)
/// Storage: Nfts CollectionConfigOf (r:1 w:0)
/// Proof: Nfts CollectionConfigOf (max_values: None, max_size: Some(73), added: 2548, mode: MaxEncodedLen)
/// Storage: Nfts ItemConfigOf (r:1 w:0)
/// Proof: Nfts ItemConfigOf (max_values: None, max_size: Some(48), added: 2523, mode: MaxEncodedLen)
/// Storage: Nfts Item (r:1 w:1)
/// Proof: Nfts Item (max_values: None, max_size: Some(861), added: 3336, mode: MaxEncodedLen)
/// Storage: Balances Holds (r:1 w:1)
/// Proof: Balances Holds (max_values: None, max_size: Some(85), added: 2560, mode: MaxEncodedLen)
/// Storage: Nfts Account (r:0 w:1)
/// Proof: Nfts Account (max_values: None, max_size: Some(88), added: 2563, mode: MaxEncodedLen)
/// Storage: Nfts ItemPriceOf (r:0 w:1)
/// Proof: Nfts ItemPriceOf (max_values: None, max_size: Some(89), added: 2564, mode: MaxEncodedLen)
/// Storage: Nfts PendingSwapOf (r:0 w:1)
/// Proof: Nfts PendingSwapOf (max_values: None, max_size: Some(71), added: 2546, mode: MaxEncodedLen)
fn unify() -> Weight {
// Proof Size summary in bytes:
// Measured: `1422`
// Estimated: `4326`
// Minimum execution time: 120_036_000 picoseconds.
Weight::from_parts(123_550_000, 4326)
// Minimum execution time: 134_159_000 picoseconds.
Weight::from_parts(136_621_000, 4326)
.saturating_add(RocksDbWeight::get().reads(9_u64))
.saturating_add(RocksDbWeight::get().writes(10_u64))
}
+834 -842
View File
File diff suppressed because it is too large Load Diff
+215 -214
View File
@@ -15,16 +15,16 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//! Autogenerated weights for `pallet_nis`
//! Autogenerated weights for pallet_nis
//!
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0
//! DATE: 2024-03-01, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
//! DATE: 2023-06-16, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! WORST CASE MAP SIZE: `1000000`
//! HOSTNAME: `runner-bn-ce5rx-project-674-concurrent-0`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz`
//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("dev")`, DB CACHE: `1024`
//! HOSTNAME: `runner-e8ezs4ez-project-145-concurrent-0`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz`
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024
// Executed Command:
// ./target/production/substrate-node
// ./target/production/substrate
// benchmark
// pallet
// --chain=dev
@@ -35,11 +35,12 @@
// --no-median-slopes
// --no-min-squares
// --extrinsic=*
// --execution=wasm
// --wasm-execution=compiled
// --heap-pages=4096
// --output=./substrate/frame/nis/src/weights.rs
// --header=./substrate/HEADER-APACHE2
// --template=./substrate/.maintain/frame-weight-template.hbs
// --output=./frame/nis/src/weights.rs
// --header=./HEADER-APACHE2
// --template=./.maintain/frame-weight-template.hbs
#![cfg_attr(rustfmt, rustfmt_skip)]
#![allow(unused_parens)]
@@ -49,7 +50,7 @@
use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}};
use core::marker::PhantomData;
/// Weight functions needed for `pallet_nis`.
/// Weight functions needed for pallet_nis.
pub trait WeightInfo {
fn place_bid(l: u32, ) -> Weight;
fn place_bid_max() -> Weight;
@@ -64,367 +65,367 @@ pub trait WeightInfo {
fn process_bid() -> Weight;
}
/// Weights for `pallet_nis` using the Substrate node and recommended hardware.
/// Weights for pallet_nis using the Substrate node and recommended hardware.
pub struct SubstrateWeight<T>(PhantomData<T>);
impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
/// Storage: `Nis::Queues` (r:1 w:1)
/// Proof: `Nis::Queues` (`max_values`: None, `max_size`: Some(48022), added: 50497, mode: `MaxEncodedLen`)
/// Storage: `Balances::Holds` (r:1 w:1)
/// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(193), added: 2668, mode: `MaxEncodedLen`)
/// Storage: `Nis::QueueTotals` (r:1 w:1)
/// Proof: `Nis::QueueTotals` (`max_values`: Some(1), `max_size`: Some(6002), added: 6497, mode: `MaxEncodedLen`)
/// Storage: Nis Queues (r:1 w:1)
/// Proof: Nis Queues (max_values: None, max_size: Some(48022), added: 50497, mode: MaxEncodedLen)
/// Storage: Balances Holds (r:1 w:1)
/// Proof: Balances Holds (max_values: None, max_size: Some(85), added: 2560, mode: MaxEncodedLen)
/// Storage: Nis QueueTotals (r:1 w:1)
/// Proof: Nis QueueTotals (max_values: Some(1), max_size: Some(6002), added: 6497, mode: MaxEncodedLen)
/// The range of component `l` is `[0, 999]`.
fn place_bid(l: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `6176 + l * (48 ±0)`
// Estimated: `51487`
// Minimum execution time: 47_908_000 picoseconds.
Weight::from_parts(50_096_676, 51487)
// Standard Error: 208
.saturating_add(Weight::from_parts(41_318, 0).saturating_mul(l.into()))
// Minimum execution time: 49_410_000 picoseconds.
Weight::from_parts(57_832_282, 51487)
// Standard Error: 288
.saturating_add(Weight::from_parts(51_621, 0).saturating_mul(l.into()))
.saturating_add(T::DbWeight::get().reads(3_u64))
.saturating_add(T::DbWeight::get().writes(3_u64))
}
/// Storage: `Nis::Queues` (r:1 w:1)
/// Proof: `Nis::Queues` (`max_values`: None, `max_size`: Some(48022), added: 50497, mode: `MaxEncodedLen`)
/// Storage: `Balances::Holds` (r:1 w:1)
/// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(193), added: 2668, mode: `MaxEncodedLen`)
/// Storage: `Nis::QueueTotals` (r:1 w:1)
/// Proof: `Nis::QueueTotals` (`max_values`: Some(1), `max_size`: Some(6002), added: 6497, mode: `MaxEncodedLen`)
/// Storage: Nis Queues (r:1 w:1)
/// Proof: Nis Queues (max_values: None, max_size: Some(48022), added: 50497, mode: MaxEncodedLen)
/// Storage: Balances Holds (r:1 w:1)
/// Proof: Balances Holds (max_values: None, max_size: Some(85), added: 2560, mode: MaxEncodedLen)
/// Storage: Nis QueueTotals (r:1 w:1)
/// Proof: Nis QueueTotals (max_values: Some(1), max_size: Some(6002), added: 6497, mode: MaxEncodedLen)
fn place_bid_max() -> Weight {
// Proof Size summary in bytes:
// Measured: `54178`
// Estimated: `51487`
// Minimum execution time: 100_836_000 picoseconds.
Weight::from_parts(102_497_000, 51487)
// Minimum execution time: 119_696_000 picoseconds.
Weight::from_parts(121_838_000, 51487)
.saturating_add(T::DbWeight::get().reads(3_u64))
.saturating_add(T::DbWeight::get().writes(3_u64))
}
/// Storage: `Nis::Queues` (r:1 w:1)
/// Proof: `Nis::Queues` (`max_values`: None, `max_size`: Some(48022), added: 50497, mode: `MaxEncodedLen`)
/// Storage: `Balances::Holds` (r:1 w:1)
/// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(193), added: 2668, mode: `MaxEncodedLen`)
/// Storage: `Nis::QueueTotals` (r:1 w:1)
/// Proof: `Nis::QueueTotals` (`max_values`: Some(1), `max_size`: Some(6002), added: 6497, mode: `MaxEncodedLen`)
/// Storage: Nis Queues (r:1 w:1)
/// Proof: Nis Queues (max_values: None, max_size: Some(48022), added: 50497, mode: MaxEncodedLen)
/// Storage: Balances Holds (r:1 w:1)
/// Proof: Balances Holds (max_values: None, max_size: Some(85), added: 2560, mode: MaxEncodedLen)
/// Storage: Nis QueueTotals (r:1 w:1)
/// Proof: Nis QueueTotals (max_values: Some(1), max_size: Some(6002), added: 6497, mode: MaxEncodedLen)
/// The range of component `l` is `[1, 1000]`.
fn retract_bid(l: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `6176 + l * (48 ±0)`
// Estimated: `51487`
// Minimum execution time: 45_830_000 picoseconds.
Weight::from_parts(46_667_676, 51487)
// Standard Error: 130
.saturating_add(Weight::from_parts(33_007, 0).saturating_mul(l.into()))
// Minimum execution time: 50_843_000 picoseconds.
Weight::from_parts(54_237_365, 51487)
// Standard Error: 243
.saturating_add(Weight::from_parts(67_732, 0).saturating_mul(l.into()))
.saturating_add(T::DbWeight::get().reads(3_u64))
.saturating_add(T::DbWeight::get().writes(3_u64))
}
/// Storage: `Nis::Summary` (r:1 w:0)
/// Proof: `Nis::Summary` (`max_values`: Some(1), `max_size`: Some(40), added: 535, mode: `MaxEncodedLen`)
/// Storage: `System::Account` (r:1 w:1)
/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
/// Storage: Nis Summary (r:1 w:0)
/// Proof: Nis Summary (max_values: Some(1), max_size: Some(40), added: 535, mode: MaxEncodedLen)
/// Storage: System Account (r:1 w:1)
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
fn fund_deficit() -> Weight {
// Proof Size summary in bytes:
// Measured: `191`
// Estimated: `3593`
// Minimum execution time: 30_440_000 picoseconds.
Weight::from_parts(31_240_000, 3593)
// Minimum execution time: 40_752_000 picoseconds.
Weight::from_parts(41_899_000, 3593)
.saturating_add(T::DbWeight::get().reads(2_u64))
.saturating_add(T::DbWeight::get().writes(1_u64))
}
/// Storage: `Nis::Receipts` (r:1 w:1)
/// Proof: `Nis::Receipts` (`max_values`: None, `max_size`: Some(81), added: 2556, mode: `MaxEncodedLen`)
/// Storage: `Balances::Holds` (r:1 w:1)
/// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(193), added: 2668, mode: `MaxEncodedLen`)
/// Storage: `System::Account` (r:1 w:1)
/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
/// Storage: `Nis::Summary` (r:1 w:1)
/// Proof: `Nis::Summary` (`max_values`: Some(1), `max_size`: Some(40), added: 535, mode: `MaxEncodedLen`)
/// Storage: `Assets::Asset` (r:1 w:1)
/// Proof: `Assets::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`)
/// Storage: `Assets::Account` (r:1 w:1)
/// Proof: `Assets::Account` (`max_values`: None, `max_size`: Some(134), added: 2609, mode: `MaxEncodedLen`)
/// Storage: Nis Receipts (r:1 w:1)
/// Proof: Nis Receipts (max_values: None, max_size: Some(81), added: 2556, mode: MaxEncodedLen)
/// Storage: Balances Holds (r:1 w:1)
/// Proof: Balances Holds (max_values: None, max_size: Some(85), added: 2560, mode: MaxEncodedLen)
/// Storage: System Account (r:1 w:1)
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
/// Storage: Nis Summary (r:1 w:1)
/// Proof: Nis Summary (max_values: Some(1), max_size: Some(40), added: 535, mode: MaxEncodedLen)
/// Storage: Assets Asset (r:1 w:1)
/// Proof: Assets Asset (max_values: None, max_size: Some(210), added: 2685, mode: MaxEncodedLen)
/// Storage: Assets Account (r:1 w:1)
/// Proof: Assets Account (max_values: None, max_size: Some(134), added: 2609, mode: MaxEncodedLen)
fn communify() -> Weight {
// Proof Size summary in bytes:
// Measured: `668`
// Estimated: `3675`
// Minimum execution time: 71_017_000 picoseconds.
Weight::from_parts(72_504_000, 3675)
// Minimum execution time: 79_779_000 picoseconds.
Weight::from_parts(82_478_000, 3675)
.saturating_add(T::DbWeight::get().reads(6_u64))
.saturating_add(T::DbWeight::get().writes(6_u64))
}
/// Storage: `Nis::Receipts` (r:1 w:1)
/// Proof: `Nis::Receipts` (`max_values`: None, `max_size`: Some(81), added: 2556, mode: `MaxEncodedLen`)
/// Storage: `Nis::Summary` (r:1 w:1)
/// Proof: `Nis::Summary` (`max_values`: Some(1), `max_size`: Some(40), added: 535, mode: `MaxEncodedLen`)
/// Storage: `System::Account` (r:1 w:1)
/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
/// Storage: `Assets::Asset` (r:1 w:1)
/// Proof: `Assets::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`)
/// Storage: `Assets::Account` (r:1 w:1)
/// Proof: `Assets::Account` (`max_values`: None, `max_size`: Some(134), added: 2609, mode: `MaxEncodedLen`)
/// Storage: `Balances::Holds` (r:1 w:1)
/// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(193), added: 2668, mode: `MaxEncodedLen`)
/// Storage: Nis Receipts (r:1 w:1)
/// Proof: Nis Receipts (max_values: None, max_size: Some(81), added: 2556, mode: MaxEncodedLen)
/// Storage: Nis Summary (r:1 w:1)
/// Proof: Nis Summary (max_values: Some(1), max_size: Some(40), added: 535, mode: MaxEncodedLen)
/// Storage: System Account (r:1 w:1)
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
/// Storage: Assets Asset (r:1 w:1)
/// Proof: Assets Asset (max_values: None, max_size: Some(210), added: 2685, mode: MaxEncodedLen)
/// Storage: Assets Account (r:1 w:1)
/// Proof: Assets Account (max_values: None, max_size: Some(134), added: 2609, mode: MaxEncodedLen)
/// Storage: Balances Holds (r:1 w:1)
/// Proof: Balances Holds (max_values: None, max_size: Some(85), added: 2560, mode: MaxEncodedLen)
fn privatize() -> Weight {
// Proof Size summary in bytes:
// Measured: `829`
// Estimated: `3675`
// Minimum execution time: 89_138_000 picoseconds.
Weight::from_parts(91_290_000, 3675)
// Minimum execution time: 99_588_000 picoseconds.
Weight::from_parts(102_340_000, 3675)
.saturating_add(T::DbWeight::get().reads(6_u64))
.saturating_add(T::DbWeight::get().writes(6_u64))
}
/// Storage: `Nis::Receipts` (r:1 w:1)
/// Proof: `Nis::Receipts` (`max_values`: None, `max_size`: Some(81), added: 2556, mode: `MaxEncodedLen`)
/// Storage: `Nis::Summary` (r:1 w:1)
/// Proof: `Nis::Summary` (`max_values`: Some(1), `max_size`: Some(40), added: 535, mode: `MaxEncodedLen`)
/// Storage: `System::Account` (r:1 w:0)
/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
/// Storage: `Balances::Holds` (r:1 w:1)
/// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(193), added: 2668, mode: `MaxEncodedLen`)
/// Storage: Nis Receipts (r:1 w:1)
/// Proof: Nis Receipts (max_values: None, max_size: Some(81), added: 2556, mode: MaxEncodedLen)
/// Storage: Nis Summary (r:1 w:1)
/// Proof: Nis Summary (max_values: Some(1), max_size: Some(40), added: 535, mode: MaxEncodedLen)
/// Storage: System Account (r:1 w:0)
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
/// Storage: Balances Holds (r:1 w:1)
/// Proof: Balances Holds (max_values: None, max_size: Some(85), added: 2560, mode: MaxEncodedLen)
fn thaw_private() -> Weight {
// Proof Size summary in bytes:
// Measured: `354`
// Estimated: `3658`
// Minimum execution time: 47_917_000 picoseconds.
Weight::from_parts(49_121_000, 3658)
// Estimated: `3593`
// Minimum execution time: 53_094_000 picoseconds.
Weight::from_parts(54_543_000, 3593)
.saturating_add(T::DbWeight::get().reads(4_u64))
.saturating_add(T::DbWeight::get().writes(3_u64))
}
/// Storage: `Nis::Receipts` (r:1 w:1)
/// Proof: `Nis::Receipts` (`max_values`: None, `max_size`: Some(81), added: 2556, mode: `MaxEncodedLen`)
/// Storage: `Nis::Summary` (r:1 w:1)
/// Proof: `Nis::Summary` (`max_values`: Some(1), `max_size`: Some(40), added: 535, mode: `MaxEncodedLen`)
/// Storage: `Assets::Asset` (r:1 w:1)
/// Proof: `Assets::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`)
/// Storage: `Assets::Account` (r:1 w:1)
/// Proof: `Assets::Account` (`max_values`: None, `max_size`: Some(134), added: 2609, mode: `MaxEncodedLen`)
/// Storage: `System::Account` (r:1 w:1)
/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
/// Storage: Nis Receipts (r:1 w:1)
/// Proof: Nis Receipts (max_values: None, max_size: Some(81), added: 2556, mode: MaxEncodedLen)
/// Storage: Nis Summary (r:1 w:1)
/// Proof: Nis Summary (max_values: Some(1), max_size: Some(40), added: 535, mode: MaxEncodedLen)
/// Storage: Assets Asset (r:1 w:1)
/// Proof: Assets Asset (max_values: None, max_size: Some(210), added: 2685, mode: MaxEncodedLen)
/// Storage: Assets Account (r:1 w:1)
/// Proof: Assets Account (max_values: None, max_size: Some(134), added: 2609, mode: MaxEncodedLen)
/// Storage: System Account (r:1 w:1)
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
fn thaw_communal() -> Weight {
// Proof Size summary in bytes:
// Measured: `773`
// Estimated: `3675`
// Minimum execution time: 91_320_000 picoseconds.
Weight::from_parts(93_080_000, 3675)
// Minimum execution time: 107_248_000 picoseconds.
Weight::from_parts(109_923_000, 3675)
.saturating_add(T::DbWeight::get().reads(5_u64))
.saturating_add(T::DbWeight::get().writes(5_u64))
}
/// Storage: `Nis::Summary` (r:1 w:1)
/// Proof: `Nis::Summary` (`max_values`: Some(1), `max_size`: Some(40), added: 535, mode: `MaxEncodedLen`)
/// Storage: `System::Account` (r:1 w:0)
/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
/// Storage: `Nis::QueueTotals` (r:1 w:1)
/// Proof: `Nis::QueueTotals` (`max_values`: Some(1), `max_size`: Some(6002), added: 6497, mode: `MaxEncodedLen`)
/// Storage: Nis Summary (r:1 w:1)
/// Proof: Nis Summary (max_values: Some(1), max_size: Some(40), added: 535, mode: MaxEncodedLen)
/// Storage: System Account (r:1 w:0)
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
/// Storage: Nis QueueTotals (r:1 w:1)
/// Proof: Nis QueueTotals (max_values: Some(1), max_size: Some(6002), added: 6497, mode: MaxEncodedLen)
fn process_queues() -> Weight {
// Proof Size summary in bytes:
// Measured: `6624`
// Estimated: `7487`
// Minimum execution time: 20_117_000 picoseconds.
Weight::from_parts(20_829_000, 7487)
// Minimum execution time: 27_169_000 picoseconds.
Weight::from_parts(29_201_000, 7487)
.saturating_add(T::DbWeight::get().reads(3_u64))
.saturating_add(T::DbWeight::get().writes(2_u64))
}
/// Storage: `Nis::Queues` (r:1 w:1)
/// Proof: `Nis::Queues` (`max_values`: None, `max_size`: Some(48022), added: 50497, mode: `MaxEncodedLen`)
/// Storage: Nis Queues (r:1 w:1)
/// Proof: Nis Queues (max_values: None, max_size: Some(48022), added: 50497, mode: MaxEncodedLen)
fn process_queue() -> Weight {
// Proof Size summary in bytes:
// Measured: `42`
// Estimated: `51487`
// Minimum execution time: 4_460_000 picoseconds.
Weight::from_parts(4_797_000, 51487)
// Minimum execution time: 4_540_000 picoseconds.
Weight::from_parts(4_699_000, 51487)
.saturating_add(T::DbWeight::get().reads(1_u64))
.saturating_add(T::DbWeight::get().writes(1_u64))
}
/// Storage: `Nis::Receipts` (r:0 w:1)
/// Proof: `Nis::Receipts` (`max_values`: None, `max_size`: Some(81), added: 2556, mode: `MaxEncodedLen`)
/// Storage: Nis Receipts (r:0 w:1)
/// Proof: Nis Receipts (max_values: None, max_size: Some(81), added: 2556, mode: MaxEncodedLen)
fn process_bid() -> Weight {
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `0`
// Minimum execution time: 4_609_000 picoseconds.
Weight::from_parts(4_834_000, 0)
// Minimum execution time: 7_085_000 picoseconds.
Weight::from_parts(7_336_000, 0)
.saturating_add(T::DbWeight::get().writes(1_u64))
}
}
// For backwards compatibility and tests.
// For backwards compatibility and tests
impl WeightInfo for () {
/// Storage: `Nis::Queues` (r:1 w:1)
/// Proof: `Nis::Queues` (`max_values`: None, `max_size`: Some(48022), added: 50497, mode: `MaxEncodedLen`)
/// Storage: `Balances::Holds` (r:1 w:1)
/// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(193), added: 2668, mode: `MaxEncodedLen`)
/// Storage: `Nis::QueueTotals` (r:1 w:1)
/// Proof: `Nis::QueueTotals` (`max_values`: Some(1), `max_size`: Some(6002), added: 6497, mode: `MaxEncodedLen`)
/// Storage: Nis Queues (r:1 w:1)
/// Proof: Nis Queues (max_values: None, max_size: Some(48022), added: 50497, mode: MaxEncodedLen)
/// Storage: Balances Holds (r:1 w:1)
/// Proof: Balances Holds (max_values: None, max_size: Some(85), added: 2560, mode: MaxEncodedLen)
/// Storage: Nis QueueTotals (r:1 w:1)
/// Proof: Nis QueueTotals (max_values: Some(1), max_size: Some(6002), added: 6497, mode: MaxEncodedLen)
/// The range of component `l` is `[0, 999]`.
fn place_bid(l: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `6176 + l * (48 ±0)`
// Estimated: `51487`
// Minimum execution time: 47_908_000 picoseconds.
Weight::from_parts(50_096_676, 51487)
// Standard Error: 208
.saturating_add(Weight::from_parts(41_318, 0).saturating_mul(l.into()))
// Minimum execution time: 49_410_000 picoseconds.
Weight::from_parts(57_832_282, 51487)
// Standard Error: 288
.saturating_add(Weight::from_parts(51_621, 0).saturating_mul(l.into()))
.saturating_add(RocksDbWeight::get().reads(3_u64))
.saturating_add(RocksDbWeight::get().writes(3_u64))
}
/// Storage: `Nis::Queues` (r:1 w:1)
/// Proof: `Nis::Queues` (`max_values`: None, `max_size`: Some(48022), added: 50497, mode: `MaxEncodedLen`)
/// Storage: `Balances::Holds` (r:1 w:1)
/// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(193), added: 2668, mode: `MaxEncodedLen`)
/// Storage: `Nis::QueueTotals` (r:1 w:1)
/// Proof: `Nis::QueueTotals` (`max_values`: Some(1), `max_size`: Some(6002), added: 6497, mode: `MaxEncodedLen`)
/// Storage: Nis Queues (r:1 w:1)
/// Proof: Nis Queues (max_values: None, max_size: Some(48022), added: 50497, mode: MaxEncodedLen)
/// Storage: Balances Holds (r:1 w:1)
/// Proof: Balances Holds (max_values: None, max_size: Some(85), added: 2560, mode: MaxEncodedLen)
/// Storage: Nis QueueTotals (r:1 w:1)
/// Proof: Nis QueueTotals (max_values: Some(1), max_size: Some(6002), added: 6497, mode: MaxEncodedLen)
fn place_bid_max() -> Weight {
// Proof Size summary in bytes:
// Measured: `54178`
// Estimated: `51487`
// Minimum execution time: 100_836_000 picoseconds.
Weight::from_parts(102_497_000, 51487)
// Minimum execution time: 119_696_000 picoseconds.
Weight::from_parts(121_838_000, 51487)
.saturating_add(RocksDbWeight::get().reads(3_u64))
.saturating_add(RocksDbWeight::get().writes(3_u64))
}
/// Storage: `Nis::Queues` (r:1 w:1)
/// Proof: `Nis::Queues` (`max_values`: None, `max_size`: Some(48022), added: 50497, mode: `MaxEncodedLen`)
/// Storage: `Balances::Holds` (r:1 w:1)
/// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(193), added: 2668, mode: `MaxEncodedLen`)
/// Storage: `Nis::QueueTotals` (r:1 w:1)
/// Proof: `Nis::QueueTotals` (`max_values`: Some(1), `max_size`: Some(6002), added: 6497, mode: `MaxEncodedLen`)
/// Storage: Nis Queues (r:1 w:1)
/// Proof: Nis Queues (max_values: None, max_size: Some(48022), added: 50497, mode: MaxEncodedLen)
/// Storage: Balances Holds (r:1 w:1)
/// Proof: Balances Holds (max_values: None, max_size: Some(85), added: 2560, mode: MaxEncodedLen)
/// Storage: Nis QueueTotals (r:1 w:1)
/// Proof: Nis QueueTotals (max_values: Some(1), max_size: Some(6002), added: 6497, mode: MaxEncodedLen)
/// The range of component `l` is `[1, 1000]`.
fn retract_bid(l: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `6176 + l * (48 ±0)`
// Estimated: `51487`
// Minimum execution time: 45_830_000 picoseconds.
Weight::from_parts(46_667_676, 51487)
// Standard Error: 130
.saturating_add(Weight::from_parts(33_007, 0).saturating_mul(l.into()))
// Minimum execution time: 50_843_000 picoseconds.
Weight::from_parts(54_237_365, 51487)
// Standard Error: 243
.saturating_add(Weight::from_parts(67_732, 0).saturating_mul(l.into()))
.saturating_add(RocksDbWeight::get().reads(3_u64))
.saturating_add(RocksDbWeight::get().writes(3_u64))
}
/// Storage: `Nis::Summary` (r:1 w:0)
/// Proof: `Nis::Summary` (`max_values`: Some(1), `max_size`: Some(40), added: 535, mode: `MaxEncodedLen`)
/// Storage: `System::Account` (r:1 w:1)
/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
/// Storage: Nis Summary (r:1 w:0)
/// Proof: Nis Summary (max_values: Some(1), max_size: Some(40), added: 535, mode: MaxEncodedLen)
/// Storage: System Account (r:1 w:1)
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
fn fund_deficit() -> Weight {
// Proof Size summary in bytes:
// Measured: `191`
// Estimated: `3593`
// Minimum execution time: 30_440_000 picoseconds.
Weight::from_parts(31_240_000, 3593)
// Minimum execution time: 40_752_000 picoseconds.
Weight::from_parts(41_899_000, 3593)
.saturating_add(RocksDbWeight::get().reads(2_u64))
.saturating_add(RocksDbWeight::get().writes(1_u64))
}
/// Storage: `Nis::Receipts` (r:1 w:1)
/// Proof: `Nis::Receipts` (`max_values`: None, `max_size`: Some(81), added: 2556, mode: `MaxEncodedLen`)
/// Storage: `Balances::Holds` (r:1 w:1)
/// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(193), added: 2668, mode: `MaxEncodedLen`)
/// Storage: `System::Account` (r:1 w:1)
/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
/// Storage: `Nis::Summary` (r:1 w:1)
/// Proof: `Nis::Summary` (`max_values`: Some(1), `max_size`: Some(40), added: 535, mode: `MaxEncodedLen`)
/// Storage: `Assets::Asset` (r:1 w:1)
/// Proof: `Assets::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`)
/// Storage: `Assets::Account` (r:1 w:1)
/// Proof: `Assets::Account` (`max_values`: None, `max_size`: Some(134), added: 2609, mode: `MaxEncodedLen`)
/// Storage: Nis Receipts (r:1 w:1)
/// Proof: Nis Receipts (max_values: None, max_size: Some(81), added: 2556, mode: MaxEncodedLen)
/// Storage: Balances Holds (r:1 w:1)
/// Proof: Balances Holds (max_values: None, max_size: Some(85), added: 2560, mode: MaxEncodedLen)
/// Storage: System Account (r:1 w:1)
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
/// Storage: Nis Summary (r:1 w:1)
/// Proof: Nis Summary (max_values: Some(1), max_size: Some(40), added: 535, mode: MaxEncodedLen)
/// Storage: Assets Asset (r:1 w:1)
/// Proof: Assets Asset (max_values: None, max_size: Some(210), added: 2685, mode: MaxEncodedLen)
/// Storage: Assets Account (r:1 w:1)
/// Proof: Assets Account (max_values: None, max_size: Some(134), added: 2609, mode: MaxEncodedLen)
fn communify() -> Weight {
// Proof Size summary in bytes:
// Measured: `668`
// Estimated: `3675`
// Minimum execution time: 71_017_000 picoseconds.
Weight::from_parts(72_504_000, 3675)
// Minimum execution time: 79_779_000 picoseconds.
Weight::from_parts(82_478_000, 3675)
.saturating_add(RocksDbWeight::get().reads(6_u64))
.saturating_add(RocksDbWeight::get().writes(6_u64))
}
/// Storage: `Nis::Receipts` (r:1 w:1)
/// Proof: `Nis::Receipts` (`max_values`: None, `max_size`: Some(81), added: 2556, mode: `MaxEncodedLen`)
/// Storage: `Nis::Summary` (r:1 w:1)
/// Proof: `Nis::Summary` (`max_values`: Some(1), `max_size`: Some(40), added: 535, mode: `MaxEncodedLen`)
/// Storage: `System::Account` (r:1 w:1)
/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
/// Storage: `Assets::Asset` (r:1 w:1)
/// Proof: `Assets::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`)
/// Storage: `Assets::Account` (r:1 w:1)
/// Proof: `Assets::Account` (`max_values`: None, `max_size`: Some(134), added: 2609, mode: `MaxEncodedLen`)
/// Storage: `Balances::Holds` (r:1 w:1)
/// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(193), added: 2668, mode: `MaxEncodedLen`)
/// Storage: Nis Receipts (r:1 w:1)
/// Proof: Nis Receipts (max_values: None, max_size: Some(81), added: 2556, mode: MaxEncodedLen)
/// Storage: Nis Summary (r:1 w:1)
/// Proof: Nis Summary (max_values: Some(1), max_size: Some(40), added: 535, mode: MaxEncodedLen)
/// Storage: System Account (r:1 w:1)
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
/// Storage: Assets Asset (r:1 w:1)
/// Proof: Assets Asset (max_values: None, max_size: Some(210), added: 2685, mode: MaxEncodedLen)
/// Storage: Assets Account (r:1 w:1)
/// Proof: Assets Account (max_values: None, max_size: Some(134), added: 2609, mode: MaxEncodedLen)
/// Storage: Balances Holds (r:1 w:1)
/// Proof: Balances Holds (max_values: None, max_size: Some(85), added: 2560, mode: MaxEncodedLen)
fn privatize() -> Weight {
// Proof Size summary in bytes:
// Measured: `829`
// Estimated: `3675`
// Minimum execution time: 89_138_000 picoseconds.
Weight::from_parts(91_290_000, 3675)
// Minimum execution time: 99_588_000 picoseconds.
Weight::from_parts(102_340_000, 3675)
.saturating_add(RocksDbWeight::get().reads(6_u64))
.saturating_add(RocksDbWeight::get().writes(6_u64))
}
/// Storage: `Nis::Receipts` (r:1 w:1)
/// Proof: `Nis::Receipts` (`max_values`: None, `max_size`: Some(81), added: 2556, mode: `MaxEncodedLen`)
/// Storage: `Nis::Summary` (r:1 w:1)
/// Proof: `Nis::Summary` (`max_values`: Some(1), `max_size`: Some(40), added: 535, mode: `MaxEncodedLen`)
/// Storage: `System::Account` (r:1 w:0)
/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
/// Storage: `Balances::Holds` (r:1 w:1)
/// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(193), added: 2668, mode: `MaxEncodedLen`)
/// Storage: Nis Receipts (r:1 w:1)
/// Proof: Nis Receipts (max_values: None, max_size: Some(81), added: 2556, mode: MaxEncodedLen)
/// Storage: Nis Summary (r:1 w:1)
/// Proof: Nis Summary (max_values: Some(1), max_size: Some(40), added: 535, mode: MaxEncodedLen)
/// Storage: System Account (r:1 w:0)
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
/// Storage: Balances Holds (r:1 w:1)
/// Proof: Balances Holds (max_values: None, max_size: Some(85), added: 2560, mode: MaxEncodedLen)
fn thaw_private() -> Weight {
// Proof Size summary in bytes:
// Measured: `354`
// Estimated: `3658`
// Minimum execution time: 47_917_000 picoseconds.
Weight::from_parts(49_121_000, 3658)
// Estimated: `3593`
// Minimum execution time: 53_094_000 picoseconds.
Weight::from_parts(54_543_000, 3593)
.saturating_add(RocksDbWeight::get().reads(4_u64))
.saturating_add(RocksDbWeight::get().writes(3_u64))
}
/// Storage: `Nis::Receipts` (r:1 w:1)
/// Proof: `Nis::Receipts` (`max_values`: None, `max_size`: Some(81), added: 2556, mode: `MaxEncodedLen`)
/// Storage: `Nis::Summary` (r:1 w:1)
/// Proof: `Nis::Summary` (`max_values`: Some(1), `max_size`: Some(40), added: 535, mode: `MaxEncodedLen`)
/// Storage: `Assets::Asset` (r:1 w:1)
/// Proof: `Assets::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`)
/// Storage: `Assets::Account` (r:1 w:1)
/// Proof: `Assets::Account` (`max_values`: None, `max_size`: Some(134), added: 2609, mode: `MaxEncodedLen`)
/// Storage: `System::Account` (r:1 w:1)
/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
/// Storage: Nis Receipts (r:1 w:1)
/// Proof: Nis Receipts (max_values: None, max_size: Some(81), added: 2556, mode: MaxEncodedLen)
/// Storage: Nis Summary (r:1 w:1)
/// Proof: Nis Summary (max_values: Some(1), max_size: Some(40), added: 535, mode: MaxEncodedLen)
/// Storage: Assets Asset (r:1 w:1)
/// Proof: Assets Asset (max_values: None, max_size: Some(210), added: 2685, mode: MaxEncodedLen)
/// Storage: Assets Account (r:1 w:1)
/// Proof: Assets Account (max_values: None, max_size: Some(134), added: 2609, mode: MaxEncodedLen)
/// Storage: System Account (r:1 w:1)
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
fn thaw_communal() -> Weight {
// Proof Size summary in bytes:
// Measured: `773`
// Estimated: `3675`
// Minimum execution time: 91_320_000 picoseconds.
Weight::from_parts(93_080_000, 3675)
// Minimum execution time: 107_248_000 picoseconds.
Weight::from_parts(109_923_000, 3675)
.saturating_add(RocksDbWeight::get().reads(5_u64))
.saturating_add(RocksDbWeight::get().writes(5_u64))
}
/// Storage: `Nis::Summary` (r:1 w:1)
/// Proof: `Nis::Summary` (`max_values`: Some(1), `max_size`: Some(40), added: 535, mode: `MaxEncodedLen`)
/// Storage: `System::Account` (r:1 w:0)
/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
/// Storage: `Nis::QueueTotals` (r:1 w:1)
/// Proof: `Nis::QueueTotals` (`max_values`: Some(1), `max_size`: Some(6002), added: 6497, mode: `MaxEncodedLen`)
/// Storage: Nis Summary (r:1 w:1)
/// Proof: Nis Summary (max_values: Some(1), max_size: Some(40), added: 535, mode: MaxEncodedLen)
/// Storage: System Account (r:1 w:0)
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
/// Storage: Nis QueueTotals (r:1 w:1)
/// Proof: Nis QueueTotals (max_values: Some(1), max_size: Some(6002), added: 6497, mode: MaxEncodedLen)
fn process_queues() -> Weight {
// Proof Size summary in bytes:
// Measured: `6624`
// Estimated: `7487`
// Minimum execution time: 20_117_000 picoseconds.
Weight::from_parts(20_829_000, 7487)
// Minimum execution time: 27_169_000 picoseconds.
Weight::from_parts(29_201_000, 7487)
.saturating_add(RocksDbWeight::get().reads(3_u64))
.saturating_add(RocksDbWeight::get().writes(2_u64))
}
/// Storage: `Nis::Queues` (r:1 w:1)
/// Proof: `Nis::Queues` (`max_values`: None, `max_size`: Some(48022), added: 50497, mode: `MaxEncodedLen`)
/// Storage: Nis Queues (r:1 w:1)
/// Proof: Nis Queues (max_values: None, max_size: Some(48022), added: 50497, mode: MaxEncodedLen)
fn process_queue() -> Weight {
// Proof Size summary in bytes:
// Measured: `42`
// Estimated: `51487`
// Minimum execution time: 4_460_000 picoseconds.
Weight::from_parts(4_797_000, 51487)
// Minimum execution time: 4_540_000 picoseconds.
Weight::from_parts(4_699_000, 51487)
.saturating_add(RocksDbWeight::get().reads(1_u64))
.saturating_add(RocksDbWeight::get().writes(1_u64))
}
/// Storage: `Nis::Receipts` (r:0 w:1)
/// Proof: `Nis::Receipts` (`max_values`: None, `max_size`: Some(81), added: 2556, mode: `MaxEncodedLen`)
/// Storage: Nis Receipts (r:0 w:1)
/// Proof: Nis Receipts (max_values: None, max_size: Some(81), added: 2556, mode: MaxEncodedLen)
fn process_bid() -> Weight {
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `0`
// Minimum execution time: 4_609_000 picoseconds.
Weight::from_parts(4_834_000, 0)
// Minimum execution time: 7_085_000 picoseconds.
Weight::from_parts(7_336_000, 0)
.saturating_add(RocksDbWeight::get().writes(1_u64))
}
}
+13 -16
View File
@@ -25,6 +25,7 @@
// Executed Command:
// target/production/substrate-node
// target/production/substrate-node
// benchmark
// pallet
// --steps=50
@@ -35,8 +36,12 @@
// --json-file=/builds/parity/mirrors/polkadot-sdk/.git/.artifacts/bench.json
// --pallet=pallet_nomination_pools
// --chain=dev
// --json-file=/builds/parity/mirrors/polkadot-sdk/.git/.artifacts/bench.json
// --pallet=pallet_nomination_pools
// --chain=dev
// --header=./substrate/HEADER-APACHE2
// --output=./substrate/frame/nomination-pools/src/weights.rs
// --output=./substrate/frame/nomination-pools/src/weights.rs
// --template=./substrate/.maintain/frame-weight-template.hbs
#![cfg_attr(rustfmt, rustfmt_skip)]
@@ -259,14 +264,12 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
/// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1299), added: 3774, mode: `MaxEncodedLen`)
/// Storage: `Balances::Freezes` (r:1 w:0)
/// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(67), added: 2542, mode: `MaxEncodedLen`)
/// Storage: `NominationPools::ReversePoolIdLookup` (r:1 w:0)
/// Proof: `NominationPools::ReversePoolIdLookup` (`max_values`: None, `max_size`: Some(44), added: 2519, mode: `MaxEncodedLen`)
/// Storage: `NominationPools::TotalValueLocked` (r:1 w:1)
/// Proof: `NominationPools::TotalValueLocked` (`max_values`: Some(1), `max_size`: Some(16), added: 511, mode: `MaxEncodedLen`)
/// The range of component `s` is `[0, 100]`.
fn pool_withdraw_unbonded(s: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `1848`
// Measured: `1817`
// Estimated: `4764`
// Minimum execution time: 64_787_000 picoseconds.
Weight::from_parts(67_920_914, 4764)
@@ -293,8 +296,6 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
/// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(67), added: 2542, mode: `MaxEncodedLen`)
/// Storage: `System::Account` (r:1 w:1)
/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
/// Storage: `NominationPools::ReversePoolIdLookup` (r:1 w:0)
/// Proof: `NominationPools::ReversePoolIdLookup` (`max_values`: None, `max_size`: Some(44), added: 2519, mode: `MaxEncodedLen`)
/// Storage: `NominationPools::TotalValueLocked` (r:1 w:1)
/// Proof: `NominationPools::TotalValueLocked` (`max_values`: Some(1), `max_size`: Some(16), added: 511, mode: `MaxEncodedLen`)
/// Storage: `NominationPools::CounterForPoolMembers` (r:1 w:1)
@@ -304,7 +305,7 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
/// The range of component `s` is `[0, 100]`.
fn withdraw_unbonded_update(s: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `2238`
// Measured: `2207`
// Estimated: `27847`
// Minimum execution time: 124_990_000 picoseconds.
Weight::from_parts(129_041_398, 27847)
@@ -337,12 +338,12 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
/// Proof: `Staking::Validators` (`max_values`: None, `max_size`: Some(45), added: 2520, mode: `MaxEncodedLen`)
/// Storage: `Staking::Nominators` (r:1 w:0)
/// Proof: `Staking::Nominators` (`max_values`: None, `max_size`: Some(558), added: 3033, mode: `MaxEncodedLen`)
/// Storage: `NominationPools::ReversePoolIdLookup` (r:1 w:1)
/// Proof: `NominationPools::ReversePoolIdLookup` (`max_values`: None, `max_size`: Some(44), added: 2519, mode: `MaxEncodedLen`)
/// Storage: `NominationPools::TotalValueLocked` (r:1 w:1)
/// Proof: `NominationPools::TotalValueLocked` (`max_values`: Some(1), `max_size`: Some(16), added: 511, mode: `MaxEncodedLen`)
/// Storage: `NominationPools::CounterForPoolMembers` (r:1 w:1)
/// Proof: `NominationPools::CounterForPoolMembers` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
/// Storage: `NominationPools::ReversePoolIdLookup` (r:1 w:1)
/// Proof: `NominationPools::ReversePoolIdLookup` (`max_values`: None, `max_size`: Some(44), added: 2519, mode: `MaxEncodedLen`)
/// Storage: `NominationPools::CounterForReversePoolIdLookup` (r:1 w:1)
/// Proof: `NominationPools::CounterForReversePoolIdLookup` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
/// Storage: `NominationPools::RewardPools` (r:1 w:1)
@@ -849,14 +850,12 @@ impl WeightInfo for () {
/// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1299), added: 3774, mode: `MaxEncodedLen`)
/// Storage: `Balances::Freezes` (r:1 w:0)
/// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(67), added: 2542, mode: `MaxEncodedLen`)
/// Storage: `NominationPools::ReversePoolIdLookup` (r:1 w:0)
/// Proof: `NominationPools::ReversePoolIdLookup` (`max_values`: None, `max_size`: Some(44), added: 2519, mode: `MaxEncodedLen`)
/// Storage: `NominationPools::TotalValueLocked` (r:1 w:1)
/// Proof: `NominationPools::TotalValueLocked` (`max_values`: Some(1), `max_size`: Some(16), added: 511, mode: `MaxEncodedLen`)
/// The range of component `s` is `[0, 100]`.
fn pool_withdraw_unbonded(s: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `1848`
// Measured: `1817`
// Estimated: `4764`
// Minimum execution time: 64_787_000 picoseconds.
Weight::from_parts(67_920_914, 4764)
@@ -883,8 +882,6 @@ impl WeightInfo for () {
/// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(67), added: 2542, mode: `MaxEncodedLen`)
/// Storage: `System::Account` (r:1 w:1)
/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
/// Storage: `NominationPools::ReversePoolIdLookup` (r:1 w:0)
/// Proof: `NominationPools::ReversePoolIdLookup` (`max_values`: None, `max_size`: Some(44), added: 2519, mode: `MaxEncodedLen`)
/// Storage: `NominationPools::TotalValueLocked` (r:1 w:1)
/// Proof: `NominationPools::TotalValueLocked` (`max_values`: Some(1), `max_size`: Some(16), added: 511, mode: `MaxEncodedLen`)
/// Storage: `NominationPools::CounterForPoolMembers` (r:1 w:1)
@@ -894,7 +891,7 @@ impl WeightInfo for () {
/// The range of component `s` is `[0, 100]`.
fn withdraw_unbonded_update(s: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `2238`
// Measured: `2207`
// Estimated: `27847`
// Minimum execution time: 124_990_000 picoseconds.
Weight::from_parts(129_041_398, 27847)
@@ -927,12 +924,12 @@ impl WeightInfo for () {
/// Proof: `Staking::Validators` (`max_values`: None, `max_size`: Some(45), added: 2520, mode: `MaxEncodedLen`)
/// Storage: `Staking::Nominators` (r:1 w:0)
/// Proof: `Staking::Nominators` (`max_values`: None, `max_size`: Some(558), added: 3033, mode: `MaxEncodedLen`)
/// Storage: `NominationPools::ReversePoolIdLookup` (r:1 w:1)
/// Proof: `NominationPools::ReversePoolIdLookup` (`max_values`: None, `max_size`: Some(44), added: 2519, mode: `MaxEncodedLen`)
/// Storage: `NominationPools::TotalValueLocked` (r:1 w:1)
/// Proof: `NominationPools::TotalValueLocked` (`max_values`: Some(1), `max_size`: Some(16), added: 511, mode: `MaxEncodedLen`)
/// Storage: `NominationPools::CounterForPoolMembers` (r:1 w:1)
/// Proof: `NominationPools::CounterForPoolMembers` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
/// Storage: `NominationPools::ReversePoolIdLookup` (r:1 w:1)
/// Proof: `NominationPools::ReversePoolIdLookup` (`max_values`: None, `max_size`: Some(44), added: 2519, mode: `MaxEncodedLen`)
/// Storage: `NominationPools::CounterForReversePoolIdLookup` (r:1 w:1)
/// Proof: `NominationPools::CounterForReversePoolIdLookup` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
/// Storage: `NominationPools::RewardPools` (r:1 w:1)
@@ -148,7 +148,7 @@ parameter_types! {
pub static ElectionsBounds: ElectionBounds = ElectionBoundsBuilder::default().build();
}
pub type Extrinsic = sp_runtime::generic::UncheckedExtrinsic<u64, RuntimeCall, (), ()>;
pub type Extrinsic = sp_runtime::testing::TestXt<RuntimeCall, ()>;
pub struct OnChainSeqPhragmen;
impl onchain::Config for OnChainSeqPhragmen {
+14 -24
View File
@@ -18,27 +18,25 @@
//! Autogenerated weights for `pallet_parameters`
//!
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0
//! DATE: 2024-03-01, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! DATE: 2024-02-05, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! WORST CASE MAP SIZE: `1000000`
//! HOSTNAME: `runner-bn-ce5rx-project-674-concurrent-0`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz`
//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("dev")`, DB CACHE: `1024`
// Executed Command:
// ./target/production/substrate-node
// target/production/substrate-node
// benchmark
// pallet
// --chain=dev
// --steps=50
// --repeat=20
// --pallet=pallet_parameters
// --no-storage-info
// --no-median-slopes
// --no-min-squares
// --extrinsic=*
// --wasm-execution=compiled
// --heap-pages=4096
// --output=./substrate/frame/parameters/src/weights.rs
// --json-file=/builds/parity/mirrors/polkadot-sdk/.git/.artifacts/bench.json
// --pallet=pallet_parameters
// --chain=dev
// --header=./substrate/HEADER-APACHE2
// --output=./substrate/frame/parameters/src/weights.rs
// --template=./substrate/.maintain/frame-weight-template.hbs
#![cfg_attr(rustfmt, rustfmt_skip)]
@@ -57,30 +55,22 @@ pub trait WeightInfo {
/// Weights for `pallet_parameters` using the Substrate node and recommended hardware.
pub struct SubstrateWeight<T>(PhantomData<T>);
impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
/// Storage: `Parameters::Parameters` (r:1 w:1)
/// Proof: `Parameters::Parameters` (`max_values`: None, `max_size`: Some(36), added: 2511, mode: `MaxEncodedLen`)
fn set_parameter() -> Weight {
// Proof Size summary in bytes:
// Measured: `3`
// Estimated: `3501`
// Minimum execution time: 8_400_000 picoseconds.
Weight::from_parts(8_682_000, 3501)
.saturating_add(T::DbWeight::get().reads(1_u64))
.saturating_add(T::DbWeight::get().writes(1_u64))
// Measured: `0`
// Estimated: `0`
// Minimum execution time: 0_000 picoseconds.
Weight::from_parts(0, 0)
}
}
// For backwards compatibility and tests.
impl WeightInfo for () {
/// Storage: `Parameters::Parameters` (r:1 w:1)
/// Proof: `Parameters::Parameters` (`max_values`: None, `max_size`: Some(36), added: 2511, mode: `MaxEncodedLen`)
fn set_parameter() -> Weight {
// Proof Size summary in bytes:
// Measured: `3`
// Estimated: `3501`
// Minimum execution time: 8_400_000 picoseconds.
Weight::from_parts(8_682_000, 3501)
.saturating_add(RocksDbWeight::get().reads(1_u64))
.saturating_add(RocksDbWeight::get().writes(1_u64))
// Measured: `0`
// Estimated: `0`
// Minimum execution time: 0_000 picoseconds.
Weight::from_parts(0, 0)
}
}
+156 -176
View File
@@ -17,28 +17,26 @@
//! Autogenerated weights for `pallet_preimage`
//!
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0
//! DATE: 2024-03-01, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
//! DATE: 2023-09-06, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! WORST CASE MAP SIZE: `1000000`
//! HOSTNAME: `runner-bn-ce5rx-project-674-concurrent-0`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz`
//! HOSTNAME: `runner-mia4uyug-project-674-concurrent-0`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz`
//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("dev")`, DB CACHE: `1024`
// Executed Command:
// ./target/production/substrate-node
// target/production/substrate-node
// benchmark
// pallet
// --chain=dev
// --steps=50
// --repeat=20
// --pallet=pallet_preimage
// --no-storage-info
// --no-median-slopes
// --no-min-squares
// --extrinsic=*
// --wasm-execution=compiled
// --heap-pages=4096
// --output=./substrate/frame/preimage/src/weights.rs
// --json-file=/builds/parity/mirrors/polkadot-sdk/.git/.artifacts/bench.json
// --pallet=pallet_preimage
// --chain=dev
// --header=./substrate/HEADER-APACHE2
// --output=./substrate/frame/preimage/src/weights.rs
// --template=./substrate/.maintain/frame-weight-template.hbs
#![cfg_attr(rustfmt, rustfmt_skip)]
@@ -72,209 +70,200 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
/// Storage: `Preimage::StatusFor` (r:1 w:0)
/// Proof: `Preimage::StatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
/// Storage: `Preimage::RequestStatusFor` (r:1 w:1)
/// Proof: `Preimage::RequestStatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
/// Storage: `Parameters::Parameters` (r:2 w:0)
/// Proof: `Parameters::Parameters` (`max_values`: None, `max_size`: Some(36), added: 2511, mode: `MaxEncodedLen`)
/// Storage: `Balances::Holds` (r:1 w:1)
/// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(193), added: 2668, mode: `MaxEncodedLen`)
/// Proof: `Preimage::RequestStatusFor` (`max_values`: None, `max_size`: Some(75), added: 2550, mode: `MaxEncodedLen`)
/// Storage: `Preimage::PreimageFor` (r:0 w:1)
/// Proof: `Preimage::PreimageFor` (`max_values`: None, `max_size`: Some(4194344), added: 4196819, mode: `MaxEncodedLen`)
/// The range of component `s` is `[0, 4194304]`.
fn note_preimage(s: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `112`
// Estimated: `6012`
// Minimum execution time: 48_893_000 picoseconds.
Weight::from_parts(44_072_327, 6012)
// Standard Error: 2
.saturating_add(Weight::from_parts(1_684, 0).saturating_mul(s.into()))
.saturating_add(T::DbWeight::get().reads(5_u64))
.saturating_add(T::DbWeight::get().writes(3_u64))
// Measured: `42`
// Estimated: `3556`
// Minimum execution time: 15_936_000 picoseconds.
Weight::from_parts(16_271_000, 3556)
// Standard Error: 1
.saturating_add(Weight::from_parts(1_916, 0).saturating_mul(s.into()))
.saturating_add(T::DbWeight::get().reads(2_u64))
.saturating_add(T::DbWeight::get().writes(2_u64))
}
/// Storage: `Preimage::StatusFor` (r:1 w:0)
/// Proof: `Preimage::StatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
/// Storage: `Preimage::RequestStatusFor` (r:1 w:1)
/// Proof: `Preimage::RequestStatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
/// Proof: `Preimage::RequestStatusFor` (`max_values`: None, `max_size`: Some(75), added: 2550, mode: `MaxEncodedLen`)
/// Storage: `Preimage::PreimageFor` (r:0 w:1)
/// Proof: `Preimage::PreimageFor` (`max_values`: None, `max_size`: Some(4194344), added: 4196819, mode: `MaxEncodedLen`)
/// The range of component `s` is `[0, 4194304]`.
fn note_requested_preimage(s: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `173`
// Measured: `106`
// Estimated: `3556`
// Minimum execution time: 15_675_000 picoseconds.
Weight::from_parts(4_564_145, 3556)
// Minimum execution time: 16_468_000 picoseconds.
Weight::from_parts(17_031_000, 3556)
// Standard Error: 2
.saturating_add(Weight::from_parts(1_678, 0).saturating_mul(s.into()))
.saturating_add(Weight::from_parts(1_948, 0).saturating_mul(s.into()))
.saturating_add(T::DbWeight::get().reads(2_u64))
.saturating_add(T::DbWeight::get().writes(2_u64))
}
/// Storage: `Preimage::StatusFor` (r:1 w:0)
/// Proof: `Preimage::StatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
/// Storage: `Preimage::RequestStatusFor` (r:1 w:1)
/// Proof: `Preimage::RequestStatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
/// Proof: `Preimage::RequestStatusFor` (`max_values`: None, `max_size`: Some(75), added: 2550, mode: `MaxEncodedLen`)
/// Storage: `Preimage::PreimageFor` (r:0 w:1)
/// Proof: `Preimage::PreimageFor` (`max_values`: None, `max_size`: Some(4194344), added: 4196819, mode: `MaxEncodedLen`)
/// The range of component `s` is `[0, 4194304]`.
fn note_no_deposit_preimage(s: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `173`
// Measured: `106`
// Estimated: `3556`
// Minimum execution time: 14_959_000 picoseconds.
Weight::from_parts(15_335_000, 3556)
// Minimum execution time: 16_342_000 picoseconds.
Weight::from_parts(16_535_000, 3556)
// Standard Error: 1
.saturating_add(Weight::from_parts(1_687, 0).saturating_mul(s.into()))
.saturating_add(Weight::from_parts(1_906, 0).saturating_mul(s.into()))
.saturating_add(T::DbWeight::get().reads(2_u64))
.saturating_add(T::DbWeight::get().writes(2_u64))
}
/// Storage: `Preimage::StatusFor` (r:1 w:0)
/// Proof: `Preimage::StatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
/// Storage: `Preimage::RequestStatusFor` (r:1 w:1)
/// Proof: `Preimage::RequestStatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
/// Storage: `Balances::Holds` (r:1 w:1)
/// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(193), added: 2668, mode: `MaxEncodedLen`)
/// Proof: `Preimage::RequestStatusFor` (`max_values`: None, `max_size`: Some(75), added: 2550, mode: `MaxEncodedLen`)
/// Storage: `Preimage::PreimageFor` (r:0 w:1)
/// Proof: `Preimage::PreimageFor` (`max_values`: None, `max_size`: Some(4194344), added: 4196819, mode: `MaxEncodedLen`)
fn unnote_preimage() -> Weight {
// Proof Size summary in bytes:
// Measured: `311`
// Estimated: `3658`
// Minimum execution time: 47_378_000 picoseconds.
Weight::from_parts(48_776_000, 3658)
.saturating_add(T::DbWeight::get().reads(3_u64))
.saturating_add(T::DbWeight::get().writes(3_u64))
// Measured: `172`
// Estimated: `3556`
// Minimum execution time: 31_047_000 picoseconds.
Weight::from_parts(34_099_000, 3556)
.saturating_add(T::DbWeight::get().reads(2_u64))
.saturating_add(T::DbWeight::get().writes(2_u64))
}
/// Storage: `Preimage::StatusFor` (r:1 w:0)
/// Proof: `Preimage::StatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
/// Storage: `Preimage::RequestStatusFor` (r:1 w:1)
/// Proof: `Preimage::RequestStatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
/// Proof: `Preimage::RequestStatusFor` (`max_values`: None, `max_size`: Some(75), added: 2550, mode: `MaxEncodedLen`)
/// Storage: `Preimage::PreimageFor` (r:0 w:1)
/// Proof: `Preimage::PreimageFor` (`max_values`: None, `max_size`: Some(4194344), added: 4196819, mode: `MaxEncodedLen`)
fn unnote_no_deposit_preimage() -> Weight {
// Proof Size summary in bytes:
// Measured: `211`
// Measured: `144`
// Estimated: `3556`
// Minimum execution time: 20_939_000 picoseconds.
Weight::from_parts(21_577_000, 3556)
// Minimum execution time: 32_559_000 picoseconds.
Weight::from_parts(36_677_000, 3556)
.saturating_add(T::DbWeight::get().reads(2_u64))
.saturating_add(T::DbWeight::get().writes(2_u64))
}
/// Storage: `Preimage::StatusFor` (r:1 w:0)
/// Proof: `Preimage::StatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
/// Storage: `Preimage::RequestStatusFor` (r:1 w:1)
/// Proof: `Preimage::RequestStatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
/// Proof: `Preimage::RequestStatusFor` (`max_values`: None, `max_size`: Some(75), added: 2550, mode: `MaxEncodedLen`)
fn request_preimage() -> Weight {
// Proof Size summary in bytes:
// Measured: `255`
// Measured: `172`
// Estimated: `3556`
// Minimum execution time: 17_945_000 picoseconds.
Weight::from_parts(18_448_000, 3556)
// Minimum execution time: 27_887_000 picoseconds.
Weight::from_parts(30_303_000, 3556)
.saturating_add(T::DbWeight::get().reads(2_u64))
.saturating_add(T::DbWeight::get().writes(1_u64))
}
/// Storage: `Preimage::StatusFor` (r:1 w:0)
/// Proof: `Preimage::StatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
/// Storage: `Preimage::RequestStatusFor` (r:1 w:1)
/// Proof: `Preimage::RequestStatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
/// Proof: `Preimage::RequestStatusFor` (`max_values`: None, `max_size`: Some(75), added: 2550, mode: `MaxEncodedLen`)
fn request_no_deposit_preimage() -> Weight {
// Proof Size summary in bytes:
// Measured: `211`
// Measured: `144`
// Estimated: `3556`
// Minimum execution time: 12_132_000 picoseconds.
Weight::from_parts(12_710_000, 3556)
// Minimum execution time: 17_256_000 picoseconds.
Weight::from_parts(19_481_000, 3556)
.saturating_add(T::DbWeight::get().reads(2_u64))
.saturating_add(T::DbWeight::get().writes(1_u64))
}
/// Storage: `Preimage::StatusFor` (r:1 w:0)
/// Proof: `Preimage::StatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
/// Storage: `Preimage::RequestStatusFor` (r:1 w:1)
/// Proof: `Preimage::RequestStatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
/// Proof: `Preimage::RequestStatusFor` (`max_values`: None, `max_size`: Some(75), added: 2550, mode: `MaxEncodedLen`)
fn request_unnoted_preimage() -> Weight {
// Proof Size summary in bytes:
// Measured: `109`
// Measured: `42`
// Estimated: `3556`
// Minimum execution time: 13_014_000 picoseconds.
Weight::from_parts(13_726_000, 3556)
// Minimum execution time: 22_344_000 picoseconds.
Weight::from_parts(23_868_000, 3556)
.saturating_add(T::DbWeight::get().reads(2_u64))
.saturating_add(T::DbWeight::get().writes(1_u64))
}
/// Storage: `Preimage::StatusFor` (r:1 w:0)
/// Proof: `Preimage::StatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
/// Storage: `Preimage::RequestStatusFor` (r:1 w:1)
/// Proof: `Preimage::RequestStatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
/// Proof: `Preimage::RequestStatusFor` (`max_values`: None, `max_size`: Some(75), added: 2550, mode: `MaxEncodedLen`)
fn request_requested_preimage() -> Weight {
// Proof Size summary in bytes:
// Measured: `173`
// Measured: `106`
// Estimated: `3556`
// Minimum execution time: 9_785_000 picoseconds.
Weight::from_parts(10_266_000, 3556)
// Minimum execution time: 10_542_000 picoseconds.
Weight::from_parts(11_571_000, 3556)
.saturating_add(T::DbWeight::get().reads(2_u64))
.saturating_add(T::DbWeight::get().writes(1_u64))
}
/// Storage: `Preimage::StatusFor` (r:1 w:0)
/// Proof: `Preimage::StatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
/// Storage: `Preimage::RequestStatusFor` (r:1 w:1)
/// Proof: `Preimage::RequestStatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
/// Proof: `Preimage::RequestStatusFor` (`max_values`: None, `max_size`: Some(75), added: 2550, mode: `MaxEncodedLen`)
/// Storage: `Preimage::PreimageFor` (r:0 w:1)
/// Proof: `Preimage::PreimageFor` (`max_values`: None, `max_size`: Some(4194344), added: 4196819, mode: `MaxEncodedLen`)
fn unrequest_preimage() -> Weight {
// Proof Size summary in bytes:
// Measured: `211`
// Measured: `144`
// Estimated: `3556`
// Minimum execution time: 18_764_000 picoseconds.
Weight::from_parts(19_635_000, 3556)
// Minimum execution time: 29_054_000 picoseconds.
Weight::from_parts(32_996_000, 3556)
.saturating_add(T::DbWeight::get().reads(2_u64))
.saturating_add(T::DbWeight::get().writes(2_u64))
}
/// Storage: `Preimage::StatusFor` (r:1 w:0)
/// Proof: `Preimage::StatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
/// Storage: `Preimage::RequestStatusFor` (r:1 w:1)
/// Proof: `Preimage::RequestStatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
/// Proof: `Preimage::RequestStatusFor` (`max_values`: None, `max_size`: Some(75), added: 2550, mode: `MaxEncodedLen`)
fn unrequest_unnoted_preimage() -> Weight {
// Proof Size summary in bytes:
// Measured: `173`
// Measured: `106`
// Estimated: `3556`
// Minimum execution time: 9_624_000 picoseconds.
Weight::from_parts(10_044_000, 3556)
// Minimum execution time: 10_775_000 picoseconds.
Weight::from_parts(11_937_000, 3556)
.saturating_add(T::DbWeight::get().reads(2_u64))
.saturating_add(T::DbWeight::get().writes(1_u64))
}
/// Storage: `Preimage::StatusFor` (r:1 w:0)
/// Proof: `Preimage::StatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
/// Storage: `Preimage::RequestStatusFor` (r:1 w:1)
/// Proof: `Preimage::RequestStatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
/// Proof: `Preimage::RequestStatusFor` (`max_values`: None, `max_size`: Some(75), added: 2550, mode: `MaxEncodedLen`)
fn unrequest_multi_referenced_preimage() -> Weight {
// Proof Size summary in bytes:
// Measured: `173`
// Measured: `106`
// Estimated: `3556`
// Minimum execution time: 9_432_000 picoseconds.
Weight::from_parts(9_991_000, 3556)
// Minimum execution time: 10_696_000 picoseconds.
Weight::from_parts(11_717_000, 3556)
.saturating_add(T::DbWeight::get().reads(2_u64))
.saturating_add(T::DbWeight::get().writes(1_u64))
}
/// Storage: `Preimage::StatusFor` (r:1023 w:1023)
/// Storage: `Preimage::StatusFor` (r:1024 w:1024)
/// Proof: `Preimage::StatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
/// Storage: `System::Account` (r:1023 w:1023)
/// Storage: `System::Account` (r:1 w:1)
/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
/// Storage: `Parameters::Parameters` (r:2 w:0)
/// Proof: `Parameters::Parameters` (`max_values`: None, `max_size`: Some(36), added: 2511, mode: `MaxEncodedLen`)
/// Storage: `Balances::Holds` (r:1023 w:1023)
/// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(193), added: 2668, mode: `MaxEncodedLen`)
/// Storage: `Preimage::RequestStatusFor` (r:0 w:1023)
/// Proof: `Preimage::RequestStatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
/// The range of component `n` is `[1, 1024]`.
/// Storage: `Preimage::RequestStatusFor` (r:0 w:1024)
/// Proof: `Preimage::RequestStatusFor` (`max_values`: None, `max_size`: Some(75), added: 2550, mode: `MaxEncodedLen`)
/// The range of component `n` is `[0, 1024]`.
fn ensure_updated(n: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `0 + n * (227 ±0)`
// Estimated: `6012 + n * (2668 ±0)`
// Minimum execution time: 54_056_000 picoseconds.
Weight::from_parts(54_912_000, 6012)
// Standard Error: 42_469
.saturating_add(Weight::from_parts(50_710_258, 0).saturating_mul(n.into()))
.saturating_add(T::DbWeight::get().reads(2_u64))
.saturating_add(T::DbWeight::get().reads((3_u64).saturating_mul(n.into())))
.saturating_add(T::DbWeight::get().writes((4_u64).saturating_mul(n.into())))
.saturating_add(Weight::from_parts(0, 2668).saturating_mul(n.into()))
// Measured: `193 + n * (91 ±0)`
// Estimated: `3593 + n * (2566 ±0)`
// Minimum execution time: 2_452_000 picoseconds.
Weight::from_parts(2_641_000, 3593)
// Standard Error: 19_797
.saturating_add(Weight::from_parts(15_620_946, 0).saturating_mul(n.into()))
.saturating_add(T::DbWeight::get().reads(1_u64))
.saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(n.into())))
.saturating_add(T::DbWeight::get().writes(1_u64))
.saturating_add(T::DbWeight::get().writes((2_u64).saturating_mul(n.into())))
.saturating_add(Weight::from_parts(0, 2566).saturating_mul(n.into()))
}
}
@@ -283,208 +272,199 @@ impl WeightInfo for () {
/// Storage: `Preimage::StatusFor` (r:1 w:0)
/// Proof: `Preimage::StatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
/// Storage: `Preimage::RequestStatusFor` (r:1 w:1)
/// Proof: `Preimage::RequestStatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
/// Storage: `Parameters::Parameters` (r:2 w:0)
/// Proof: `Parameters::Parameters` (`max_values`: None, `max_size`: Some(36), added: 2511, mode: `MaxEncodedLen`)
/// Storage: `Balances::Holds` (r:1 w:1)
/// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(193), added: 2668, mode: `MaxEncodedLen`)
/// Proof: `Preimage::RequestStatusFor` (`max_values`: None, `max_size`: Some(75), added: 2550, mode: `MaxEncodedLen`)
/// Storage: `Preimage::PreimageFor` (r:0 w:1)
/// Proof: `Preimage::PreimageFor` (`max_values`: None, `max_size`: Some(4194344), added: 4196819, mode: `MaxEncodedLen`)
/// The range of component `s` is `[0, 4194304]`.
fn note_preimage(s: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `112`
// Estimated: `6012`
// Minimum execution time: 48_893_000 picoseconds.
Weight::from_parts(44_072_327, 6012)
// Standard Error: 2
.saturating_add(Weight::from_parts(1_684, 0).saturating_mul(s.into()))
.saturating_add(RocksDbWeight::get().reads(5_u64))
.saturating_add(RocksDbWeight::get().writes(3_u64))
// Measured: `42`
// Estimated: `3556`
// Minimum execution time: 15_936_000 picoseconds.
Weight::from_parts(16_271_000, 3556)
// Standard Error: 1
.saturating_add(Weight::from_parts(1_916, 0).saturating_mul(s.into()))
.saturating_add(RocksDbWeight::get().reads(2_u64))
.saturating_add(RocksDbWeight::get().writes(2_u64))
}
/// Storage: `Preimage::StatusFor` (r:1 w:0)
/// Proof: `Preimage::StatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
/// Storage: `Preimage::RequestStatusFor` (r:1 w:1)
/// Proof: `Preimage::RequestStatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
/// Proof: `Preimage::RequestStatusFor` (`max_values`: None, `max_size`: Some(75), added: 2550, mode: `MaxEncodedLen`)
/// Storage: `Preimage::PreimageFor` (r:0 w:1)
/// Proof: `Preimage::PreimageFor` (`max_values`: None, `max_size`: Some(4194344), added: 4196819, mode: `MaxEncodedLen`)
/// The range of component `s` is `[0, 4194304]`.
fn note_requested_preimage(s: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `173`
// Measured: `106`
// Estimated: `3556`
// Minimum execution time: 15_675_000 picoseconds.
Weight::from_parts(4_564_145, 3556)
// Minimum execution time: 16_468_000 picoseconds.
Weight::from_parts(17_031_000, 3556)
// Standard Error: 2
.saturating_add(Weight::from_parts(1_678, 0).saturating_mul(s.into()))
.saturating_add(Weight::from_parts(1_948, 0).saturating_mul(s.into()))
.saturating_add(RocksDbWeight::get().reads(2_u64))
.saturating_add(RocksDbWeight::get().writes(2_u64))
}
/// Storage: `Preimage::StatusFor` (r:1 w:0)
/// Proof: `Preimage::StatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
/// Storage: `Preimage::RequestStatusFor` (r:1 w:1)
/// Proof: `Preimage::RequestStatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
/// Proof: `Preimage::RequestStatusFor` (`max_values`: None, `max_size`: Some(75), added: 2550, mode: `MaxEncodedLen`)
/// Storage: `Preimage::PreimageFor` (r:0 w:1)
/// Proof: `Preimage::PreimageFor` (`max_values`: None, `max_size`: Some(4194344), added: 4196819, mode: `MaxEncodedLen`)
/// The range of component `s` is `[0, 4194304]`.
fn note_no_deposit_preimage(s: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `173`
// Measured: `106`
// Estimated: `3556`
// Minimum execution time: 14_959_000 picoseconds.
Weight::from_parts(15_335_000, 3556)
// Minimum execution time: 16_342_000 picoseconds.
Weight::from_parts(16_535_000, 3556)
// Standard Error: 1
.saturating_add(Weight::from_parts(1_687, 0).saturating_mul(s.into()))
.saturating_add(Weight::from_parts(1_906, 0).saturating_mul(s.into()))
.saturating_add(RocksDbWeight::get().reads(2_u64))
.saturating_add(RocksDbWeight::get().writes(2_u64))
}
/// Storage: `Preimage::StatusFor` (r:1 w:0)
/// Proof: `Preimage::StatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
/// Storage: `Preimage::RequestStatusFor` (r:1 w:1)
/// Proof: `Preimage::RequestStatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
/// Storage: `Balances::Holds` (r:1 w:1)
/// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(193), added: 2668, mode: `MaxEncodedLen`)
/// Proof: `Preimage::RequestStatusFor` (`max_values`: None, `max_size`: Some(75), added: 2550, mode: `MaxEncodedLen`)
/// Storage: `Preimage::PreimageFor` (r:0 w:1)
/// Proof: `Preimage::PreimageFor` (`max_values`: None, `max_size`: Some(4194344), added: 4196819, mode: `MaxEncodedLen`)
fn unnote_preimage() -> Weight {
// Proof Size summary in bytes:
// Measured: `311`
// Estimated: `3658`
// Minimum execution time: 47_378_000 picoseconds.
Weight::from_parts(48_776_000, 3658)
.saturating_add(RocksDbWeight::get().reads(3_u64))
.saturating_add(RocksDbWeight::get().writes(3_u64))
// Measured: `172`
// Estimated: `3556`
// Minimum execution time: 31_047_000 picoseconds.
Weight::from_parts(34_099_000, 3556)
.saturating_add(RocksDbWeight::get().reads(2_u64))
.saturating_add(RocksDbWeight::get().writes(2_u64))
}
/// Storage: `Preimage::StatusFor` (r:1 w:0)
/// Proof: `Preimage::StatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
/// Storage: `Preimage::RequestStatusFor` (r:1 w:1)
/// Proof: `Preimage::RequestStatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
/// Proof: `Preimage::RequestStatusFor` (`max_values`: None, `max_size`: Some(75), added: 2550, mode: `MaxEncodedLen`)
/// Storage: `Preimage::PreimageFor` (r:0 w:1)
/// Proof: `Preimage::PreimageFor` (`max_values`: None, `max_size`: Some(4194344), added: 4196819, mode: `MaxEncodedLen`)
fn unnote_no_deposit_preimage() -> Weight {
// Proof Size summary in bytes:
// Measured: `211`
// Measured: `144`
// Estimated: `3556`
// Minimum execution time: 20_939_000 picoseconds.
Weight::from_parts(21_577_000, 3556)
// Minimum execution time: 32_559_000 picoseconds.
Weight::from_parts(36_677_000, 3556)
.saturating_add(RocksDbWeight::get().reads(2_u64))
.saturating_add(RocksDbWeight::get().writes(2_u64))
}
/// Storage: `Preimage::StatusFor` (r:1 w:0)
/// Proof: `Preimage::StatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
/// Storage: `Preimage::RequestStatusFor` (r:1 w:1)
/// Proof: `Preimage::RequestStatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
/// Proof: `Preimage::RequestStatusFor` (`max_values`: None, `max_size`: Some(75), added: 2550, mode: `MaxEncodedLen`)
fn request_preimage() -> Weight {
// Proof Size summary in bytes:
// Measured: `255`
// Measured: `172`
// Estimated: `3556`
// Minimum execution time: 17_945_000 picoseconds.
Weight::from_parts(18_448_000, 3556)
// Minimum execution time: 27_887_000 picoseconds.
Weight::from_parts(30_303_000, 3556)
.saturating_add(RocksDbWeight::get().reads(2_u64))
.saturating_add(RocksDbWeight::get().writes(1_u64))
}
/// Storage: `Preimage::StatusFor` (r:1 w:0)
/// Proof: `Preimage::StatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
/// Storage: `Preimage::RequestStatusFor` (r:1 w:1)
/// Proof: `Preimage::RequestStatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
/// Proof: `Preimage::RequestStatusFor` (`max_values`: None, `max_size`: Some(75), added: 2550, mode: `MaxEncodedLen`)
fn request_no_deposit_preimage() -> Weight {
// Proof Size summary in bytes:
// Measured: `211`
// Measured: `144`
// Estimated: `3556`
// Minimum execution time: 12_132_000 picoseconds.
Weight::from_parts(12_710_000, 3556)
// Minimum execution time: 17_256_000 picoseconds.
Weight::from_parts(19_481_000, 3556)
.saturating_add(RocksDbWeight::get().reads(2_u64))
.saturating_add(RocksDbWeight::get().writes(1_u64))
}
/// Storage: `Preimage::StatusFor` (r:1 w:0)
/// Proof: `Preimage::StatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
/// Storage: `Preimage::RequestStatusFor` (r:1 w:1)
/// Proof: `Preimage::RequestStatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
/// Proof: `Preimage::RequestStatusFor` (`max_values`: None, `max_size`: Some(75), added: 2550, mode: `MaxEncodedLen`)
fn request_unnoted_preimage() -> Weight {
// Proof Size summary in bytes:
// Measured: `109`
// Measured: `42`
// Estimated: `3556`
// Minimum execution time: 13_014_000 picoseconds.
Weight::from_parts(13_726_000, 3556)
// Minimum execution time: 22_344_000 picoseconds.
Weight::from_parts(23_868_000, 3556)
.saturating_add(RocksDbWeight::get().reads(2_u64))
.saturating_add(RocksDbWeight::get().writes(1_u64))
}
/// Storage: `Preimage::StatusFor` (r:1 w:0)
/// Proof: `Preimage::StatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
/// Storage: `Preimage::RequestStatusFor` (r:1 w:1)
/// Proof: `Preimage::RequestStatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
/// Proof: `Preimage::RequestStatusFor` (`max_values`: None, `max_size`: Some(75), added: 2550, mode: `MaxEncodedLen`)
fn request_requested_preimage() -> Weight {
// Proof Size summary in bytes:
// Measured: `173`
// Measured: `106`
// Estimated: `3556`
// Minimum execution time: 9_785_000 picoseconds.
Weight::from_parts(10_266_000, 3556)
// Minimum execution time: 10_542_000 picoseconds.
Weight::from_parts(11_571_000, 3556)
.saturating_add(RocksDbWeight::get().reads(2_u64))
.saturating_add(RocksDbWeight::get().writes(1_u64))
}
/// Storage: `Preimage::StatusFor` (r:1 w:0)
/// Proof: `Preimage::StatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
/// Storage: `Preimage::RequestStatusFor` (r:1 w:1)
/// Proof: `Preimage::RequestStatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
/// Proof: `Preimage::RequestStatusFor` (`max_values`: None, `max_size`: Some(75), added: 2550, mode: `MaxEncodedLen`)
/// Storage: `Preimage::PreimageFor` (r:0 w:1)
/// Proof: `Preimage::PreimageFor` (`max_values`: None, `max_size`: Some(4194344), added: 4196819, mode: `MaxEncodedLen`)
fn unrequest_preimage() -> Weight {
// Proof Size summary in bytes:
// Measured: `211`
// Measured: `144`
// Estimated: `3556`
// Minimum execution time: 18_764_000 picoseconds.
Weight::from_parts(19_635_000, 3556)
// Minimum execution time: 29_054_000 picoseconds.
Weight::from_parts(32_996_000, 3556)
.saturating_add(RocksDbWeight::get().reads(2_u64))
.saturating_add(RocksDbWeight::get().writes(2_u64))
}
/// Storage: `Preimage::StatusFor` (r:1 w:0)
/// Proof: `Preimage::StatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
/// Storage: `Preimage::RequestStatusFor` (r:1 w:1)
/// Proof: `Preimage::RequestStatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
/// Proof: `Preimage::RequestStatusFor` (`max_values`: None, `max_size`: Some(75), added: 2550, mode: `MaxEncodedLen`)
fn unrequest_unnoted_preimage() -> Weight {
// Proof Size summary in bytes:
// Measured: `173`
// Measured: `106`
// Estimated: `3556`
// Minimum execution time: 9_624_000 picoseconds.
Weight::from_parts(10_044_000, 3556)
// Minimum execution time: 10_775_000 picoseconds.
Weight::from_parts(11_937_000, 3556)
.saturating_add(RocksDbWeight::get().reads(2_u64))
.saturating_add(RocksDbWeight::get().writes(1_u64))
}
/// Storage: `Preimage::StatusFor` (r:1 w:0)
/// Proof: `Preimage::StatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
/// Storage: `Preimage::RequestStatusFor` (r:1 w:1)
/// Proof: `Preimage::RequestStatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
/// Proof: `Preimage::RequestStatusFor` (`max_values`: None, `max_size`: Some(75), added: 2550, mode: `MaxEncodedLen`)
fn unrequest_multi_referenced_preimage() -> Weight {
// Proof Size summary in bytes:
// Measured: `173`
// Measured: `106`
// Estimated: `3556`
// Minimum execution time: 9_432_000 picoseconds.
Weight::from_parts(9_991_000, 3556)
// Minimum execution time: 10_696_000 picoseconds.
Weight::from_parts(11_717_000, 3556)
.saturating_add(RocksDbWeight::get().reads(2_u64))
.saturating_add(RocksDbWeight::get().writes(1_u64))
}
/// Storage: `Preimage::StatusFor` (r:1023 w:1023)
/// Storage: `Preimage::StatusFor` (r:1024 w:1024)
/// Proof: `Preimage::StatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
/// Storage: `System::Account` (r:1023 w:1023)
/// Storage: `System::Account` (r:1 w:1)
/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
/// Storage: `Parameters::Parameters` (r:2 w:0)
/// Proof: `Parameters::Parameters` (`max_values`: None, `max_size`: Some(36), added: 2511, mode: `MaxEncodedLen`)
/// Storage: `Balances::Holds` (r:1023 w:1023)
/// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(193), added: 2668, mode: `MaxEncodedLen`)
/// Storage: `Preimage::RequestStatusFor` (r:0 w:1023)
/// Proof: `Preimage::RequestStatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
/// The range of component `n` is `[1, 1024]`.
/// Storage: `Preimage::RequestStatusFor` (r:0 w:1024)
/// Proof: `Preimage::RequestStatusFor` (`max_values`: None, `max_size`: Some(75), added: 2550, mode: `MaxEncodedLen`)
/// The range of component `n` is `[0, 1024]`.
fn ensure_updated(n: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `0 + n * (227 ±0)`
// Estimated: `6012 + n * (2668 ±0)`
// Minimum execution time: 54_056_000 picoseconds.
Weight::from_parts(54_912_000, 6012)
// Standard Error: 42_469
.saturating_add(Weight::from_parts(50_710_258, 0).saturating_mul(n.into()))
.saturating_add(RocksDbWeight::get().reads(2_u64))
.saturating_add(RocksDbWeight::get().reads((3_u64).saturating_mul(n.into())))
.saturating_add(RocksDbWeight::get().writes((4_u64).saturating_mul(n.into())))
.saturating_add(Weight::from_parts(0, 2668).saturating_mul(n.into()))
// Measured: `193 + n * (91 ±0)`
// Estimated: `3593 + n * (2566 ±0)`
// Minimum execution time: 2_452_000 picoseconds.
Weight::from_parts(2_641_000, 3593)
// Standard Error: 19_797
.saturating_add(Weight::from_parts(15_620_946, 0).saturating_mul(n.into()))
.saturating_add(RocksDbWeight::get().reads(1_u64))
.saturating_add(RocksDbWeight::get().reads((1_u64).saturating_mul(n.into())))
.saturating_add(RocksDbWeight::get().writes(1_u64))
.saturating_add(RocksDbWeight::get().writes((2_u64).saturating_mul(n.into())))
.saturating_add(Weight::from_parts(0, 2566).saturating_mul(n.into()))
}
}
+181 -196
View File
@@ -15,16 +15,16 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//! Autogenerated weights for `pallet_proxy`
//! Autogenerated weights for pallet_proxy
//!
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0
//! DATE: 2024-03-01, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
//! DATE: 2023-06-16, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! WORST CASE MAP SIZE: `1000000`
//! HOSTNAME: `runner-bn-ce5rx-project-674-concurrent-0`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz`
//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("dev")`, DB CACHE: `1024`
//! HOSTNAME: `runner-e8ezs4ez-project-145-concurrent-0`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz`
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024
// Executed Command:
// ./target/production/substrate-node
// ./target/production/substrate
// benchmark
// pallet
// --chain=dev
@@ -35,11 +35,12 @@
// --no-median-slopes
// --no-min-squares
// --extrinsic=*
// --execution=wasm
// --wasm-execution=compiled
// --heap-pages=4096
// --output=./substrate/frame/proxy/src/weights.rs
// --header=./substrate/HEADER-APACHE2
// --template=./substrate/.maintain/frame-weight-template.hbs
// --output=./frame/proxy/src/weights.rs
// --header=./HEADER-APACHE2
// --template=./.maintain/frame-weight-template.hbs
#![cfg_attr(rustfmt, rustfmt_skip)]
#![allow(unused_parens)]
@@ -49,7 +50,7 @@
use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}};
use core::marker::PhantomData;
/// Weight functions needed for `pallet_proxy`.
/// Weight functions needed for pallet_proxy.
pub trait WeightInfo {
fn proxy(p: u32, ) -> Weight;
fn proxy_announced(a: u32, p: u32, ) -> Weight;
@@ -63,352 +64,336 @@ pub trait WeightInfo {
fn kill_pure(p: u32, ) -> Weight;
}
/// Weights for `pallet_proxy` using the Substrate node and recommended hardware.
/// Weights for pallet_proxy using the Substrate node and recommended hardware.
pub struct SubstrateWeight<T>(PhantomData<T>);
impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
/// Storage: `Proxy::Proxies` (r:1 w:0)
/// Proof: `Proxy::Proxies` (`max_values`: None, `max_size`: Some(1241), added: 3716, mode: `MaxEncodedLen`)
/// Storage: `SafeMode::EnteredUntil` (r:1 w:0)
/// Proof: `SafeMode::EnteredUntil` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
/// Storage: `TxPause::PausedCalls` (r:1 w:0)
/// Proof: `TxPause::PausedCalls` (`max_values`: None, `max_size`: Some(532), added: 3007, mode: `MaxEncodedLen`)
/// Storage: Proxy Proxies (r:1 w:0)
/// Proof: Proxy Proxies (max_values: None, max_size: Some(1241), added: 3716, mode: MaxEncodedLen)
/// The range of component `p` is `[1, 31]`.
fn proxy(p: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `306 + p * (37 ±0)`
// Measured: `161 + p * (37 ±0)`
// Estimated: `4706`
// Minimum execution time: 18_437_000 picoseconds.
Weight::from_parts(19_610_577, 4706)
// Standard Error: 2_531
.saturating_add(Weight::from_parts(26_001, 0).saturating_mul(p.into()))
.saturating_add(T::DbWeight::get().reads(3_u64))
// Minimum execution time: 15_182_000 picoseconds.
Weight::from_parts(15_919_146, 4706)
// Standard Error: 1_586
.saturating_add(Weight::from_parts(31_768, 0).saturating_mul(p.into()))
.saturating_add(T::DbWeight::get().reads(1_u64))
}
/// Storage: `Proxy::Proxies` (r:1 w:0)
/// Proof: `Proxy::Proxies` (`max_values`: None, `max_size`: Some(1241), added: 3716, mode: `MaxEncodedLen`)
/// Storage: `Proxy::Announcements` (r:1 w:1)
/// Proof: `Proxy::Announcements` (`max_values`: None, `max_size`: Some(2233), added: 4708, mode: `MaxEncodedLen`)
/// Storage: `System::Account` (r:1 w:1)
/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
/// Storage: `SafeMode::EnteredUntil` (r:1 w:0)
/// Proof: `SafeMode::EnteredUntil` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
/// Storage: `TxPause::PausedCalls` (r:1 w:0)
/// Proof: `TxPause::PausedCalls` (`max_values`: None, `max_size`: Some(532), added: 3007, mode: `MaxEncodedLen`)
/// Storage: Proxy Proxies (r:1 w:0)
/// Proof: Proxy Proxies (max_values: None, max_size: Some(1241), added: 3716, mode: MaxEncodedLen)
/// Storage: Proxy Announcements (r:1 w:1)
/// Proof: Proxy Announcements (max_values: None, max_size: Some(2233), added: 4708, mode: MaxEncodedLen)
/// Storage: System Account (r:1 w:1)
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
/// The range of component `a` is `[0, 31]`.
/// The range of component `p` is `[1, 31]`.
fn proxy_announced(a: u32, p: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `633 + a * (68 ±0) + p * (37 ±0)`
// Measured: `488 + a * (68 ±0) + p * (37 ±0)`
// Estimated: `5698`
// Minimum execution time: 40_426_000 picoseconds.
Weight::from_parts(40_200_295, 5698)
// Standard Error: 2_922
.saturating_add(Weight::from_parts(161_885, 0).saturating_mul(a.into()))
// Standard Error: 3_019
.saturating_add(Weight::from_parts(69_710, 0).saturating_mul(p.into()))
.saturating_add(T::DbWeight::get().reads(5_u64))
// Minimum execution time: 40_256_000 picoseconds.
Weight::from_parts(40_373_648, 5698)
// Standard Error: 3_978
.saturating_add(Weight::from_parts(166_936, 0).saturating_mul(a.into()))
// Standard Error: 4_110
.saturating_add(Weight::from_parts(54_329, 0).saturating_mul(p.into()))
.saturating_add(T::DbWeight::get().reads(3_u64))
.saturating_add(T::DbWeight::get().writes(2_u64))
}
/// Storage: `Proxy::Announcements` (r:1 w:1)
/// Proof: `Proxy::Announcements` (`max_values`: None, `max_size`: Some(2233), added: 4708, mode: `MaxEncodedLen`)
/// Storage: `System::Account` (r:1 w:1)
/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
/// Storage: Proxy Announcements (r:1 w:1)
/// Proof: Proxy Announcements (max_values: None, max_size: Some(2233), added: 4708, mode: MaxEncodedLen)
/// Storage: System Account (r:1 w:1)
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
/// The range of component `a` is `[0, 31]`.
/// The range of component `p` is `[1, 31]`.
fn remove_announcement(a: u32, p: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `403 + a * (68 ±0)`
// Estimated: `5698`
// Minimum execution time: 21_905_000 picoseconds.
Weight::from_parts(22_717_430, 5698)
// Standard Error: 2_004
.saturating_add(Weight::from_parts(153_390, 0).saturating_mul(a.into()))
// Standard Error: 2_071
.saturating_add(Weight::from_parts(5_676, 0).saturating_mul(p.into()))
// Minimum execution time: 25_040_000 picoseconds.
Weight::from_parts(25_112_188, 5698)
// Standard Error: 2_143
.saturating_add(Weight::from_parts(189_027, 0).saturating_mul(a.into()))
// Standard Error: 2_214
.saturating_add(Weight::from_parts(26_683, 0).saturating_mul(p.into()))
.saturating_add(T::DbWeight::get().reads(2_u64))
.saturating_add(T::DbWeight::get().writes(2_u64))
}
/// Storage: `Proxy::Announcements` (r:1 w:1)
/// Proof: `Proxy::Announcements` (`max_values`: None, `max_size`: Some(2233), added: 4708, mode: `MaxEncodedLen`)
/// Storage: `System::Account` (r:1 w:1)
/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
/// Storage: Proxy Announcements (r:1 w:1)
/// Proof: Proxy Announcements (max_values: None, max_size: Some(2233), added: 4708, mode: MaxEncodedLen)
/// Storage: System Account (r:1 w:1)
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
/// The range of component `a` is `[0, 31]`.
/// The range of component `p` is `[1, 31]`.
fn reject_announcement(a: u32, p: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `403 + a * (68 ±0)`
// Estimated: `5698`
// Minimum execution time: 21_974_000 picoseconds.
Weight::from_parts(22_484_324, 5698)
// Standard Error: 1_846
.saturating_add(Weight::from_parts(153_904, 0).saturating_mul(a.into()))
// Standard Error: 1_907
.saturating_add(Weight::from_parts(9_616, 0).saturating_mul(p.into()))
// Minimum execution time: 24_884_000 picoseconds.
Weight::from_parts(25_359_291, 5698)
// Standard Error: 2_019
.saturating_add(Weight::from_parts(181_470, 0).saturating_mul(a.into()))
// Standard Error: 2_086
.saturating_add(Weight::from_parts(17_725, 0).saturating_mul(p.into()))
.saturating_add(T::DbWeight::get().reads(2_u64))
.saturating_add(T::DbWeight::get().writes(2_u64))
}
/// Storage: `Proxy::Proxies` (r:1 w:0)
/// Proof: `Proxy::Proxies` (`max_values`: None, `max_size`: Some(1241), added: 3716, mode: `MaxEncodedLen`)
/// Storage: `Proxy::Announcements` (r:1 w:1)
/// Proof: `Proxy::Announcements` (`max_values`: None, `max_size`: Some(2233), added: 4708, mode: `MaxEncodedLen`)
/// Storage: `System::Account` (r:1 w:1)
/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
/// Storage: Proxy Proxies (r:1 w:0)
/// Proof: Proxy Proxies (max_values: None, max_size: Some(1241), added: 3716, mode: MaxEncodedLen)
/// Storage: Proxy Announcements (r:1 w:1)
/// Proof: Proxy Announcements (max_values: None, max_size: Some(2233), added: 4708, mode: MaxEncodedLen)
/// Storage: System Account (r:1 w:1)
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
/// The range of component `a` is `[0, 31]`.
/// The range of component `p` is `[1, 31]`.
fn announce(a: u32, p: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `420 + a * (68 ±0) + p * (37 ±0)`
// Estimated: `5698`
// Minimum execution time: 30_454_000 picoseconds.
Weight::from_parts(32_128_158, 5698)
// Standard Error: 3_778
.saturating_add(Weight::from_parts(137_366, 0).saturating_mul(a.into()))
// Standard Error: 3_904
.saturating_add(Weight::from_parts(53_040, 0).saturating_mul(p.into()))
// Minimum execution time: 35_039_000 picoseconds.
Weight::from_parts(36_727_868, 5698)
// Standard Error: 4_463
.saturating_add(Weight::from_parts(167_060, 0).saturating_mul(a.into()))
// Standard Error: 4_611
.saturating_add(Weight::from_parts(59_836, 0).saturating_mul(p.into()))
.saturating_add(T::DbWeight::get().reads(3_u64))
.saturating_add(T::DbWeight::get().writes(2_u64))
}
/// Storage: `Proxy::Proxies` (r:1 w:1)
/// Proof: `Proxy::Proxies` (`max_values`: None, `max_size`: Some(1241), added: 3716, mode: `MaxEncodedLen`)
/// Storage: Proxy Proxies (r:1 w:1)
/// Proof: Proxy Proxies (max_values: None, max_size: Some(1241), added: 3716, mode: MaxEncodedLen)
/// The range of component `p` is `[1, 31]`.
fn add_proxy(p: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `161 + p * (37 ±0)`
// Estimated: `4706`
// Minimum execution time: 21_391_000 picoseconds.
Weight::from_parts(22_202_614, 4706)
// Standard Error: 1_750
.saturating_add(Weight::from_parts(49_639, 0).saturating_mul(p.into()))
// Minimum execution time: 25_697_000 picoseconds.
Weight::from_parts(26_611_090, 4706)
// Standard Error: 2_306
.saturating_add(Weight::from_parts(85_165, 0).saturating_mul(p.into()))
.saturating_add(T::DbWeight::get().reads(1_u64))
.saturating_add(T::DbWeight::get().writes(1_u64))
}
/// Storage: `Proxy::Proxies` (r:1 w:1)
/// Proof: `Proxy::Proxies` (`max_values`: None, `max_size`: Some(1241), added: 3716, mode: `MaxEncodedLen`)
/// Storage: Proxy Proxies (r:1 w:1)
/// Proof: Proxy Proxies (max_values: None, max_size: Some(1241), added: 3716, mode: MaxEncodedLen)
/// The range of component `p` is `[1, 31]`.
fn remove_proxy(p: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `161 + p * (37 ±0)`
// Estimated: `4706`
// Minimum execution time: 21_375_000 picoseconds.
Weight::from_parts(22_392_601, 4706)
// Standard Error: 2_415
.saturating_add(Weight::from_parts(40_345, 0).saturating_mul(p.into()))
// Minimum execution time: 25_638_000 picoseconds.
Weight::from_parts(26_904_510, 4706)
// Standard Error: 2_669
.saturating_add(Weight::from_parts(61_668, 0).saturating_mul(p.into()))
.saturating_add(T::DbWeight::get().reads(1_u64))
.saturating_add(T::DbWeight::get().writes(1_u64))
}
/// Storage: `Proxy::Proxies` (r:1 w:1)
/// Proof: `Proxy::Proxies` (`max_values`: None, `max_size`: Some(1241), added: 3716, mode: `MaxEncodedLen`)
/// Storage: Proxy Proxies (r:1 w:1)
/// Proof: Proxy Proxies (max_values: None, max_size: Some(1241), added: 3716, mode: MaxEncodedLen)
/// The range of component `p` is `[1, 31]`.
fn remove_proxies(p: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `161 + p * (37 ±0)`
// Estimated: `4706`
// Minimum execution time: 19_833_000 picoseconds.
Weight::from_parts(20_839_747, 4706)
// Standard Error: 1_742
.saturating_add(Weight::from_parts(40_874, 0).saturating_mul(p.into()))
// Minimum execution time: 22_737_000 picoseconds.
Weight::from_parts(23_618_441, 4706)
// Standard Error: 1_729
.saturating_add(Weight::from_parts(44_009, 0).saturating_mul(p.into()))
.saturating_add(T::DbWeight::get().reads(1_u64))
.saturating_add(T::DbWeight::get().writes(1_u64))
}
/// Storage: `Proxy::Proxies` (r:1 w:1)
/// Proof: `Proxy::Proxies` (`max_values`: None, `max_size`: Some(1241), added: 3716, mode: `MaxEncodedLen`)
/// Storage: Proxy Proxies (r:1 w:1)
/// Proof: Proxy Proxies (max_values: None, max_size: Some(1241), added: 3716, mode: MaxEncodedLen)
/// The range of component `p` is `[1, 31]`.
fn create_pure(p: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `173`
// Estimated: `4706`
// Minimum execution time: 22_231_000 picoseconds.
Weight::from_parts(23_370_995, 4706)
// Standard Error: 1_521
.saturating_add(Weight::from_parts(4_892, 0).saturating_mul(p.into()))
// Minimum execution time: 27_364_000 picoseconds.
Weight::from_parts(28_632_271, 4706)
// Standard Error: 1_613
.saturating_add(Weight::from_parts(2_453, 0).saturating_mul(p.into()))
.saturating_add(T::DbWeight::get().reads(1_u64))
.saturating_add(T::DbWeight::get().writes(1_u64))
}
/// Storage: `Proxy::Proxies` (r:1 w:1)
/// Proof: `Proxy::Proxies` (`max_values`: None, `max_size`: Some(1241), added: 3716, mode: `MaxEncodedLen`)
/// Storage: Proxy Proxies (r:1 w:1)
/// Proof: Proxy Proxies (max_values: None, max_size: Some(1241), added: 3716, mode: MaxEncodedLen)
/// The range of component `p` is `[0, 30]`.
fn kill_pure(p: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `198 + p * (37 ±0)`
// Estimated: `4706`
// Minimum execution time: 20_614_000 picoseconds.
Weight::from_parts(21_845_970, 4706)
// Standard Error: 1_636
.saturating_add(Weight::from_parts(34_480, 0).saturating_mul(p.into()))
// Minimum execution time: 23_552_000 picoseconds.
Weight::from_parts(24_874_553, 4706)
// Standard Error: 1_919
.saturating_add(Weight::from_parts(38_799, 0).saturating_mul(p.into()))
.saturating_add(T::DbWeight::get().reads(1_u64))
.saturating_add(T::DbWeight::get().writes(1_u64))
}
}
// For backwards compatibility and tests.
// For backwards compatibility and tests
impl WeightInfo for () {
/// Storage: `Proxy::Proxies` (r:1 w:0)
/// Proof: `Proxy::Proxies` (`max_values`: None, `max_size`: Some(1241), added: 3716, mode: `MaxEncodedLen`)
/// Storage: `SafeMode::EnteredUntil` (r:1 w:0)
/// Proof: `SafeMode::EnteredUntil` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
/// Storage: `TxPause::PausedCalls` (r:1 w:0)
/// Proof: `TxPause::PausedCalls` (`max_values`: None, `max_size`: Some(532), added: 3007, mode: `MaxEncodedLen`)
/// Storage: Proxy Proxies (r:1 w:0)
/// Proof: Proxy Proxies (max_values: None, max_size: Some(1241), added: 3716, mode: MaxEncodedLen)
/// The range of component `p` is `[1, 31]`.
fn proxy(p: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `306 + p * (37 ±0)`
// Measured: `161 + p * (37 ±0)`
// Estimated: `4706`
// Minimum execution time: 18_437_000 picoseconds.
Weight::from_parts(19_610_577, 4706)
// Standard Error: 2_531
.saturating_add(Weight::from_parts(26_001, 0).saturating_mul(p.into()))
.saturating_add(RocksDbWeight::get().reads(3_u64))
// Minimum execution time: 15_182_000 picoseconds.
Weight::from_parts(15_919_146, 4706)
// Standard Error: 1_586
.saturating_add(Weight::from_parts(31_768, 0).saturating_mul(p.into()))
.saturating_add(RocksDbWeight::get().reads(1_u64))
}
/// Storage: `Proxy::Proxies` (r:1 w:0)
/// Proof: `Proxy::Proxies` (`max_values`: None, `max_size`: Some(1241), added: 3716, mode: `MaxEncodedLen`)
/// Storage: `Proxy::Announcements` (r:1 w:1)
/// Proof: `Proxy::Announcements` (`max_values`: None, `max_size`: Some(2233), added: 4708, mode: `MaxEncodedLen`)
/// Storage: `System::Account` (r:1 w:1)
/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
/// Storage: `SafeMode::EnteredUntil` (r:1 w:0)
/// Proof: `SafeMode::EnteredUntil` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
/// Storage: `TxPause::PausedCalls` (r:1 w:0)
/// Proof: `TxPause::PausedCalls` (`max_values`: None, `max_size`: Some(532), added: 3007, mode: `MaxEncodedLen`)
/// Storage: Proxy Proxies (r:1 w:0)
/// Proof: Proxy Proxies (max_values: None, max_size: Some(1241), added: 3716, mode: MaxEncodedLen)
/// Storage: Proxy Announcements (r:1 w:1)
/// Proof: Proxy Announcements (max_values: None, max_size: Some(2233), added: 4708, mode: MaxEncodedLen)
/// Storage: System Account (r:1 w:1)
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
/// The range of component `a` is `[0, 31]`.
/// The range of component `p` is `[1, 31]`.
fn proxy_announced(a: u32, p: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `633 + a * (68 ±0) + p * (37 ±0)`
// Measured: `488 + a * (68 ±0) + p * (37 ±0)`
// Estimated: `5698`
// Minimum execution time: 40_426_000 picoseconds.
Weight::from_parts(40_200_295, 5698)
// Standard Error: 2_922
.saturating_add(Weight::from_parts(161_885, 0).saturating_mul(a.into()))
// Standard Error: 3_019
.saturating_add(Weight::from_parts(69_710, 0).saturating_mul(p.into()))
.saturating_add(RocksDbWeight::get().reads(5_u64))
// Minimum execution time: 40_256_000 picoseconds.
Weight::from_parts(40_373_648, 5698)
// Standard Error: 3_978
.saturating_add(Weight::from_parts(166_936, 0).saturating_mul(a.into()))
// Standard Error: 4_110
.saturating_add(Weight::from_parts(54_329, 0).saturating_mul(p.into()))
.saturating_add(RocksDbWeight::get().reads(3_u64))
.saturating_add(RocksDbWeight::get().writes(2_u64))
}
/// Storage: `Proxy::Announcements` (r:1 w:1)
/// Proof: `Proxy::Announcements` (`max_values`: None, `max_size`: Some(2233), added: 4708, mode: `MaxEncodedLen`)
/// Storage: `System::Account` (r:1 w:1)
/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
/// Storage: Proxy Announcements (r:1 w:1)
/// Proof: Proxy Announcements (max_values: None, max_size: Some(2233), added: 4708, mode: MaxEncodedLen)
/// Storage: System Account (r:1 w:1)
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
/// The range of component `a` is `[0, 31]`.
/// The range of component `p` is `[1, 31]`.
fn remove_announcement(a: u32, p: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `403 + a * (68 ±0)`
// Estimated: `5698`
// Minimum execution time: 21_905_000 picoseconds.
Weight::from_parts(22_717_430, 5698)
// Standard Error: 2_004
.saturating_add(Weight::from_parts(153_390, 0).saturating_mul(a.into()))
// Standard Error: 2_071
.saturating_add(Weight::from_parts(5_676, 0).saturating_mul(p.into()))
// Minimum execution time: 25_040_000 picoseconds.
Weight::from_parts(25_112_188, 5698)
// Standard Error: 2_143
.saturating_add(Weight::from_parts(189_027, 0).saturating_mul(a.into()))
// Standard Error: 2_214
.saturating_add(Weight::from_parts(26_683, 0).saturating_mul(p.into()))
.saturating_add(RocksDbWeight::get().reads(2_u64))
.saturating_add(RocksDbWeight::get().writes(2_u64))
}
/// Storage: `Proxy::Announcements` (r:1 w:1)
/// Proof: `Proxy::Announcements` (`max_values`: None, `max_size`: Some(2233), added: 4708, mode: `MaxEncodedLen`)
/// Storage: `System::Account` (r:1 w:1)
/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
/// Storage: Proxy Announcements (r:1 w:1)
/// Proof: Proxy Announcements (max_values: None, max_size: Some(2233), added: 4708, mode: MaxEncodedLen)
/// Storage: System Account (r:1 w:1)
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
/// The range of component `a` is `[0, 31]`.
/// The range of component `p` is `[1, 31]`.
fn reject_announcement(a: u32, p: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `403 + a * (68 ±0)`
// Estimated: `5698`
// Minimum execution time: 21_974_000 picoseconds.
Weight::from_parts(22_484_324, 5698)
// Standard Error: 1_846
.saturating_add(Weight::from_parts(153_904, 0).saturating_mul(a.into()))
// Standard Error: 1_907
.saturating_add(Weight::from_parts(9_616, 0).saturating_mul(p.into()))
// Minimum execution time: 24_884_000 picoseconds.
Weight::from_parts(25_359_291, 5698)
// Standard Error: 2_019
.saturating_add(Weight::from_parts(181_470, 0).saturating_mul(a.into()))
// Standard Error: 2_086
.saturating_add(Weight::from_parts(17_725, 0).saturating_mul(p.into()))
.saturating_add(RocksDbWeight::get().reads(2_u64))
.saturating_add(RocksDbWeight::get().writes(2_u64))
}
/// Storage: `Proxy::Proxies` (r:1 w:0)
/// Proof: `Proxy::Proxies` (`max_values`: None, `max_size`: Some(1241), added: 3716, mode: `MaxEncodedLen`)
/// Storage: `Proxy::Announcements` (r:1 w:1)
/// Proof: `Proxy::Announcements` (`max_values`: None, `max_size`: Some(2233), added: 4708, mode: `MaxEncodedLen`)
/// Storage: `System::Account` (r:1 w:1)
/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
/// Storage: Proxy Proxies (r:1 w:0)
/// Proof: Proxy Proxies (max_values: None, max_size: Some(1241), added: 3716, mode: MaxEncodedLen)
/// Storage: Proxy Announcements (r:1 w:1)
/// Proof: Proxy Announcements (max_values: None, max_size: Some(2233), added: 4708, mode: MaxEncodedLen)
/// Storage: System Account (r:1 w:1)
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
/// The range of component `a` is `[0, 31]`.
/// The range of component `p` is `[1, 31]`.
fn announce(a: u32, p: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `420 + a * (68 ±0) + p * (37 ±0)`
// Estimated: `5698`
// Minimum execution time: 30_454_000 picoseconds.
Weight::from_parts(32_128_158, 5698)
// Standard Error: 3_778
.saturating_add(Weight::from_parts(137_366, 0).saturating_mul(a.into()))
// Standard Error: 3_904
.saturating_add(Weight::from_parts(53_040, 0).saturating_mul(p.into()))
// Minimum execution time: 35_039_000 picoseconds.
Weight::from_parts(36_727_868, 5698)
// Standard Error: 4_463
.saturating_add(Weight::from_parts(167_060, 0).saturating_mul(a.into()))
// Standard Error: 4_611
.saturating_add(Weight::from_parts(59_836, 0).saturating_mul(p.into()))
.saturating_add(RocksDbWeight::get().reads(3_u64))
.saturating_add(RocksDbWeight::get().writes(2_u64))
}
/// Storage: `Proxy::Proxies` (r:1 w:1)
/// Proof: `Proxy::Proxies` (`max_values`: None, `max_size`: Some(1241), added: 3716, mode: `MaxEncodedLen`)
/// Storage: Proxy Proxies (r:1 w:1)
/// Proof: Proxy Proxies (max_values: None, max_size: Some(1241), added: 3716, mode: MaxEncodedLen)
/// The range of component `p` is `[1, 31]`.
fn add_proxy(p: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `161 + p * (37 ±0)`
// Estimated: `4706`
// Minimum execution time: 21_391_000 picoseconds.
Weight::from_parts(22_202_614, 4706)
// Standard Error: 1_750
.saturating_add(Weight::from_parts(49_639, 0).saturating_mul(p.into()))
// Minimum execution time: 25_697_000 picoseconds.
Weight::from_parts(26_611_090, 4706)
// Standard Error: 2_306
.saturating_add(Weight::from_parts(85_165, 0).saturating_mul(p.into()))
.saturating_add(RocksDbWeight::get().reads(1_u64))
.saturating_add(RocksDbWeight::get().writes(1_u64))
}
/// Storage: `Proxy::Proxies` (r:1 w:1)
/// Proof: `Proxy::Proxies` (`max_values`: None, `max_size`: Some(1241), added: 3716, mode: `MaxEncodedLen`)
/// Storage: Proxy Proxies (r:1 w:1)
/// Proof: Proxy Proxies (max_values: None, max_size: Some(1241), added: 3716, mode: MaxEncodedLen)
/// The range of component `p` is `[1, 31]`.
fn remove_proxy(p: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `161 + p * (37 ±0)`
// Estimated: `4706`
// Minimum execution time: 21_375_000 picoseconds.
Weight::from_parts(22_392_601, 4706)
// Standard Error: 2_415
.saturating_add(Weight::from_parts(40_345, 0).saturating_mul(p.into()))
// Minimum execution time: 25_638_000 picoseconds.
Weight::from_parts(26_904_510, 4706)
// Standard Error: 2_669
.saturating_add(Weight::from_parts(61_668, 0).saturating_mul(p.into()))
.saturating_add(RocksDbWeight::get().reads(1_u64))
.saturating_add(RocksDbWeight::get().writes(1_u64))
}
/// Storage: `Proxy::Proxies` (r:1 w:1)
/// Proof: `Proxy::Proxies` (`max_values`: None, `max_size`: Some(1241), added: 3716, mode: `MaxEncodedLen`)
/// Storage: Proxy Proxies (r:1 w:1)
/// Proof: Proxy Proxies (max_values: None, max_size: Some(1241), added: 3716, mode: MaxEncodedLen)
/// The range of component `p` is `[1, 31]`.
fn remove_proxies(p: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `161 + p * (37 ±0)`
// Estimated: `4706`
// Minimum execution time: 19_833_000 picoseconds.
Weight::from_parts(20_839_747, 4706)
// Standard Error: 1_742
.saturating_add(Weight::from_parts(40_874, 0).saturating_mul(p.into()))
// Minimum execution time: 22_737_000 picoseconds.
Weight::from_parts(23_618_441, 4706)
// Standard Error: 1_729
.saturating_add(Weight::from_parts(44_009, 0).saturating_mul(p.into()))
.saturating_add(RocksDbWeight::get().reads(1_u64))
.saturating_add(RocksDbWeight::get().writes(1_u64))
}
/// Storage: `Proxy::Proxies` (r:1 w:1)
/// Proof: `Proxy::Proxies` (`max_values`: None, `max_size`: Some(1241), added: 3716, mode: `MaxEncodedLen`)
/// Storage: Proxy Proxies (r:1 w:1)
/// Proof: Proxy Proxies (max_values: None, max_size: Some(1241), added: 3716, mode: MaxEncodedLen)
/// The range of component `p` is `[1, 31]`.
fn create_pure(p: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `173`
// Estimated: `4706`
// Minimum execution time: 22_231_000 picoseconds.
Weight::from_parts(23_370_995, 4706)
// Standard Error: 1_521
.saturating_add(Weight::from_parts(4_892, 0).saturating_mul(p.into()))
// Minimum execution time: 27_364_000 picoseconds.
Weight::from_parts(28_632_271, 4706)
// Standard Error: 1_613
.saturating_add(Weight::from_parts(2_453, 0).saturating_mul(p.into()))
.saturating_add(RocksDbWeight::get().reads(1_u64))
.saturating_add(RocksDbWeight::get().writes(1_u64))
}
/// Storage: `Proxy::Proxies` (r:1 w:1)
/// Proof: `Proxy::Proxies` (`max_values`: None, `max_size`: Some(1241), added: 3716, mode: `MaxEncodedLen`)
/// Storage: Proxy Proxies (r:1 w:1)
/// Proof: Proxy Proxies (max_values: None, max_size: Some(1241), added: 3716, mode: MaxEncodedLen)
/// The range of component `p` is `[0, 30]`.
fn kill_pure(p: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `198 + p * (37 ±0)`
// Estimated: `4706`
// Minimum execution time: 20_614_000 picoseconds.
Weight::from_parts(21_845_970, 4706)
// Standard Error: 1_636
.saturating_add(Weight::from_parts(34_480, 0).saturating_mul(p.into()))
// Minimum execution time: 23_552_000 picoseconds.
Weight::from_parts(24_874_553, 4706)
// Standard Error: 1_919
.saturating_add(Weight::from_parts(38_799, 0).saturating_mul(p.into()))
.saturating_add(RocksDbWeight::get().reads(1_u64))
.saturating_add(RocksDbWeight::get().writes(1_u64))
}
+171 -182
View File
@@ -15,16 +15,16 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//! Autogenerated weights for `pallet_ranked_collective`
//! Autogenerated weights for pallet_ranked_collective
//!
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0
//! DATE: 2024-03-01, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
//! DATE: 2023-06-16, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! WORST CASE MAP SIZE: `1000000`
//! HOSTNAME: `runner-bn-ce5rx-project-674-concurrent-0`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz`
//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("dev")`, DB CACHE: `1024`
//! HOSTNAME: `runner-e8ezs4ez-project-145-concurrent-0`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz`
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024
// Executed Command:
// ./target/production/substrate-node
// ./target/production/substrate
// benchmark
// pallet
// --chain=dev
@@ -35,11 +35,12 @@
// --no-median-slopes
// --no-min-squares
// --extrinsic=*
// --execution=wasm
// --wasm-execution=compiled
// --heap-pages=4096
// --output=./substrate/frame/ranked-collective/src/weights.rs
// --header=./substrate/HEADER-APACHE2
// --template=./substrate/.maintain/frame-weight-template.hbs
// --output=./frame/ranked-collective/src/weights.rs
// --header=./HEADER-APACHE2
// --template=./.maintain/frame-weight-template.hbs
#![cfg_attr(rustfmt, rustfmt_skip)]
#![allow(unused_parens)]
@@ -49,7 +50,7 @@
use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}};
use core::marker::PhantomData;
/// Weight functions needed for `pallet_ranked_collective`.
/// Weight functions needed for pallet_ranked_collective.
pub trait WeightInfo {
fn add_member() -> Weight;
fn remove_member(r: u32, ) -> Weight;
@@ -60,295 +61,283 @@ pub trait WeightInfo {
fn exchange_member() -> Weight;
}
/// Weights for `pallet_ranked_collective` using the Substrate node and recommended hardware.
/// Weights for pallet_ranked_collective using the Substrate node and recommended hardware.
pub struct SubstrateWeight<T>(PhantomData<T>);
impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
/// Storage: `RankedCollective::Members` (r:1 w:1)
/// Proof: `RankedCollective::Members` (`max_values`: None, `max_size`: Some(42), added: 2517, mode: `MaxEncodedLen`)
/// Storage: `RankedCollective::MemberCount` (r:1 w:1)
/// Proof: `RankedCollective::MemberCount` (`max_values`: None, `max_size`: Some(14), added: 2489, mode: `MaxEncodedLen`)
/// Storage: `RankedCollective::IndexToId` (r:0 w:1)
/// Proof: `RankedCollective::IndexToId` (`max_values`: None, `max_size`: Some(54), added: 2529, mode: `MaxEncodedLen`)
/// Storage: `RankedCollective::IdToIndex` (r:0 w:1)
/// Proof: `RankedCollective::IdToIndex` (`max_values`: None, `max_size`: Some(54), added: 2529, mode: `MaxEncodedLen`)
/// Storage: RankedCollective Members (r:1 w:1)
/// Proof: RankedCollective Members (max_values: None, max_size: Some(42), added: 2517, mode: MaxEncodedLen)
/// Storage: RankedCollective MemberCount (r:1 w:1)
/// Proof: RankedCollective MemberCount (max_values: None, max_size: Some(14), added: 2489, mode: MaxEncodedLen)
/// Storage: RankedCollective IndexToId (r:0 w:1)
/// Proof: RankedCollective IndexToId (max_values: None, max_size: Some(54), added: 2529, mode: MaxEncodedLen)
/// Storage: RankedCollective IdToIndex (r:0 w:1)
/// Proof: RankedCollective IdToIndex (max_values: None, max_size: Some(54), added: 2529, mode: MaxEncodedLen)
fn add_member() -> Weight {
// Proof Size summary in bytes:
// Measured: `142`
// Estimated: `3507`
// Minimum execution time: 15_389_000 picoseconds.
Weight::from_parts(15_901_000, 3507)
// Minimum execution time: 17_245_000 picoseconds.
Weight::from_parts(17_930_000, 3507)
.saturating_add(T::DbWeight::get().reads(2_u64))
.saturating_add(T::DbWeight::get().writes(4_u64))
}
/// Storage: `RankedCollective::Members` (r:1 w:1)
/// Proof: `RankedCollective::Members` (`max_values`: None, `max_size`: Some(42), added: 2517, mode: `MaxEncodedLen`)
/// Storage: `RankedCollective::MemberCount` (r:11 w:11)
/// Proof: `RankedCollective::MemberCount` (`max_values`: None, `max_size`: Some(14), added: 2489, mode: `MaxEncodedLen`)
/// Storage: `RankedCollective::IdToIndex` (r:11 w:22)
/// Proof: `RankedCollective::IdToIndex` (`max_values`: None, `max_size`: Some(54), added: 2529, mode: `MaxEncodedLen`)
/// Storage: `RankedCollective::IndexToId` (r:11 w:22)
/// Proof: `RankedCollective::IndexToId` (`max_values`: None, `max_size`: Some(54), added: 2529, mode: `MaxEncodedLen`)
/// Storage: RankedCollective Members (r:1 w:1)
/// Proof: RankedCollective Members (max_values: None, max_size: Some(42), added: 2517, mode: MaxEncodedLen)
/// Storage: RankedCollective MemberCount (r:11 w:11)
/// Proof: RankedCollective MemberCount (max_values: None, max_size: Some(14), added: 2489, mode: MaxEncodedLen)
/// Storage: RankedCollective IdToIndex (r:11 w:11)
/// Proof: RankedCollective IdToIndex (max_values: None, max_size: Some(54), added: 2529, mode: MaxEncodedLen)
/// Storage: RankedCollective IndexToId (r:11 w:11)
/// Proof: RankedCollective IndexToId (max_values: None, max_size: Some(54), added: 2529, mode: MaxEncodedLen)
/// The range of component `r` is `[0, 10]`.
fn remove_member(r: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `616 + r * (281 ±0)`
// Estimated: `3519 + r * (2529 ±0)`
// Minimum execution time: 29_541_000 picoseconds.
Weight::from_parts(32_239_358, 3519)
// Standard Error: 23_406
.saturating_add(Weight::from_parts(16_030_191, 0).saturating_mul(r.into()))
// Minimum execution time: 29_534_000 picoseconds.
Weight::from_parts(32_847_495, 3519)
// Standard Error: 24_211
.saturating_add(Weight::from_parts(13_949_639, 0).saturating_mul(r.into()))
.saturating_add(T::DbWeight::get().reads(4_u64))
.saturating_add(T::DbWeight::get().reads((3_u64).saturating_mul(r.into())))
.saturating_add(T::DbWeight::get().writes(6_u64))
.saturating_add(T::DbWeight::get().writes((5_u64).saturating_mul(r.into())))
.saturating_add(T::DbWeight::get().writes(4_u64))
.saturating_add(T::DbWeight::get().writes((3_u64).saturating_mul(r.into())))
.saturating_add(Weight::from_parts(0, 2529).saturating_mul(r.into()))
}
/// Storage: `RankedCollective::Members` (r:1 w:1)
/// Proof: `RankedCollective::Members` (`max_values`: None, `max_size`: Some(42), added: 2517, mode: `MaxEncodedLen`)
/// Storage: `RankedCollective::MemberCount` (r:1 w:1)
/// Proof: `RankedCollective::MemberCount` (`max_values`: None, `max_size`: Some(14), added: 2489, mode: `MaxEncodedLen`)
/// Storage: `RankedCollective::IndexToId` (r:0 w:1)
/// Proof: `RankedCollective::IndexToId` (`max_values`: None, `max_size`: Some(54), added: 2529, mode: `MaxEncodedLen`)
/// Storage: `RankedCollective::IdToIndex` (r:0 w:1)
/// Proof: `RankedCollective::IdToIndex` (`max_values`: None, `max_size`: Some(54), added: 2529, mode: `MaxEncodedLen`)
/// Storage: RankedCollective Members (r:1 w:1)
/// Proof: RankedCollective Members (max_values: None, max_size: Some(42), added: 2517, mode: MaxEncodedLen)
/// Storage: RankedCollective MemberCount (r:1 w:1)
/// Proof: RankedCollective MemberCount (max_values: None, max_size: Some(14), added: 2489, mode: MaxEncodedLen)
/// Storage: RankedCollective IndexToId (r:0 w:1)
/// Proof: RankedCollective IndexToId (max_values: None, max_size: Some(54), added: 2529, mode: MaxEncodedLen)
/// Storage: RankedCollective IdToIndex (r:0 w:1)
/// Proof: RankedCollective IdToIndex (max_values: None, max_size: Some(54), added: 2529, mode: MaxEncodedLen)
/// The range of component `r` is `[0, 10]`.
fn promote_member(r: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `314 + r * (17 ±0)`
// Estimated: `3507`
// Minimum execution time: 17_939_000 picoseconds.
Weight::from_parts(19_290_416, 3507)
// Standard Error: 5_710
.saturating_add(Weight::from_parts(374_399, 0).saturating_mul(r.into()))
// Minimum execution time: 20_333_000 picoseconds.
Weight::from_parts(21_592_224, 3507)
// Standard Error: 6_423
.saturating_add(Weight::from_parts(321_314, 0).saturating_mul(r.into()))
.saturating_add(T::DbWeight::get().reads(2_u64))
.saturating_add(T::DbWeight::get().writes(4_u64))
}
/// Storage: `RankedCollective::Members` (r:1 w:1)
/// Proof: `RankedCollective::Members` (`max_values`: None, `max_size`: Some(42), added: 2517, mode: `MaxEncodedLen`)
/// Storage: `RankedCollective::MemberCount` (r:1 w:1)
/// Proof: `RankedCollective::MemberCount` (`max_values`: None, `max_size`: Some(14), added: 2489, mode: `MaxEncodedLen`)
/// Storage: `RankedCollective::IdToIndex` (r:1 w:2)
/// Proof: `RankedCollective::IdToIndex` (`max_values`: None, `max_size`: Some(54), added: 2529, mode: `MaxEncodedLen`)
/// Storage: `RankedCollective::IndexToId` (r:1 w:2)
/// Proof: `RankedCollective::IndexToId` (`max_values`: None, `max_size`: Some(54), added: 2529, mode: `MaxEncodedLen`)
/// Storage: RankedCollective Members (r:1 w:1)
/// Proof: RankedCollective Members (max_values: None, max_size: Some(42), added: 2517, mode: MaxEncodedLen)
/// Storage: RankedCollective MemberCount (r:1 w:1)
/// Proof: RankedCollective MemberCount (max_values: None, max_size: Some(14), added: 2489, mode: MaxEncodedLen)
/// Storage: RankedCollective IdToIndex (r:1 w:1)
/// Proof: RankedCollective IdToIndex (max_values: None, max_size: Some(54), added: 2529, mode: MaxEncodedLen)
/// Storage: RankedCollective IndexToId (r:1 w:1)
/// Proof: RankedCollective IndexToId (max_values: None, max_size: Some(54), added: 2529, mode: MaxEncodedLen)
/// The range of component `r` is `[0, 10]`.
fn demote_member(r: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `632 + r * (72 ±0)`
// Estimated: `3519`
// Minimum execution time: 29_609_000 picoseconds.
Weight::from_parts(32_686_167, 3519)
// Standard Error: 27_588
.saturating_add(Weight::from_parts(789_212, 0).saturating_mul(r.into()))
// Minimum execution time: 29_446_000 picoseconds.
Weight::from_parts(32_447_715, 3519)
// Standard Error: 28_791
.saturating_add(Weight::from_parts(822_890, 0).saturating_mul(r.into()))
.saturating_add(T::DbWeight::get().reads(4_u64))
.saturating_add(T::DbWeight::get().writes(6_u64))
.saturating_add(T::DbWeight::get().writes(4_u64))
}
/// Storage: `RankedCollective::Members` (r:1 w:0)
/// Proof: `RankedCollective::Members` (`max_values`: None, `max_size`: Some(42), added: 2517, mode: `MaxEncodedLen`)
/// Storage: `RankedPolls::ReferendumInfoFor` (r:1 w:1)
/// Proof: `RankedPolls::ReferendumInfoFor` (`max_values`: None, `max_size`: Some(330), added: 2805, mode: `MaxEncodedLen`)
/// Storage: `RankedCollective::Voting` (r:1 w:1)
/// Proof: `RankedCollective::Voting` (`max_values`: None, `max_size`: Some(65), added: 2540, mode: `MaxEncodedLen`)
/// Storage: `Scheduler::Agenda` (r:2 w:2)
/// Proof: `Scheduler::Agenda` (`max_values`: None, `max_size`: Some(107022), added: 109497, mode: `MaxEncodedLen`)
/// Storage: `Scheduler::Retries` (r:0 w:1)
/// Proof: `Scheduler::Retries` (`max_values`: None, `max_size`: Some(30), added: 2505, mode: `MaxEncodedLen`)
/// Storage: RankedCollective Members (r:1 w:0)
/// Proof: RankedCollective Members (max_values: None, max_size: Some(42), added: 2517, mode: MaxEncodedLen)
/// Storage: RankedPolls ReferendumInfoFor (r:1 w:1)
/// Proof: RankedPolls ReferendumInfoFor (max_values: None, max_size: Some(330), added: 2805, mode: MaxEncodedLen)
/// Storage: RankedCollective Voting (r:1 w:1)
/// Proof: RankedCollective Voting (max_values: None, max_size: Some(65), added: 2540, mode: MaxEncodedLen)
/// Storage: Scheduler Agenda (r:2 w:2)
/// Proof: Scheduler Agenda (max_values: None, max_size: Some(107022), added: 109497, mode: MaxEncodedLen)
fn vote() -> Weight {
// Proof Size summary in bytes:
// Measured: `628`
// Estimated: `219984`
// Minimum execution time: 41_151_000 picoseconds.
Weight::from_parts(42_435_000, 219984)
// Minimum execution time: 45_474_000 picoseconds.
Weight::from_parts(47_228_000, 219984)
.saturating_add(T::DbWeight::get().reads(5_u64))
.saturating_add(T::DbWeight::get().writes(5_u64))
.saturating_add(T::DbWeight::get().writes(4_u64))
}
/// Storage: `RankedPolls::ReferendumInfoFor` (r:1 w:0)
/// Proof: `RankedPolls::ReferendumInfoFor` (`max_values`: None, `max_size`: Some(330), added: 2805, mode: `MaxEncodedLen`)
/// Storage: `RankedCollective::VotingCleanup` (r:1 w:0)
/// Proof: `RankedCollective::VotingCleanup` (`max_values`: None, `max_size`: Some(114), added: 2589, mode: `MaxEncodedLen`)
/// Storage: `RankedCollective::Voting` (r:100 w:100)
/// Proof: `RankedCollective::Voting` (`max_values`: None, `max_size`: Some(65), added: 2540, mode: `MaxEncodedLen`)
/// Storage: RankedPolls ReferendumInfoFor (r:1 w:0)
/// Proof: RankedPolls ReferendumInfoFor (max_values: None, max_size: Some(330), added: 2805, mode: MaxEncodedLen)
/// Storage: RankedCollective VotingCleanup (r:1 w:0)
/// Proof: RankedCollective VotingCleanup (max_values: None, max_size: Some(114), added: 2589, mode: MaxEncodedLen)
/// Storage: RankedCollective Voting (r:100 w:100)
/// Proof: RankedCollective Voting (max_values: None, max_size: Some(65), added: 2540, mode: MaxEncodedLen)
/// The range of component `n` is `[0, 100]`.
fn cleanup_poll(n: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `462 + n * (50 ±0)`
// Estimated: `3795 + n * (2540 ±0)`
// Minimum execution time: 13_563_000 picoseconds.
Weight::from_parts(17_495_215, 3795)
// Standard Error: 2_294
.saturating_add(Weight::from_parts(1_207_393, 0).saturating_mul(n.into()))
// Minimum execution time: 13_903_000 picoseconds.
Weight::from_parts(18_209_102, 3795)
// Standard Error: 2_556
.saturating_add(Weight::from_parts(1_237_454, 0).saturating_mul(n.into()))
.saturating_add(T::DbWeight::get().reads(2_u64))
.saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(n.into())))
.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(n.into())))
.saturating_add(Weight::from_parts(0, 2540).saturating_mul(n.into()))
}
/// Storage: `RankedCollective::Members` (r:2 w:2)
/// Proof: `RankedCollective::Members` (`max_values`: None, `max_size`: Some(42), added: 2517, mode: `MaxEncodedLen`)
/// Storage: `RankedCollective::MemberCount` (r:2 w:2)
/// Proof: `RankedCollective::MemberCount` (`max_values`: None, `max_size`: Some(14), added: 2489, mode: `MaxEncodedLen`)
/// Storage: `RankedCollective::IdToIndex` (r:2 w:4)
/// Storage: `RankedCollective::IdToIndex` (r:2 w:2)
/// Proof: `RankedCollective::IdToIndex` (`max_values`: None, `max_size`: Some(54), added: 2529, mode: `MaxEncodedLen`)
/// Storage: `CoreFellowship::Member` (r:2 w:2)
/// Proof: `CoreFellowship::Member` (`max_values`: None, `max_size`: Some(49), added: 2524, mode: `MaxEncodedLen`)
/// Storage: `CoreFellowship::MemberEvidence` (r:1 w:0)
/// Proof: `CoreFellowship::MemberEvidence` (`max_values`: None, `max_size`: Some(16429), added: 18904, mode: `MaxEncodedLen`)
/// Storage: `Salary::Claimant` (r:2 w:2)
/// Proof: `Salary::Claimant` (`max_values`: None, `max_size`: Some(78), added: 2553, mode: `MaxEncodedLen`)
/// Storage: `RankedCollective::IndexToId` (r:0 w:2)
/// Proof: `RankedCollective::IndexToId` (`max_values`: None, `max_size`: Some(54), added: 2529, mode: `MaxEncodedLen`)
fn exchange_member() -> Weight {
// Proof Size summary in bytes:
// Measured: `625`
// Estimated: `19894`
// Minimum execution time: 70_713_000 picoseconds.
Weight::from_parts(72_831_000, 19894)
.saturating_add(T::DbWeight::get().reads(11_u64))
.saturating_add(T::DbWeight::get().writes(14_u64))
// Measured: `437`
// Estimated: `6048`
// Minimum execution time: 138_000_000 picoseconds.
Weight::from_parts(141_000_000, 0)
.saturating_add(Weight::from_parts(0, 6048))
.saturating_add(T::DbWeight::get().reads(6))
.saturating_add(T::DbWeight::get().writes(8))
}
}
// For backwards compatibility and tests.
// For backwards compatibility and tests
impl WeightInfo for () {
/// Storage: `RankedCollective::Members` (r:1 w:1)
/// Proof: `RankedCollective::Members` (`max_values`: None, `max_size`: Some(42), added: 2517, mode: `MaxEncodedLen`)
/// Storage: `RankedCollective::MemberCount` (r:1 w:1)
/// Proof: `RankedCollective::MemberCount` (`max_values`: None, `max_size`: Some(14), added: 2489, mode: `MaxEncodedLen`)
/// Storage: `RankedCollective::IndexToId` (r:0 w:1)
/// Proof: `RankedCollective::IndexToId` (`max_values`: None, `max_size`: Some(54), added: 2529, mode: `MaxEncodedLen`)
/// Storage: `RankedCollective::IdToIndex` (r:0 w:1)
/// Proof: `RankedCollective::IdToIndex` (`max_values`: None, `max_size`: Some(54), added: 2529, mode: `MaxEncodedLen`)
/// Storage: RankedCollective Members (r:1 w:1)
/// Proof: RankedCollective Members (max_values: None, max_size: Some(42), added: 2517, mode: MaxEncodedLen)
/// Storage: RankedCollective MemberCount (r:1 w:1)
/// Proof: RankedCollective MemberCount (max_values: None, max_size: Some(14), added: 2489, mode: MaxEncodedLen)
/// Storage: RankedCollective IndexToId (r:0 w:1)
/// Proof: RankedCollective IndexToId (max_values: None, max_size: Some(54), added: 2529, mode: MaxEncodedLen)
/// Storage: RankedCollective IdToIndex (r:0 w:1)
/// Proof: RankedCollective IdToIndex (max_values: None, max_size: Some(54), added: 2529, mode: MaxEncodedLen)
fn add_member() -> Weight {
// Proof Size summary in bytes:
// Measured: `142`
// Estimated: `3507`
// Minimum execution time: 15_389_000 picoseconds.
Weight::from_parts(15_901_000, 3507)
// Minimum execution time: 17_245_000 picoseconds.
Weight::from_parts(17_930_000, 3507)
.saturating_add(RocksDbWeight::get().reads(2_u64))
.saturating_add(RocksDbWeight::get().writes(4_u64))
}
/// Storage: `RankedCollective::Members` (r:1 w:1)
/// Proof: `RankedCollective::Members` (`max_values`: None, `max_size`: Some(42), added: 2517, mode: `MaxEncodedLen`)
/// Storage: `RankedCollective::MemberCount` (r:11 w:11)
/// Proof: `RankedCollective::MemberCount` (`max_values`: None, `max_size`: Some(14), added: 2489, mode: `MaxEncodedLen`)
/// Storage: `RankedCollective::IdToIndex` (r:11 w:22)
/// Proof: `RankedCollective::IdToIndex` (`max_values`: None, `max_size`: Some(54), added: 2529, mode: `MaxEncodedLen`)
/// Storage: `RankedCollective::IndexToId` (r:11 w:22)
/// Proof: `RankedCollective::IndexToId` (`max_values`: None, `max_size`: Some(54), added: 2529, mode: `MaxEncodedLen`)
/// Storage: RankedCollective Members (r:1 w:1)
/// Proof: RankedCollective Members (max_values: None, max_size: Some(42), added: 2517, mode: MaxEncodedLen)
/// Storage: RankedCollective MemberCount (r:11 w:11)
/// Proof: RankedCollective MemberCount (max_values: None, max_size: Some(14), added: 2489, mode: MaxEncodedLen)
/// Storage: RankedCollective IdToIndex (r:11 w:11)
/// Proof: RankedCollective IdToIndex (max_values: None, max_size: Some(54), added: 2529, mode: MaxEncodedLen)
/// Storage: RankedCollective IndexToId (r:11 w:11)
/// Proof: RankedCollective IndexToId (max_values: None, max_size: Some(54), added: 2529, mode: MaxEncodedLen)
/// The range of component `r` is `[0, 10]`.
fn remove_member(r: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `616 + r * (281 ±0)`
// Estimated: `3519 + r * (2529 ±0)`
// Minimum execution time: 29_541_000 picoseconds.
Weight::from_parts(32_239_358, 3519)
// Standard Error: 23_406
.saturating_add(Weight::from_parts(16_030_191, 0).saturating_mul(r.into()))
// Minimum execution time: 29_534_000 picoseconds.
Weight::from_parts(32_847_495, 3519)
// Standard Error: 24_211
.saturating_add(Weight::from_parts(13_949_639, 0).saturating_mul(r.into()))
.saturating_add(RocksDbWeight::get().reads(4_u64))
.saturating_add(RocksDbWeight::get().reads((3_u64).saturating_mul(r.into())))
.saturating_add(RocksDbWeight::get().writes(6_u64))
.saturating_add(RocksDbWeight::get().writes((5_u64).saturating_mul(r.into())))
.saturating_add(RocksDbWeight::get().writes(4_u64))
.saturating_add(RocksDbWeight::get().writes((3_u64).saturating_mul(r.into())))
.saturating_add(Weight::from_parts(0, 2529).saturating_mul(r.into()))
}
/// Storage: `RankedCollective::Members` (r:1 w:1)
/// Proof: `RankedCollective::Members` (`max_values`: None, `max_size`: Some(42), added: 2517, mode: `MaxEncodedLen`)
/// Storage: `RankedCollective::MemberCount` (r:1 w:1)
/// Proof: `RankedCollective::MemberCount` (`max_values`: None, `max_size`: Some(14), added: 2489, mode: `MaxEncodedLen`)
/// Storage: `RankedCollective::IndexToId` (r:0 w:1)
/// Proof: `RankedCollective::IndexToId` (`max_values`: None, `max_size`: Some(54), added: 2529, mode: `MaxEncodedLen`)
/// Storage: `RankedCollective::IdToIndex` (r:0 w:1)
/// Proof: `RankedCollective::IdToIndex` (`max_values`: None, `max_size`: Some(54), added: 2529, mode: `MaxEncodedLen`)
/// Storage: RankedCollective Members (r:1 w:1)
/// Proof: RankedCollective Members (max_values: None, max_size: Some(42), added: 2517, mode: MaxEncodedLen)
/// Storage: RankedCollective MemberCount (r:1 w:1)
/// Proof: RankedCollective MemberCount (max_values: None, max_size: Some(14), added: 2489, mode: MaxEncodedLen)
/// Storage: RankedCollective IndexToId (r:0 w:1)
/// Proof: RankedCollective IndexToId (max_values: None, max_size: Some(54), added: 2529, mode: MaxEncodedLen)
/// Storage: RankedCollective IdToIndex (r:0 w:1)
/// Proof: RankedCollective IdToIndex (max_values: None, max_size: Some(54), added: 2529, mode: MaxEncodedLen)
/// The range of component `r` is `[0, 10]`.
fn promote_member(r: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `314 + r * (17 ±0)`
// Estimated: `3507`
// Minimum execution time: 17_939_000 picoseconds.
Weight::from_parts(19_290_416, 3507)
// Standard Error: 5_710
.saturating_add(Weight::from_parts(374_399, 0).saturating_mul(r.into()))
// Minimum execution time: 20_333_000 picoseconds.
Weight::from_parts(21_592_224, 3507)
// Standard Error: 6_423
.saturating_add(Weight::from_parts(321_314, 0).saturating_mul(r.into()))
.saturating_add(RocksDbWeight::get().reads(2_u64))
.saturating_add(RocksDbWeight::get().writes(4_u64))
}
/// Storage: `RankedCollective::Members` (r:1 w:1)
/// Proof: `RankedCollective::Members` (`max_values`: None, `max_size`: Some(42), added: 2517, mode: `MaxEncodedLen`)
/// Storage: `RankedCollective::MemberCount` (r:1 w:1)
/// Proof: `RankedCollective::MemberCount` (`max_values`: None, `max_size`: Some(14), added: 2489, mode: `MaxEncodedLen`)
/// Storage: `RankedCollective::IdToIndex` (r:1 w:2)
/// Proof: `RankedCollective::IdToIndex` (`max_values`: None, `max_size`: Some(54), added: 2529, mode: `MaxEncodedLen`)
/// Storage: `RankedCollective::IndexToId` (r:1 w:2)
/// Proof: `RankedCollective::IndexToId` (`max_values`: None, `max_size`: Some(54), added: 2529, mode: `MaxEncodedLen`)
/// Storage: RankedCollective Members (r:1 w:1)
/// Proof: RankedCollective Members (max_values: None, max_size: Some(42), added: 2517, mode: MaxEncodedLen)
/// Storage: RankedCollective MemberCount (r:1 w:1)
/// Proof: RankedCollective MemberCount (max_values: None, max_size: Some(14), added: 2489, mode: MaxEncodedLen)
/// Storage: RankedCollective IdToIndex (r:1 w:1)
/// Proof: RankedCollective IdToIndex (max_values: None, max_size: Some(54), added: 2529, mode: MaxEncodedLen)
/// Storage: RankedCollective IndexToId (r:1 w:1)
/// Proof: RankedCollective IndexToId (max_values: None, max_size: Some(54), added: 2529, mode: MaxEncodedLen)
/// The range of component `r` is `[0, 10]`.
fn demote_member(r: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `632 + r * (72 ±0)`
// Estimated: `3519`
// Minimum execution time: 29_609_000 picoseconds.
Weight::from_parts(32_686_167, 3519)
// Standard Error: 27_588
.saturating_add(Weight::from_parts(789_212, 0).saturating_mul(r.into()))
// Minimum execution time: 29_446_000 picoseconds.
Weight::from_parts(32_447_715, 3519)
// Standard Error: 28_791
.saturating_add(Weight::from_parts(822_890, 0).saturating_mul(r.into()))
.saturating_add(RocksDbWeight::get().reads(4_u64))
.saturating_add(RocksDbWeight::get().writes(6_u64))
.saturating_add(RocksDbWeight::get().writes(4_u64))
}
/// Storage: `RankedCollective::Members` (r:1 w:0)
/// Proof: `RankedCollective::Members` (`max_values`: None, `max_size`: Some(42), added: 2517, mode: `MaxEncodedLen`)
/// Storage: `RankedPolls::ReferendumInfoFor` (r:1 w:1)
/// Proof: `RankedPolls::ReferendumInfoFor` (`max_values`: None, `max_size`: Some(330), added: 2805, mode: `MaxEncodedLen`)
/// Storage: `RankedCollective::Voting` (r:1 w:1)
/// Proof: `RankedCollective::Voting` (`max_values`: None, `max_size`: Some(65), added: 2540, mode: `MaxEncodedLen`)
/// Storage: `Scheduler::Agenda` (r:2 w:2)
/// Proof: `Scheduler::Agenda` (`max_values`: None, `max_size`: Some(107022), added: 109497, mode: `MaxEncodedLen`)
/// Storage: `Scheduler::Retries` (r:0 w:1)
/// Proof: `Scheduler::Retries` (`max_values`: None, `max_size`: Some(30), added: 2505, mode: `MaxEncodedLen`)
/// Storage: RankedCollective Members (r:1 w:0)
/// Proof: RankedCollective Members (max_values: None, max_size: Some(42), added: 2517, mode: MaxEncodedLen)
/// Storage: RankedPolls ReferendumInfoFor (r:1 w:1)
/// Proof: RankedPolls ReferendumInfoFor (max_values: None, max_size: Some(330), added: 2805, mode: MaxEncodedLen)
/// Storage: RankedCollective Voting (r:1 w:1)
/// Proof: RankedCollective Voting (max_values: None, max_size: Some(65), added: 2540, mode: MaxEncodedLen)
/// Storage: Scheduler Agenda (r:2 w:2)
/// Proof: Scheduler Agenda (max_values: None, max_size: Some(107022), added: 109497, mode: MaxEncodedLen)
fn vote() -> Weight {
// Proof Size summary in bytes:
// Measured: `628`
// Estimated: `219984`
// Minimum execution time: 41_151_000 picoseconds.
Weight::from_parts(42_435_000, 219984)
// Minimum execution time: 45_474_000 picoseconds.
Weight::from_parts(47_228_000, 219984)
.saturating_add(RocksDbWeight::get().reads(5_u64))
.saturating_add(RocksDbWeight::get().writes(5_u64))
.saturating_add(RocksDbWeight::get().writes(4_u64))
}
/// Storage: `RankedPolls::ReferendumInfoFor` (r:1 w:0)
/// Proof: `RankedPolls::ReferendumInfoFor` (`max_values`: None, `max_size`: Some(330), added: 2805, mode: `MaxEncodedLen`)
/// Storage: `RankedCollective::VotingCleanup` (r:1 w:0)
/// Proof: `RankedCollective::VotingCleanup` (`max_values`: None, `max_size`: Some(114), added: 2589, mode: `MaxEncodedLen`)
/// Storage: `RankedCollective::Voting` (r:100 w:100)
/// Proof: `RankedCollective::Voting` (`max_values`: None, `max_size`: Some(65), added: 2540, mode: `MaxEncodedLen`)
/// Storage: RankedPolls ReferendumInfoFor (r:1 w:0)
/// Proof: RankedPolls ReferendumInfoFor (max_values: None, max_size: Some(330), added: 2805, mode: MaxEncodedLen)
/// Storage: RankedCollective VotingCleanup (r:1 w:0)
/// Proof: RankedCollective VotingCleanup (max_values: None, max_size: Some(114), added: 2589, mode: MaxEncodedLen)
/// Storage: RankedCollective Voting (r:100 w:100)
/// Proof: RankedCollective Voting (max_values: None, max_size: Some(65), added: 2540, mode: MaxEncodedLen)
/// The range of component `n` is `[0, 100]`.
fn cleanup_poll(n: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `462 + n * (50 ±0)`
// Estimated: `3795 + n * (2540 ±0)`
// Minimum execution time: 13_563_000 picoseconds.
Weight::from_parts(17_495_215, 3795)
// Standard Error: 2_294
.saturating_add(Weight::from_parts(1_207_393, 0).saturating_mul(n.into()))
// Minimum execution time: 13_903_000 picoseconds.
Weight::from_parts(18_209_102, 3795)
// Standard Error: 2_556
.saturating_add(Weight::from_parts(1_237_454, 0).saturating_mul(n.into()))
.saturating_add(RocksDbWeight::get().reads(2_u64))
.saturating_add(RocksDbWeight::get().reads((1_u64).saturating_mul(n.into())))
.saturating_add(RocksDbWeight::get().writes((1_u64).saturating_mul(n.into())))
.saturating_add(Weight::from_parts(0, 2540).saturating_mul(n.into()))
}
/// Storage: `RankedCollective::Members` (r:2 w:2)
/// Proof: `RankedCollective::Members` (`max_values`: None, `max_size`: Some(42), added: 2517, mode: `MaxEncodedLen`)
/// Storage: `RankedCollective::MemberCount` (r:2 w:2)
/// Proof: `RankedCollective::MemberCount` (`max_values`: None, `max_size`: Some(14), added: 2489, mode: `MaxEncodedLen`)
/// Storage: `RankedCollective::IdToIndex` (r:2 w:4)
/// Storage: `RankedCollective::IdToIndex` (r:2 w:2)
/// Proof: `RankedCollective::IdToIndex` (`max_values`: None, `max_size`: Some(54), added: 2529, mode: `MaxEncodedLen`)
/// Storage: `CoreFellowship::Member` (r:2 w:2)
/// Proof: `CoreFellowship::Member` (`max_values`: None, `max_size`: Some(49), added: 2524, mode: `MaxEncodedLen`)
/// Storage: `CoreFellowship::MemberEvidence` (r:1 w:0)
/// Proof: `CoreFellowship::MemberEvidence` (`max_values`: None, `max_size`: Some(16429), added: 18904, mode: `MaxEncodedLen`)
/// Storage: `Salary::Claimant` (r:2 w:2)
/// Proof: `Salary::Claimant` (`max_values`: None, `max_size`: Some(78), added: 2553, mode: `MaxEncodedLen`)
/// Storage: `RankedCollective::IndexToId` (r:0 w:2)
/// Proof: `RankedCollective::IndexToId` (`max_values`: None, `max_size`: Some(54), added: 2529, mode: `MaxEncodedLen`)
fn exchange_member() -> Weight {
// Proof Size summary in bytes:
// Measured: `625`
// Estimated: `19894`
// Minimum execution time: 70_713_000 picoseconds.
Weight::from_parts(72_831_000, 19894)
.saturating_add(RocksDbWeight::get().reads(11_u64))
.saturating_add(RocksDbWeight::get().writes(14_u64))
// Measured: `437`
// Estimated: `6048`
// Minimum execution time: 138_000_000 picoseconds.
Weight::from_parts(141_000_000, 0)
.saturating_add(Weight::from_parts(0, 6048))
.saturating_add(RocksDbWeight::get().reads(6))
.saturating_add(RocksDbWeight::get().writes(8))
}
}
+149 -156
View File
@@ -15,16 +15,16 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//! Autogenerated weights for `pallet_recovery`
//! Autogenerated weights for pallet_recovery
//!
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0
//! DATE: 2024-03-01, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
//! DATE: 2023-06-16, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! WORST CASE MAP SIZE: `1000000`
//! HOSTNAME: `runner-bn-ce5rx-project-674-concurrent-0`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz`
//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("dev")`, DB CACHE: `1024`
//! HOSTNAME: `runner-e8ezs4ez-project-145-concurrent-0`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz`
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024
// Executed Command:
// ./target/production/substrate-node
// ./target/production/substrate
// benchmark
// pallet
// --chain=dev
@@ -35,11 +35,12 @@
// --no-median-slopes
// --no-min-squares
// --extrinsic=*
// --execution=wasm
// --wasm-execution=compiled
// --heap-pages=4096
// --output=./substrate/frame/recovery/src/weights.rs
// --header=./substrate/HEADER-APACHE2
// --template=./substrate/.maintain/frame-weight-template.hbs
// --output=./frame/recovery/src/weights.rs
// --header=./HEADER-APACHE2
// --template=./.maintain/frame-weight-template.hbs
#![cfg_attr(rustfmt, rustfmt_skip)]
#![allow(unused_parens)]
@@ -49,7 +50,7 @@
use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}};
use core::marker::PhantomData;
/// Weight functions needed for `pallet_recovery`.
/// Weight functions needed for pallet_recovery.
pub trait WeightInfo {
fn as_recovered() -> Weight;
fn set_recovered() -> Weight;
@@ -62,266 +63,258 @@ pub trait WeightInfo {
fn cancel_recovered() -> Weight;
}
/// Weights for `pallet_recovery` using the Substrate node and recommended hardware.
/// Weights for pallet_recovery using the Substrate node and recommended hardware.
pub struct SubstrateWeight<T>(PhantomData<T>);
impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
/// Storage: `Recovery::Proxy` (r:1 w:0)
/// Proof: `Recovery::Proxy` (`max_values`: None, `max_size`: Some(80), added: 2555, mode: `MaxEncodedLen`)
/// Storage: `SafeMode::EnteredUntil` (r:1 w:0)
/// Proof: `SafeMode::EnteredUntil` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
/// Storage: `TxPause::PausedCalls` (r:1 w:0)
/// Proof: `TxPause::PausedCalls` (`max_values`: None, `max_size`: Some(532), added: 3007, mode: `MaxEncodedLen`)
/// Storage: Recovery Proxy (r:1 w:0)
/// Proof: Recovery Proxy (max_values: None, max_size: Some(80), added: 2555, mode: MaxEncodedLen)
fn as_recovered() -> Weight {
// Proof Size summary in bytes:
// Measured: `497`
// Estimated: `3997`
// Minimum execution time: 14_898_000 picoseconds.
Weight::from_parts(15_464_000, 3997)
.saturating_add(T::DbWeight::get().reads(3_u64))
// Measured: `281`
// Estimated: `3545`
// Minimum execution time: 9_360_000 picoseconds.
Weight::from_parts(9_773_000, 3545)
.saturating_add(T::DbWeight::get().reads(1_u64))
}
/// Storage: `Recovery::Proxy` (r:0 w:1)
/// Proof: `Recovery::Proxy` (`max_values`: None, `max_size`: Some(80), added: 2555, mode: `MaxEncodedLen`)
/// Storage: Recovery Proxy (r:0 w:1)
/// Proof: Recovery Proxy (max_values: None, max_size: Some(80), added: 2555, mode: MaxEncodedLen)
fn set_recovered() -> Weight {
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `0`
// Minimum execution time: 7_424_000 picoseconds.
Weight::from_parts(7_830_000, 0)
// Minimum execution time: 9_146_000 picoseconds.
Weight::from_parts(9_507_000, 0)
.saturating_add(T::DbWeight::get().writes(1_u64))
}
/// Storage: `Recovery::Recoverable` (r:1 w:1)
/// Proof: `Recovery::Recoverable` (`max_values`: None, `max_size`: Some(351), added: 2826, mode: `MaxEncodedLen`)
/// Storage: Recovery Recoverable (r:1 w:1)
/// Proof: Recovery Recoverable (max_values: None, max_size: Some(351), added: 2826, mode: MaxEncodedLen)
/// The range of component `n` is `[1, 9]`.
fn create_recovery(n: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `246`
// Measured: `175`
// Estimated: `3816`
// Minimum execution time: 21_968_000 picoseconds.
Weight::from_parts(23_594_232, 3816)
// Standard Error: 5_848
.saturating_add(Weight::from_parts(24_843, 0).saturating_mul(n.into()))
// Minimum execution time: 26_472_000 picoseconds.
Weight::from_parts(27_917_651, 3816)
// Standard Error: 7_129
.saturating_add(Weight::from_parts(59_239, 0).saturating_mul(n.into()))
.saturating_add(T::DbWeight::get().reads(1_u64))
.saturating_add(T::DbWeight::get().writes(1_u64))
}
/// Storage: `Recovery::Recoverable` (r:1 w:0)
/// Proof: `Recovery::Recoverable` (`max_values`: None, `max_size`: Some(351), added: 2826, mode: `MaxEncodedLen`)
/// Storage: `Recovery::ActiveRecoveries` (r:1 w:1)
/// Proof: `Recovery::ActiveRecoveries` (`max_values`: None, `max_size`: Some(389), added: 2864, mode: `MaxEncodedLen`)
/// Storage: Recovery Recoverable (r:1 w:0)
/// Proof: Recovery Recoverable (max_values: None, max_size: Some(351), added: 2826, mode: MaxEncodedLen)
/// Storage: Recovery ActiveRecoveries (r:1 w:1)
/// Proof: Recovery ActiveRecoveries (max_values: None, max_size: Some(389), added: 2864, mode: MaxEncodedLen)
fn initiate_recovery() -> Weight {
// Proof Size summary in bytes:
// Measured: `343`
// Measured: `272`
// Estimated: `3854`
// Minimum execution time: 25_494_000 picoseconds.
Weight::from_parts(26_290_000, 3854)
// Minimum execution time: 29_618_000 picoseconds.
Weight::from_parts(30_192_000, 3854)
.saturating_add(T::DbWeight::get().reads(2_u64))
.saturating_add(T::DbWeight::get().writes(1_u64))
}
/// Storage: `Recovery::Recoverable` (r:1 w:0)
/// Proof: `Recovery::Recoverable` (`max_values`: None, `max_size`: Some(351), added: 2826, mode: `MaxEncodedLen`)
/// Storage: `Recovery::ActiveRecoveries` (r:1 w:1)
/// Proof: `Recovery::ActiveRecoveries` (`max_values`: None, `max_size`: Some(389), added: 2864, mode: `MaxEncodedLen`)
/// Storage: Recovery Recoverable (r:1 w:0)
/// Proof: Recovery Recoverable (max_values: None, max_size: Some(351), added: 2826, mode: MaxEncodedLen)
/// Storage: Recovery ActiveRecoveries (r:1 w:1)
/// Proof: Recovery ActiveRecoveries (max_values: None, max_size: Some(389), added: 2864, mode: MaxEncodedLen)
/// The range of component `n` is `[1, 9]`.
fn vouch_recovery(n: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `431 + n * (64 ±0)`
// Measured: `360 + n * (64 ±0)`
// Estimated: `3854`
// Minimum execution time: 17_044_000 picoseconds.
Weight::from_parts(18_299_617, 3854)
// Standard Error: 5_580
.saturating_add(Weight::from_parts(187_568, 0).saturating_mul(n.into()))
// Minimum execution time: 19_464_000 picoseconds.
Weight::from_parts(20_642_522, 3854)
// Standard Error: 5_974
.saturating_add(Weight::from_parts(142_308, 0).saturating_mul(n.into()))
.saturating_add(T::DbWeight::get().reads(2_u64))
.saturating_add(T::DbWeight::get().writes(1_u64))
}
/// Storage: `Recovery::Recoverable` (r:1 w:0)
/// Proof: `Recovery::Recoverable` (`max_values`: None, `max_size`: Some(351), added: 2826, mode: `MaxEncodedLen`)
/// Storage: `Recovery::ActiveRecoveries` (r:1 w:0)
/// Proof: `Recovery::ActiveRecoveries` (`max_values`: None, `max_size`: Some(389), added: 2864, mode: `MaxEncodedLen`)
/// Storage: `Recovery::Proxy` (r:1 w:1)
/// Proof: `Recovery::Proxy` (`max_values`: None, `max_size`: Some(80), added: 2555, mode: `MaxEncodedLen`)
/// Storage: Recovery Recoverable (r:1 w:0)
/// Proof: Recovery Recoverable (max_values: None, max_size: Some(351), added: 2826, mode: MaxEncodedLen)
/// Storage: Recovery ActiveRecoveries (r:1 w:0)
/// Proof: Recovery ActiveRecoveries (max_values: None, max_size: Some(389), added: 2864, mode: MaxEncodedLen)
/// Storage: Recovery Proxy (r:1 w:1)
/// Proof: Recovery Proxy (max_values: None, max_size: Some(80), added: 2555, mode: MaxEncodedLen)
/// The range of component `n` is `[1, 9]`.
fn claim_recovery(n: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `463 + n * (64 ±0)`
// Measured: `392 + n * (64 ±0)`
// Estimated: `3854`
// Minimum execution time: 22_186_000 picoseconds.
Weight::from_parts(23_476_807, 3854)
// Standard Error: 6_392
.saturating_add(Weight::from_parts(89_770, 0).saturating_mul(n.into()))
// Minimum execution time: 23_656_000 picoseconds.
Weight::from_parts(24_903_269, 3854)
// Standard Error: 5_771
.saturating_add(Weight::from_parts(117_343, 0).saturating_mul(n.into()))
.saturating_add(T::DbWeight::get().reads(3_u64))
.saturating_add(T::DbWeight::get().writes(1_u64))
}
/// Storage: `Recovery::ActiveRecoveries` (r:1 w:1)
/// Proof: `Recovery::ActiveRecoveries` (`max_values`: None, `max_size`: Some(389), added: 2864, mode: `MaxEncodedLen`)
/// Storage: `System::Account` (r:1 w:1)
/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
/// Storage: Recovery ActiveRecoveries (r:1 w:1)
/// Proof: Recovery ActiveRecoveries (max_values: None, max_size: Some(389), added: 2864, mode: MaxEncodedLen)
/// Storage: System Account (r:1 w:1)
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
/// The range of component `n` is `[1, 9]`.
fn close_recovery(n: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `584 + n * (32 ±0)`
// Measured: `513 + n * (32 ±0)`
// Estimated: `3854`
// Minimum execution time: 31_045_000 picoseconds.
Weight::from_parts(32_623_578, 3854)
// Standard Error: 7_203
.saturating_add(Weight::from_parts(61_466, 0).saturating_mul(n.into()))
// Minimum execution time: 34_866_000 picoseconds.
Weight::from_parts(36_368_748, 3854)
// Standard Error: 6_600
.saturating_add(Weight::from_parts(118_610, 0).saturating_mul(n.into()))
.saturating_add(T::DbWeight::get().reads(2_u64))
.saturating_add(T::DbWeight::get().writes(2_u64))
}
/// Storage: `Recovery::ActiveRecoveries` (r:1 w:0)
/// Proof: `Recovery::ActiveRecoveries` (`max_values`: None, `max_size`: Some(389), added: 2864, mode: `MaxEncodedLen`)
/// Storage: `Recovery::Recoverable` (r:1 w:1)
/// Proof: `Recovery::Recoverable` (`max_values`: None, `max_size`: Some(351), added: 2826, mode: `MaxEncodedLen`)
/// Storage: Recovery ActiveRecoveries (r:1 w:0)
/// Proof: Recovery ActiveRecoveries (max_values: None, max_size: Some(389), added: 2864, mode: MaxEncodedLen)
/// Storage: Recovery Recoverable (r:1 w:1)
/// Proof: Recovery Recoverable (max_values: None, max_size: Some(351), added: 2826, mode: MaxEncodedLen)
/// The range of component `n` is `[1, 9]`.
fn remove_recovery(n: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `341 + n * (32 ±0)`
// Measured: `270 + n * (32 ±0)`
// Estimated: `3854`
// Minimum execution time: 27_925_000 picoseconds.
Weight::from_parts(29_258_264, 3854)
// Standard Error: 8_192
.saturating_add(Weight::from_parts(128_124, 0).saturating_mul(n.into()))
// Minimum execution time: 31_405_000 picoseconds.
Weight::from_parts(32_552_838, 3854)
// Standard Error: 8_043
.saturating_add(Weight::from_parts(171_605, 0).saturating_mul(n.into()))
.saturating_add(T::DbWeight::get().reads(2_u64))
.saturating_add(T::DbWeight::get().writes(1_u64))
}
/// Storage: `Recovery::Proxy` (r:1 w:1)
/// Proof: `Recovery::Proxy` (`max_values`: None, `max_size`: Some(80), added: 2555, mode: `MaxEncodedLen`)
/// Storage: Recovery Proxy (r:1 w:1)
/// Proof: Recovery Proxy (max_values: None, max_size: Some(80), added: 2555, mode: MaxEncodedLen)
fn cancel_recovered() -> Weight {
// Proof Size summary in bytes:
// Measured: `352`
// Measured: `281`
// Estimated: `3545`
// Minimum execution time: 11_623_000 picoseconds.
Weight::from_parts(12_043_000, 3545)
// Minimum execution time: 11_530_000 picoseconds.
Weight::from_parts(11_851_000, 3545)
.saturating_add(T::DbWeight::get().reads(1_u64))
.saturating_add(T::DbWeight::get().writes(1_u64))
}
}
// For backwards compatibility and tests.
// For backwards compatibility and tests
impl WeightInfo for () {
/// Storage: `Recovery::Proxy` (r:1 w:0)
/// Proof: `Recovery::Proxy` (`max_values`: None, `max_size`: Some(80), added: 2555, mode: `MaxEncodedLen`)
/// Storage: `SafeMode::EnteredUntil` (r:1 w:0)
/// Proof: `SafeMode::EnteredUntil` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
/// Storage: `TxPause::PausedCalls` (r:1 w:0)
/// Proof: `TxPause::PausedCalls` (`max_values`: None, `max_size`: Some(532), added: 3007, mode: `MaxEncodedLen`)
/// Storage: Recovery Proxy (r:1 w:0)
/// Proof: Recovery Proxy (max_values: None, max_size: Some(80), added: 2555, mode: MaxEncodedLen)
fn as_recovered() -> Weight {
// Proof Size summary in bytes:
// Measured: `497`
// Estimated: `3997`
// Minimum execution time: 14_898_000 picoseconds.
Weight::from_parts(15_464_000, 3997)
.saturating_add(RocksDbWeight::get().reads(3_u64))
// Measured: `281`
// Estimated: `3545`
// Minimum execution time: 9_360_000 picoseconds.
Weight::from_parts(9_773_000, 3545)
.saturating_add(RocksDbWeight::get().reads(1_u64))
}
/// Storage: `Recovery::Proxy` (r:0 w:1)
/// Proof: `Recovery::Proxy` (`max_values`: None, `max_size`: Some(80), added: 2555, mode: `MaxEncodedLen`)
/// Storage: Recovery Proxy (r:0 w:1)
/// Proof: Recovery Proxy (max_values: None, max_size: Some(80), added: 2555, mode: MaxEncodedLen)
fn set_recovered() -> Weight {
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `0`
// Minimum execution time: 7_424_000 picoseconds.
Weight::from_parts(7_830_000, 0)
// Minimum execution time: 9_146_000 picoseconds.
Weight::from_parts(9_507_000, 0)
.saturating_add(RocksDbWeight::get().writes(1_u64))
}
/// Storage: `Recovery::Recoverable` (r:1 w:1)
/// Proof: `Recovery::Recoverable` (`max_values`: None, `max_size`: Some(351), added: 2826, mode: `MaxEncodedLen`)
/// Storage: Recovery Recoverable (r:1 w:1)
/// Proof: Recovery Recoverable (max_values: None, max_size: Some(351), added: 2826, mode: MaxEncodedLen)
/// The range of component `n` is `[1, 9]`.
fn create_recovery(n: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `246`
// Measured: `175`
// Estimated: `3816`
// Minimum execution time: 21_968_000 picoseconds.
Weight::from_parts(23_594_232, 3816)
// Standard Error: 5_848
.saturating_add(Weight::from_parts(24_843, 0).saturating_mul(n.into()))
// Minimum execution time: 26_472_000 picoseconds.
Weight::from_parts(27_917_651, 3816)
// Standard Error: 7_129
.saturating_add(Weight::from_parts(59_239, 0).saturating_mul(n.into()))
.saturating_add(RocksDbWeight::get().reads(1_u64))
.saturating_add(RocksDbWeight::get().writes(1_u64))
}
/// Storage: `Recovery::Recoverable` (r:1 w:0)
/// Proof: `Recovery::Recoverable` (`max_values`: None, `max_size`: Some(351), added: 2826, mode: `MaxEncodedLen`)
/// Storage: `Recovery::ActiveRecoveries` (r:1 w:1)
/// Proof: `Recovery::ActiveRecoveries` (`max_values`: None, `max_size`: Some(389), added: 2864, mode: `MaxEncodedLen`)
/// Storage: Recovery Recoverable (r:1 w:0)
/// Proof: Recovery Recoverable (max_values: None, max_size: Some(351), added: 2826, mode: MaxEncodedLen)
/// Storage: Recovery ActiveRecoveries (r:1 w:1)
/// Proof: Recovery ActiveRecoveries (max_values: None, max_size: Some(389), added: 2864, mode: MaxEncodedLen)
fn initiate_recovery() -> Weight {
// Proof Size summary in bytes:
// Measured: `343`
// Measured: `272`
// Estimated: `3854`
// Minimum execution time: 25_494_000 picoseconds.
Weight::from_parts(26_290_000, 3854)
// Minimum execution time: 29_618_000 picoseconds.
Weight::from_parts(30_192_000, 3854)
.saturating_add(RocksDbWeight::get().reads(2_u64))
.saturating_add(RocksDbWeight::get().writes(1_u64))
}
/// Storage: `Recovery::Recoverable` (r:1 w:0)
/// Proof: `Recovery::Recoverable` (`max_values`: None, `max_size`: Some(351), added: 2826, mode: `MaxEncodedLen`)
/// Storage: `Recovery::ActiveRecoveries` (r:1 w:1)
/// Proof: `Recovery::ActiveRecoveries` (`max_values`: None, `max_size`: Some(389), added: 2864, mode: `MaxEncodedLen`)
/// Storage: Recovery Recoverable (r:1 w:0)
/// Proof: Recovery Recoverable (max_values: None, max_size: Some(351), added: 2826, mode: MaxEncodedLen)
/// Storage: Recovery ActiveRecoveries (r:1 w:1)
/// Proof: Recovery ActiveRecoveries (max_values: None, max_size: Some(389), added: 2864, mode: MaxEncodedLen)
/// The range of component `n` is `[1, 9]`.
fn vouch_recovery(n: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `431 + n * (64 ±0)`
// Measured: `360 + n * (64 ±0)`
// Estimated: `3854`
// Minimum execution time: 17_044_000 picoseconds.
Weight::from_parts(18_299_617, 3854)
// Standard Error: 5_580
.saturating_add(Weight::from_parts(187_568, 0).saturating_mul(n.into()))
// Minimum execution time: 19_464_000 picoseconds.
Weight::from_parts(20_642_522, 3854)
// Standard Error: 5_974
.saturating_add(Weight::from_parts(142_308, 0).saturating_mul(n.into()))
.saturating_add(RocksDbWeight::get().reads(2_u64))
.saturating_add(RocksDbWeight::get().writes(1_u64))
}
/// Storage: `Recovery::Recoverable` (r:1 w:0)
/// Proof: `Recovery::Recoverable` (`max_values`: None, `max_size`: Some(351), added: 2826, mode: `MaxEncodedLen`)
/// Storage: `Recovery::ActiveRecoveries` (r:1 w:0)
/// Proof: `Recovery::ActiveRecoveries` (`max_values`: None, `max_size`: Some(389), added: 2864, mode: `MaxEncodedLen`)
/// Storage: `Recovery::Proxy` (r:1 w:1)
/// Proof: `Recovery::Proxy` (`max_values`: None, `max_size`: Some(80), added: 2555, mode: `MaxEncodedLen`)
/// Storage: Recovery Recoverable (r:1 w:0)
/// Proof: Recovery Recoverable (max_values: None, max_size: Some(351), added: 2826, mode: MaxEncodedLen)
/// Storage: Recovery ActiveRecoveries (r:1 w:0)
/// Proof: Recovery ActiveRecoveries (max_values: None, max_size: Some(389), added: 2864, mode: MaxEncodedLen)
/// Storage: Recovery Proxy (r:1 w:1)
/// Proof: Recovery Proxy (max_values: None, max_size: Some(80), added: 2555, mode: MaxEncodedLen)
/// The range of component `n` is `[1, 9]`.
fn claim_recovery(n: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `463 + n * (64 ±0)`
// Measured: `392 + n * (64 ±0)`
// Estimated: `3854`
// Minimum execution time: 22_186_000 picoseconds.
Weight::from_parts(23_476_807, 3854)
// Standard Error: 6_392
.saturating_add(Weight::from_parts(89_770, 0).saturating_mul(n.into()))
// Minimum execution time: 23_656_000 picoseconds.
Weight::from_parts(24_903_269, 3854)
// Standard Error: 5_771
.saturating_add(Weight::from_parts(117_343, 0).saturating_mul(n.into()))
.saturating_add(RocksDbWeight::get().reads(3_u64))
.saturating_add(RocksDbWeight::get().writes(1_u64))
}
/// Storage: `Recovery::ActiveRecoveries` (r:1 w:1)
/// Proof: `Recovery::ActiveRecoveries` (`max_values`: None, `max_size`: Some(389), added: 2864, mode: `MaxEncodedLen`)
/// Storage: `System::Account` (r:1 w:1)
/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
/// Storage: Recovery ActiveRecoveries (r:1 w:1)
/// Proof: Recovery ActiveRecoveries (max_values: None, max_size: Some(389), added: 2864, mode: MaxEncodedLen)
/// Storage: System Account (r:1 w:1)
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
/// The range of component `n` is `[1, 9]`.
fn close_recovery(n: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `584 + n * (32 ±0)`
// Measured: `513 + n * (32 ±0)`
// Estimated: `3854`
// Minimum execution time: 31_045_000 picoseconds.
Weight::from_parts(32_623_578, 3854)
// Standard Error: 7_203
.saturating_add(Weight::from_parts(61_466, 0).saturating_mul(n.into()))
// Minimum execution time: 34_866_000 picoseconds.
Weight::from_parts(36_368_748, 3854)
// Standard Error: 6_600
.saturating_add(Weight::from_parts(118_610, 0).saturating_mul(n.into()))
.saturating_add(RocksDbWeight::get().reads(2_u64))
.saturating_add(RocksDbWeight::get().writes(2_u64))
}
/// Storage: `Recovery::ActiveRecoveries` (r:1 w:0)
/// Proof: `Recovery::ActiveRecoveries` (`max_values`: None, `max_size`: Some(389), added: 2864, mode: `MaxEncodedLen`)
/// Storage: `Recovery::Recoverable` (r:1 w:1)
/// Proof: `Recovery::Recoverable` (`max_values`: None, `max_size`: Some(351), added: 2826, mode: `MaxEncodedLen`)
/// Storage: Recovery ActiveRecoveries (r:1 w:0)
/// Proof: Recovery ActiveRecoveries (max_values: None, max_size: Some(389), added: 2864, mode: MaxEncodedLen)
/// Storage: Recovery Recoverable (r:1 w:1)
/// Proof: Recovery Recoverable (max_values: None, max_size: Some(351), added: 2826, mode: MaxEncodedLen)
/// The range of component `n` is `[1, 9]`.
fn remove_recovery(n: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `341 + n * (32 ±0)`
// Measured: `270 + n * (32 ±0)`
// Estimated: `3854`
// Minimum execution time: 27_925_000 picoseconds.
Weight::from_parts(29_258_264, 3854)
// Standard Error: 8_192
.saturating_add(Weight::from_parts(128_124, 0).saturating_mul(n.into()))
// Minimum execution time: 31_405_000 picoseconds.
Weight::from_parts(32_552_838, 3854)
// Standard Error: 8_043
.saturating_add(Weight::from_parts(171_605, 0).saturating_mul(n.into()))
.saturating_add(RocksDbWeight::get().reads(2_u64))
.saturating_add(RocksDbWeight::get().writes(1_u64))
}
/// Storage: `Recovery::Proxy` (r:1 w:1)
/// Proof: `Recovery::Proxy` (`max_values`: None, `max_size`: Some(80), added: 2555, mode: `MaxEncodedLen`)
/// Storage: Recovery Proxy (r:1 w:1)
/// Proof: Recovery Proxy (max_values: None, max_size: Some(80), added: 2555, mode: MaxEncodedLen)
fn cancel_recovered() -> Weight {
// Proof Size summary in bytes:
// Measured: `352`
// Measured: `281`
// Estimated: `3545`
// Minimum execution time: 11_623_000 picoseconds.
Weight::from_parts(12_043_000, 3545)
// Minimum execution time: 11_530_000 picoseconds.
Weight::from_parts(11_851_000, 3545)
.saturating_add(RocksDbWeight::get().reads(1_u64))
.saturating_add(RocksDbWeight::get().writes(1_u64))
}
+501 -532
View File
File diff suppressed because it is too large Load Diff
+19 -18
View File
@@ -15,16 +15,16 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//! Autogenerated weights for `pallet_remark`
//! Autogenerated weights for pallet_remark
//!
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0
//! DATE: 2024-03-01, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
//! DATE: 2023-06-16, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! WORST CASE MAP SIZE: `1000000`
//! HOSTNAME: `runner-bn-ce5rx-project-674-concurrent-0`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz`
//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("dev")`, DB CACHE: `1024`
//! HOSTNAME: `runner-e8ezs4ez-project-145-concurrent-0`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz`
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024
// Executed Command:
// ./target/production/substrate-node
// ./target/production/substrate
// benchmark
// pallet
// --chain=dev
@@ -35,11 +35,12 @@
// --no-median-slopes
// --no-min-squares
// --extrinsic=*
// --execution=wasm
// --wasm-execution=compiled
// --heap-pages=4096
// --output=./substrate/frame/remark/src/weights.rs
// --header=./substrate/HEADER-APACHE2
// --template=./substrate/.maintain/frame-weight-template.hbs
// --output=./frame/remark/src/weights.rs
// --header=./HEADER-APACHE2
// --template=./.maintain/frame-weight-template.hbs
#![cfg_attr(rustfmt, rustfmt_skip)]
#![allow(unused_parens)]
@@ -49,12 +50,12 @@
use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}};
use core::marker::PhantomData;
/// Weight functions needed for `pallet_remark`.
/// Weight functions needed for pallet_remark.
pub trait WeightInfo {
fn store(l: u32, ) -> Weight;
}
/// Weights for `pallet_remark` using the Substrate node and recommended hardware.
/// Weights for pallet_remark using the Substrate node and recommended hardware.
pub struct SubstrateWeight<T>(PhantomData<T>);
impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
/// The range of component `l` is `[1, 1048576]`.
@@ -62,23 +63,23 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `0`
// Minimum execution time: 6_623_000 picoseconds.
Weight::from_parts(6_757_000, 0)
// Minimum execution time: 8_471_000 picoseconds.
Weight::from_parts(8_586_000, 0)
// Standard Error: 0
.saturating_add(Weight::from_parts(1_368, 0).saturating_mul(l.into()))
.saturating_add(Weight::from_parts(1_359, 0).saturating_mul(l.into()))
}
}
// For backwards compatibility and tests.
// For backwards compatibility and tests
impl WeightInfo for () {
/// The range of component `l` is `[1, 1048576]`.
fn store(l: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `0`
// Minimum execution time: 6_623_000 picoseconds.
Weight::from_parts(6_757_000, 0)
// Minimum execution time: 8_471_000 picoseconds.
Weight::from_parts(8_586_000, 0)
// Standard Error: 0
.saturating_add(Weight::from_parts(1_368, 0).saturating_mul(l.into()))
.saturating_add(Weight::from_parts(1_359, 0).saturating_mul(l.into()))
}
}
+70 -72
View File
@@ -17,29 +17,27 @@
//! Autogenerated weights for `pallet_safe_mode`
//!
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0
//! DATE: 2024-03-01, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
//! DATE: 2023-08-24, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! WORST CASE MAP SIZE: `1000000`
//! HOSTNAME: `runner-bn-ce5rx-project-674-concurrent-0`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz`
//! HOSTNAME: `runner-aahe6cbd-project-145-concurrent-0`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz`
//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("dev")`, DB CACHE: `1024`
// Executed Command:
// ./target/production/substrate-node
// target/production/substrate-node
// benchmark
// pallet
// --chain=dev
// --steps=50
// --repeat=20
// --pallet=pallet_safe_mode
// --no-storage-info
// --no-median-slopes
// --no-min-squares
// --extrinsic=*
// --wasm-execution=compiled
// --heap-pages=4096
// --output=./substrate/frame/safe-mode/src/weights.rs
// --header=./substrate/HEADER-APACHE2
// --template=./substrate/.maintain/frame-weight-template.hbs
// --json-file=/builds/parity/mirrors/substrate/.git/.artifacts/bench.json
// --pallet=pallet_safe_mode
// --chain=dev
// --header=./HEADER-APACHE2
// --output=./frame/safe-mode/src/weights.rs
// --template=./.maintain/frame-weight-template.hbs
#![cfg_attr(rustfmt, rustfmt_skip)]
#![allow(unused_parens)]
@@ -72,8 +70,8 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
// Proof Size summary in bytes:
// Measured: `142`
// Estimated: `1489`
// Minimum execution time: 2_216_000 picoseconds.
Weight::from_parts(2_309_000, 1489)
// Minimum execution time: 2_500_000 picoseconds.
Weight::from_parts(2_594_000, 1489)
.saturating_add(T::DbWeight::get().reads(1_u64))
}
/// Storage: `SafeMode::EnteredUntil` (r:1 w:1)
@@ -82,23 +80,23 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
// Proof Size summary in bytes:
// Measured: `169`
// Estimated: `1489`
// Minimum execution time: 6_124_000 picoseconds.
Weight::from_parts(6_601_000, 1489)
// Minimum execution time: 8_868_000 picoseconds.
Weight::from_parts(9_415_000, 1489)
.saturating_add(T::DbWeight::get().reads(1_u64))
.saturating_add(T::DbWeight::get().writes(1_u64))
}
/// Storage: `SafeMode::EnteredUntil` (r:1 w:1)
/// Proof: `SafeMode::EnteredUntil` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
/// Storage: `Balances::Holds` (r:1 w:1)
/// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(193), added: 2668, mode: `MaxEncodedLen`)
/// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(85), added: 2560, mode: `MaxEncodedLen`)
/// Storage: `SafeMode::Deposits` (r:0 w:1)
/// Proof: `SafeMode::Deposits` (`max_values`: None, `max_size`: Some(68), added: 2543, mode: `MaxEncodedLen`)
fn enter() -> Weight {
// Proof Size summary in bytes:
// Measured: `142`
// Estimated: `3658`
// Minimum execution time: 44_825_000 picoseconds.
Weight::from_parts(45_845_000, 3658)
// Estimated: `3550`
// Minimum execution time: 50_541_000 picoseconds.
Weight::from_parts(51_558_000, 3550)
.saturating_add(T::DbWeight::get().reads(2_u64))
.saturating_add(T::DbWeight::get().writes(3_u64))
}
@@ -108,23 +106,23 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
// Proof Size summary in bytes:
// Measured: `142`
// Estimated: `1489`
// Minimum execution time: 7_603_000 picoseconds.
Weight::from_parts(7_954_000, 1489)
// Minimum execution time: 10_489_000 picoseconds.
Weight::from_parts(10_833_000, 1489)
.saturating_add(T::DbWeight::get().reads(1_u64))
.saturating_add(T::DbWeight::get().writes(1_u64))
}
/// Storage: `SafeMode::EnteredUntil` (r:1 w:1)
/// Proof: `SafeMode::EnteredUntil` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
/// Storage: `Balances::Holds` (r:1 w:1)
/// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(193), added: 2668, mode: `MaxEncodedLen`)
/// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(85), added: 2560, mode: `MaxEncodedLen`)
/// Storage: `SafeMode::Deposits` (r:0 w:1)
/// Proof: `SafeMode::Deposits` (`max_values`: None, `max_size`: Some(68), added: 2543, mode: `MaxEncodedLen`)
fn extend() -> Weight {
// Proof Size summary in bytes:
// Measured: `169`
// Estimated: `3658`
// Minimum execution time: 44_716_000 picoseconds.
Weight::from_parts(46_039_000, 3658)
// Estimated: `3550`
// Minimum execution time: 50_818_000 picoseconds.
Weight::from_parts(51_873_000, 3550)
.saturating_add(T::DbWeight::get().reads(2_u64))
.saturating_add(T::DbWeight::get().writes(3_u64))
}
@@ -134,8 +132,8 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
// Proof Size summary in bytes:
// Measured: `169`
// Estimated: `1489`
// Minimum execution time: 8_231_000 picoseconds.
Weight::from_parts(8_731_000, 1489)
// Minimum execution time: 10_843_000 picoseconds.
Weight::from_parts(11_314_000, 1489)
.saturating_add(T::DbWeight::get().reads(1_u64))
.saturating_add(T::DbWeight::get().writes(1_u64))
}
@@ -145,8 +143,8 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
// Proof Size summary in bytes:
// Measured: `169`
// Estimated: `1489`
// Minimum execution time: 8_015_000 picoseconds.
Weight::from_parts(8_247_000, 1489)
// Minimum execution time: 10_382_000 picoseconds.
Weight::from_parts(10_814_000, 1489)
.saturating_add(T::DbWeight::get().reads(1_u64))
.saturating_add(T::DbWeight::get().writes(1_u64))
}
@@ -155,39 +153,39 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
/// Storage: `SafeMode::EnteredUntil` (r:1 w:0)
/// Proof: `SafeMode::EnteredUntil` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
/// Storage: `Balances::Holds` (r:1 w:1)
/// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(193), added: 2668, mode: `MaxEncodedLen`)
/// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(85), added: 2560, mode: `MaxEncodedLen`)
fn release_deposit() -> Weight {
// Proof Size summary in bytes:
// Measured: `292`
// Estimated: `3658`
// Minimum execution time: 39_149_000 picoseconds.
Weight::from_parts(40_005_000, 3658)
// Estimated: `3550`
// Minimum execution time: 42_828_000 picoseconds.
Weight::from_parts(43_752_000, 3550)
.saturating_add(T::DbWeight::get().reads(3_u64))
.saturating_add(T::DbWeight::get().writes(2_u64))
}
/// Storage: `SafeMode::Deposits` (r:1 w:1)
/// Proof: `SafeMode::Deposits` (`max_values`: None, `max_size`: Some(68), added: 2543, mode: `MaxEncodedLen`)
/// Storage: `Balances::Holds` (r:1 w:1)
/// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(193), added: 2668, mode: `MaxEncodedLen`)
/// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(85), added: 2560, mode: `MaxEncodedLen`)
fn force_release_deposit() -> Weight {
// Proof Size summary in bytes:
// Measured: `292`
// Estimated: `3658`
// Minimum execution time: 37_528_000 picoseconds.
Weight::from_parts(38_473_000, 3658)
// Estimated: `3550`
// Minimum execution time: 40_196_000 picoseconds.
Weight::from_parts(41_298_000, 3550)
.saturating_add(T::DbWeight::get().reads(2_u64))
.saturating_add(T::DbWeight::get().writes(2_u64))
}
/// Storage: `SafeMode::Deposits` (r:1 w:1)
/// Proof: `SafeMode::Deposits` (`max_values`: None, `max_size`: Some(68), added: 2543, mode: `MaxEncodedLen`)
/// Storage: `Balances::Holds` (r:1 w:1)
/// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(193), added: 2668, mode: `MaxEncodedLen`)
/// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(85), added: 2560, mode: `MaxEncodedLen`)
fn force_slash_deposit() -> Weight {
// Proof Size summary in bytes:
// Measured: `292`
// Estimated: `3658`
// Minimum execution time: 29_417_000 picoseconds.
Weight::from_parts(30_195_000, 3658)
// Estimated: `3550`
// Minimum execution time: 33_660_000 picoseconds.
Weight::from_parts(34_426_000, 3550)
.saturating_add(T::DbWeight::get().reads(2_u64))
.saturating_add(T::DbWeight::get().writes(2_u64))
}
@@ -201,8 +199,8 @@ impl WeightInfo for () {
// Proof Size summary in bytes:
// Measured: `142`
// Estimated: `1489`
// Minimum execution time: 2_216_000 picoseconds.
Weight::from_parts(2_309_000, 1489)
// Minimum execution time: 2_500_000 picoseconds.
Weight::from_parts(2_594_000, 1489)
.saturating_add(RocksDbWeight::get().reads(1_u64))
}
/// Storage: `SafeMode::EnteredUntil` (r:1 w:1)
@@ -211,23 +209,23 @@ impl WeightInfo for () {
// Proof Size summary in bytes:
// Measured: `169`
// Estimated: `1489`
// Minimum execution time: 6_124_000 picoseconds.
Weight::from_parts(6_601_000, 1489)
// Minimum execution time: 8_868_000 picoseconds.
Weight::from_parts(9_415_000, 1489)
.saturating_add(RocksDbWeight::get().reads(1_u64))
.saturating_add(RocksDbWeight::get().writes(1_u64))
}
/// Storage: `SafeMode::EnteredUntil` (r:1 w:1)
/// Proof: `SafeMode::EnteredUntil` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
/// Storage: `Balances::Holds` (r:1 w:1)
/// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(193), added: 2668, mode: `MaxEncodedLen`)
/// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(85), added: 2560, mode: `MaxEncodedLen`)
/// Storage: `SafeMode::Deposits` (r:0 w:1)
/// Proof: `SafeMode::Deposits` (`max_values`: None, `max_size`: Some(68), added: 2543, mode: `MaxEncodedLen`)
fn enter() -> Weight {
// Proof Size summary in bytes:
// Measured: `142`
// Estimated: `3658`
// Minimum execution time: 44_825_000 picoseconds.
Weight::from_parts(45_845_000, 3658)
// Estimated: `3550`
// Minimum execution time: 50_541_000 picoseconds.
Weight::from_parts(51_558_000, 3550)
.saturating_add(RocksDbWeight::get().reads(2_u64))
.saturating_add(RocksDbWeight::get().writes(3_u64))
}
@@ -237,23 +235,23 @@ impl WeightInfo for () {
// Proof Size summary in bytes:
// Measured: `142`
// Estimated: `1489`
// Minimum execution time: 7_603_000 picoseconds.
Weight::from_parts(7_954_000, 1489)
// Minimum execution time: 10_489_000 picoseconds.
Weight::from_parts(10_833_000, 1489)
.saturating_add(RocksDbWeight::get().reads(1_u64))
.saturating_add(RocksDbWeight::get().writes(1_u64))
}
/// Storage: `SafeMode::EnteredUntil` (r:1 w:1)
/// Proof: `SafeMode::EnteredUntil` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
/// Storage: `Balances::Holds` (r:1 w:1)
/// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(193), added: 2668, mode: `MaxEncodedLen`)
/// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(85), added: 2560, mode: `MaxEncodedLen`)
/// Storage: `SafeMode::Deposits` (r:0 w:1)
/// Proof: `SafeMode::Deposits` (`max_values`: None, `max_size`: Some(68), added: 2543, mode: `MaxEncodedLen`)
fn extend() -> Weight {
// Proof Size summary in bytes:
// Measured: `169`
// Estimated: `3658`
// Minimum execution time: 44_716_000 picoseconds.
Weight::from_parts(46_039_000, 3658)
// Estimated: `3550`
// Minimum execution time: 50_818_000 picoseconds.
Weight::from_parts(51_873_000, 3550)
.saturating_add(RocksDbWeight::get().reads(2_u64))
.saturating_add(RocksDbWeight::get().writes(3_u64))
}
@@ -263,8 +261,8 @@ impl WeightInfo for () {
// Proof Size summary in bytes:
// Measured: `169`
// Estimated: `1489`
// Minimum execution time: 8_231_000 picoseconds.
Weight::from_parts(8_731_000, 1489)
// Minimum execution time: 10_843_000 picoseconds.
Weight::from_parts(11_314_000, 1489)
.saturating_add(RocksDbWeight::get().reads(1_u64))
.saturating_add(RocksDbWeight::get().writes(1_u64))
}
@@ -274,8 +272,8 @@ impl WeightInfo for () {
// Proof Size summary in bytes:
// Measured: `169`
// Estimated: `1489`
// Minimum execution time: 8_015_000 picoseconds.
Weight::from_parts(8_247_000, 1489)
// Minimum execution time: 10_382_000 picoseconds.
Weight::from_parts(10_814_000, 1489)
.saturating_add(RocksDbWeight::get().reads(1_u64))
.saturating_add(RocksDbWeight::get().writes(1_u64))
}
@@ -284,39 +282,39 @@ impl WeightInfo for () {
/// Storage: `SafeMode::EnteredUntil` (r:1 w:0)
/// Proof: `SafeMode::EnteredUntil` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
/// Storage: `Balances::Holds` (r:1 w:1)
/// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(193), added: 2668, mode: `MaxEncodedLen`)
/// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(85), added: 2560, mode: `MaxEncodedLen`)
fn release_deposit() -> Weight {
// Proof Size summary in bytes:
// Measured: `292`
// Estimated: `3658`
// Minimum execution time: 39_149_000 picoseconds.
Weight::from_parts(40_005_000, 3658)
// Estimated: `3550`
// Minimum execution time: 42_828_000 picoseconds.
Weight::from_parts(43_752_000, 3550)
.saturating_add(RocksDbWeight::get().reads(3_u64))
.saturating_add(RocksDbWeight::get().writes(2_u64))
}
/// Storage: `SafeMode::Deposits` (r:1 w:1)
/// Proof: `SafeMode::Deposits` (`max_values`: None, `max_size`: Some(68), added: 2543, mode: `MaxEncodedLen`)
/// Storage: `Balances::Holds` (r:1 w:1)
/// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(193), added: 2668, mode: `MaxEncodedLen`)
/// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(85), added: 2560, mode: `MaxEncodedLen`)
fn force_release_deposit() -> Weight {
// Proof Size summary in bytes:
// Measured: `292`
// Estimated: `3658`
// Minimum execution time: 37_528_000 picoseconds.
Weight::from_parts(38_473_000, 3658)
// Estimated: `3550`
// Minimum execution time: 40_196_000 picoseconds.
Weight::from_parts(41_298_000, 3550)
.saturating_add(RocksDbWeight::get().reads(2_u64))
.saturating_add(RocksDbWeight::get().writes(2_u64))
}
/// Storage: `SafeMode::Deposits` (r:1 w:1)
/// Proof: `SafeMode::Deposits` (`max_values`: None, `max_size`: Some(68), added: 2543, mode: `MaxEncodedLen`)
/// Storage: `Balances::Holds` (r:1 w:1)
/// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(193), added: 2668, mode: `MaxEncodedLen`)
/// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(85), added: 2560, mode: `MaxEncodedLen`)
fn force_slash_deposit() -> Weight {
// Proof Size summary in bytes:
// Measured: `292`
// Estimated: `3658`
// Minimum execution time: 29_417_000 picoseconds.
Weight::from_parts(30_195_000, 3658)
// Estimated: `3550`
// Minimum execution time: 33_660_000 picoseconds.
Weight::from_parts(34_426_000, 3550)
.saturating_add(RocksDbWeight::get().reads(2_u64))
.saturating_add(RocksDbWeight::get().writes(2_u64))
}
+109 -108
View File
@@ -15,16 +15,16 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//! Autogenerated weights for `pallet_salary`
//! Autogenerated weights for pallet_salary
//!
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0
//! DATE: 2024-03-01, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
//! DATE: 2023-06-16, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! WORST CASE MAP SIZE: `1000000`
//! HOSTNAME: `runner-bn-ce5rx-project-674-concurrent-0`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz`
//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("dev")`, DB CACHE: `1024`
//! HOSTNAME: `runner-e8ezs4ez-project-145-concurrent-0`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz`
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024
// Executed Command:
// ./target/production/substrate-node
// ./target/production/substrate
// benchmark
// pallet
// --chain=dev
@@ -35,11 +35,12 @@
// --no-median-slopes
// --no-min-squares
// --extrinsic=*
// --execution=wasm
// --wasm-execution=compiled
// --heap-pages=4096
// --output=./substrate/frame/salary/src/weights.rs
// --header=./substrate/HEADER-APACHE2
// --template=./substrate/.maintain/frame-weight-template.hbs
// --output=./frame/salary/src/weights.rs
// --header=./HEADER-APACHE2
// --template=./.maintain/frame-weight-template.hbs
#![cfg_attr(rustfmt, rustfmt_skip)]
#![allow(unused_parens)]
@@ -49,7 +50,7 @@
use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}};
use core::marker::PhantomData;
/// Weight functions needed for `pallet_salary`.
/// Weight functions needed for pallet_salary.
pub trait WeightInfo {
fn init() -> Weight;
fn bump() -> Weight;
@@ -60,204 +61,204 @@ pub trait WeightInfo {
fn check_payment() -> Weight;
}
/// Weights for `pallet_salary` using the Substrate node and recommended hardware.
/// Weights for pallet_salary using the Substrate node and recommended hardware.
pub struct SubstrateWeight<T>(PhantomData<T>);
impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
/// Storage: `Salary::Status` (r:1 w:1)
/// Proof: `Salary::Status` (`max_values`: Some(1), `max_size`: Some(56), added: 551, mode: `MaxEncodedLen`)
/// Storage: Salary Status (r:1 w:1)
/// Proof: Salary Status (max_values: Some(1), max_size: Some(56), added: 551, mode: MaxEncodedLen)
fn init() -> Weight {
// Proof Size summary in bytes:
// Measured: `4`
// Estimated: `1541`
// Minimum execution time: 7_421_000 picoseconds.
Weight::from_parts(7_819_000, 1541)
// Minimum execution time: 10_778_000 picoseconds.
Weight::from_parts(11_084_000, 1541)
.saturating_add(T::DbWeight::get().reads(1_u64))
.saturating_add(T::DbWeight::get().writes(1_u64))
}
/// Storage: `Salary::Status` (r:1 w:1)
/// Proof: `Salary::Status` (`max_values`: Some(1), `max_size`: Some(56), added: 551, mode: `MaxEncodedLen`)
/// Storage: Salary Status (r:1 w:1)
/// Proof: Salary Status (max_values: Some(1), max_size: Some(56), added: 551, mode: MaxEncodedLen)
fn bump() -> Weight {
// Proof Size summary in bytes:
// Measured: `86`
// Estimated: `1541`
// Minimum execution time: 8_651_000 picoseconds.
Weight::from_parts(9_056_000, 1541)
// Minimum execution time: 12_042_000 picoseconds.
Weight::from_parts(12_645_000, 1541)
.saturating_add(T::DbWeight::get().reads(1_u64))
.saturating_add(T::DbWeight::get().writes(1_u64))
}
/// Storage: `Salary::Status` (r:1 w:0)
/// Proof: `Salary::Status` (`max_values`: Some(1), `max_size`: Some(56), added: 551, mode: `MaxEncodedLen`)
/// Storage: `RankedCollective::Members` (r:1 w:0)
/// Proof: `RankedCollective::Members` (`max_values`: None, `max_size`: Some(42), added: 2517, mode: `MaxEncodedLen`)
/// Storage: `Salary::Claimant` (r:1 w:1)
/// Proof: `Salary::Claimant` (`max_values`: None, `max_size`: Some(78), added: 2553, mode: `MaxEncodedLen`)
/// Storage: Salary Status (r:1 w:0)
/// Proof: Salary Status (max_values: Some(1), max_size: Some(56), added: 551, mode: MaxEncodedLen)
/// Storage: RankedCollective Members (r:1 w:0)
/// Proof: RankedCollective Members (max_values: None, max_size: Some(42), added: 2517, mode: MaxEncodedLen)
/// Storage: Salary Claimant (r:1 w:1)
/// Proof: Salary Claimant (max_values: None, max_size: Some(78), added: 2553, mode: MaxEncodedLen)
fn induct() -> Weight {
// Proof Size summary in bytes:
// Measured: `395`
// Estimated: `3543`
// Minimum execution time: 16_513_000 picoseconds.
Weight::from_parts(17_305_000, 3543)
// Minimum execution time: 18_374_000 picoseconds.
Weight::from_parts(19_200_000, 3543)
.saturating_add(T::DbWeight::get().reads(3_u64))
.saturating_add(T::DbWeight::get().writes(1_u64))
}
/// Storage: `RankedCollective::Members` (r:1 w:0)
/// Proof: `RankedCollective::Members` (`max_values`: None, `max_size`: Some(42), added: 2517, mode: `MaxEncodedLen`)
/// Storage: `Salary::Status` (r:1 w:1)
/// Proof: `Salary::Status` (`max_values`: Some(1), `max_size`: Some(56), added: 551, mode: `MaxEncodedLen`)
/// Storage: `Salary::Claimant` (r:1 w:1)
/// Proof: `Salary::Claimant` (`max_values`: None, `max_size`: Some(78), added: 2553, mode: `MaxEncodedLen`)
/// Storage: RankedCollective Members (r:1 w:0)
/// Proof: RankedCollective Members (max_values: None, max_size: Some(42), added: 2517, mode: MaxEncodedLen)
/// Storage: Salary Status (r:1 w:1)
/// Proof: Salary Status (max_values: Some(1), max_size: Some(56), added: 551, mode: MaxEncodedLen)
/// Storage: Salary Claimant (r:1 w:1)
/// Proof: Salary Claimant (max_values: None, max_size: Some(78), added: 2553, mode: MaxEncodedLen)
fn register() -> Weight {
// Proof Size summary in bytes:
// Measured: `462`
// Estimated: `3543`
// Minimum execution time: 18_913_000 picoseconds.
Weight::from_parts(19_867_000, 3543)
// Minimum execution time: 22_696_000 picoseconds.
Weight::from_parts(23_275_000, 3543)
.saturating_add(T::DbWeight::get().reads(3_u64))
.saturating_add(T::DbWeight::get().writes(2_u64))
}
/// Storage: `Salary::Status` (r:1 w:1)
/// Proof: `Salary::Status` (`max_values`: Some(1), `max_size`: Some(56), added: 551, mode: `MaxEncodedLen`)
/// Storage: `Salary::Claimant` (r:1 w:1)
/// Proof: `Salary::Claimant` (`max_values`: None, `max_size`: Some(78), added: 2553, mode: `MaxEncodedLen`)
/// Storage: `RankedCollective::Members` (r:1 w:0)
/// Proof: `RankedCollective::Members` (`max_values`: None, `max_size`: Some(42), added: 2517, mode: `MaxEncodedLen`)
/// Storage: Salary Status (r:1 w:1)
/// Proof: Salary Status (max_values: Some(1), max_size: Some(56), added: 551, mode: MaxEncodedLen)
/// Storage: Salary Claimant (r:1 w:1)
/// Proof: Salary Claimant (max_values: None, max_size: Some(78), added: 2553, mode: MaxEncodedLen)
/// Storage: RankedCollective Members (r:1 w:0)
/// Proof: RankedCollective Members (max_values: None, max_size: Some(42), added: 2517, mode: MaxEncodedLen)
fn payout() -> Weight {
// Proof Size summary in bytes:
// Measured: `462`
// Estimated: `3543`
// Minimum execution time: 53_297_000 picoseconds.
Weight::from_parts(55_144_000, 3543)
// Minimum execution time: 63_660_000 picoseconds.
Weight::from_parts(65_006_000, 3543)
.saturating_add(T::DbWeight::get().reads(3_u64))
.saturating_add(T::DbWeight::get().writes(2_u64))
}
/// Storage: `Salary::Status` (r:1 w:1)
/// Proof: `Salary::Status` (`max_values`: Some(1), `max_size`: Some(56), added: 551, mode: `MaxEncodedLen`)
/// Storage: `Salary::Claimant` (r:1 w:1)
/// Proof: `Salary::Claimant` (`max_values`: None, `max_size`: Some(78), added: 2553, mode: `MaxEncodedLen`)
/// Storage: `RankedCollective::Members` (r:1 w:0)
/// Proof: `RankedCollective::Members` (`max_values`: None, `max_size`: Some(42), added: 2517, mode: `MaxEncodedLen`)
/// Storage: `System::Account` (r:1 w:1)
/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
/// Storage: Salary Status (r:1 w:1)
/// Proof: Salary Status (max_values: Some(1), max_size: Some(56), added: 551, mode: MaxEncodedLen)
/// Storage: Salary Claimant (r:1 w:1)
/// Proof: Salary Claimant (max_values: None, max_size: Some(78), added: 2553, mode: MaxEncodedLen)
/// Storage: RankedCollective Members (r:1 w:0)
/// Proof: RankedCollective Members (max_values: None, max_size: Some(42), added: 2517, mode: MaxEncodedLen)
/// Storage: System Account (r:1 w:1)
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
fn payout_other() -> Weight {
// Proof Size summary in bytes:
// Measured: `462`
// Estimated: `3593`
// Minimum execution time: 53_638_000 picoseconds.
Weight::from_parts(55_328_000, 3593)
// Minimum execution time: 64_706_000 picoseconds.
Weight::from_parts(65_763_000, 3593)
.saturating_add(T::DbWeight::get().reads(4_u64))
.saturating_add(T::DbWeight::get().writes(3_u64))
}
/// Storage: `Salary::Status` (r:1 w:1)
/// Proof: `Salary::Status` (`max_values`: Some(1), `max_size`: Some(56), added: 551, mode: `MaxEncodedLen`)
/// Storage: `Salary::Claimant` (r:1 w:1)
/// Proof: `Salary::Claimant` (`max_values`: None, `max_size`: Some(78), added: 2553, mode: `MaxEncodedLen`)
/// Storage: Salary Status (r:1 w:1)
/// Proof: Salary Status (max_values: Some(1), max_size: Some(56), added: 551, mode: MaxEncodedLen)
/// Storage: Salary Claimant (r:1 w:1)
/// Proof: Salary Claimant (max_values: None, max_size: Some(78), added: 2553, mode: MaxEncodedLen)
fn check_payment() -> Weight {
// Proof Size summary in bytes:
// Measured: `170`
// Estimated: `3543`
// Minimum execution time: 10_557_000 picoseconds.
Weight::from_parts(11_145_000, 3543)
// Minimum execution time: 11_838_000 picoseconds.
Weight::from_parts(12_323_000, 3543)
.saturating_add(T::DbWeight::get().reads(2_u64))
.saturating_add(T::DbWeight::get().writes(2_u64))
}
}
// For backwards compatibility and tests.
// For backwards compatibility and tests
impl WeightInfo for () {
/// Storage: `Salary::Status` (r:1 w:1)
/// Proof: `Salary::Status` (`max_values`: Some(1), `max_size`: Some(56), added: 551, mode: `MaxEncodedLen`)
/// Storage: Salary Status (r:1 w:1)
/// Proof: Salary Status (max_values: Some(1), max_size: Some(56), added: 551, mode: MaxEncodedLen)
fn init() -> Weight {
// Proof Size summary in bytes:
// Measured: `4`
// Estimated: `1541`
// Minimum execution time: 7_421_000 picoseconds.
Weight::from_parts(7_819_000, 1541)
// Minimum execution time: 10_778_000 picoseconds.
Weight::from_parts(11_084_000, 1541)
.saturating_add(RocksDbWeight::get().reads(1_u64))
.saturating_add(RocksDbWeight::get().writes(1_u64))
}
/// Storage: `Salary::Status` (r:1 w:1)
/// Proof: `Salary::Status` (`max_values`: Some(1), `max_size`: Some(56), added: 551, mode: `MaxEncodedLen`)
/// Storage: Salary Status (r:1 w:1)
/// Proof: Salary Status (max_values: Some(1), max_size: Some(56), added: 551, mode: MaxEncodedLen)
fn bump() -> Weight {
// Proof Size summary in bytes:
// Measured: `86`
// Estimated: `1541`
// Minimum execution time: 8_651_000 picoseconds.
Weight::from_parts(9_056_000, 1541)
// Minimum execution time: 12_042_000 picoseconds.
Weight::from_parts(12_645_000, 1541)
.saturating_add(RocksDbWeight::get().reads(1_u64))
.saturating_add(RocksDbWeight::get().writes(1_u64))
}
/// Storage: `Salary::Status` (r:1 w:0)
/// Proof: `Salary::Status` (`max_values`: Some(1), `max_size`: Some(56), added: 551, mode: `MaxEncodedLen`)
/// Storage: `RankedCollective::Members` (r:1 w:0)
/// Proof: `RankedCollective::Members` (`max_values`: None, `max_size`: Some(42), added: 2517, mode: `MaxEncodedLen`)
/// Storage: `Salary::Claimant` (r:1 w:1)
/// Proof: `Salary::Claimant` (`max_values`: None, `max_size`: Some(78), added: 2553, mode: `MaxEncodedLen`)
/// Storage: Salary Status (r:1 w:0)
/// Proof: Salary Status (max_values: Some(1), max_size: Some(56), added: 551, mode: MaxEncodedLen)
/// Storage: RankedCollective Members (r:1 w:0)
/// Proof: RankedCollective Members (max_values: None, max_size: Some(42), added: 2517, mode: MaxEncodedLen)
/// Storage: Salary Claimant (r:1 w:1)
/// Proof: Salary Claimant (max_values: None, max_size: Some(78), added: 2553, mode: MaxEncodedLen)
fn induct() -> Weight {
// Proof Size summary in bytes:
// Measured: `395`
// Estimated: `3543`
// Minimum execution time: 16_513_000 picoseconds.
Weight::from_parts(17_305_000, 3543)
// Minimum execution time: 18_374_000 picoseconds.
Weight::from_parts(19_200_000, 3543)
.saturating_add(RocksDbWeight::get().reads(3_u64))
.saturating_add(RocksDbWeight::get().writes(1_u64))
}
/// Storage: `RankedCollective::Members` (r:1 w:0)
/// Proof: `RankedCollective::Members` (`max_values`: None, `max_size`: Some(42), added: 2517, mode: `MaxEncodedLen`)
/// Storage: `Salary::Status` (r:1 w:1)
/// Proof: `Salary::Status` (`max_values`: Some(1), `max_size`: Some(56), added: 551, mode: `MaxEncodedLen`)
/// Storage: `Salary::Claimant` (r:1 w:1)
/// Proof: `Salary::Claimant` (`max_values`: None, `max_size`: Some(78), added: 2553, mode: `MaxEncodedLen`)
/// Storage: RankedCollective Members (r:1 w:0)
/// Proof: RankedCollective Members (max_values: None, max_size: Some(42), added: 2517, mode: MaxEncodedLen)
/// Storage: Salary Status (r:1 w:1)
/// Proof: Salary Status (max_values: Some(1), max_size: Some(56), added: 551, mode: MaxEncodedLen)
/// Storage: Salary Claimant (r:1 w:1)
/// Proof: Salary Claimant (max_values: None, max_size: Some(78), added: 2553, mode: MaxEncodedLen)
fn register() -> Weight {
// Proof Size summary in bytes:
// Measured: `462`
// Estimated: `3543`
// Minimum execution time: 18_913_000 picoseconds.
Weight::from_parts(19_867_000, 3543)
// Minimum execution time: 22_696_000 picoseconds.
Weight::from_parts(23_275_000, 3543)
.saturating_add(RocksDbWeight::get().reads(3_u64))
.saturating_add(RocksDbWeight::get().writes(2_u64))
}
/// Storage: `Salary::Status` (r:1 w:1)
/// Proof: `Salary::Status` (`max_values`: Some(1), `max_size`: Some(56), added: 551, mode: `MaxEncodedLen`)
/// Storage: `Salary::Claimant` (r:1 w:1)
/// Proof: `Salary::Claimant` (`max_values`: None, `max_size`: Some(78), added: 2553, mode: `MaxEncodedLen`)
/// Storage: `RankedCollective::Members` (r:1 w:0)
/// Proof: `RankedCollective::Members` (`max_values`: None, `max_size`: Some(42), added: 2517, mode: `MaxEncodedLen`)
/// Storage: Salary Status (r:1 w:1)
/// Proof: Salary Status (max_values: Some(1), max_size: Some(56), added: 551, mode: MaxEncodedLen)
/// Storage: Salary Claimant (r:1 w:1)
/// Proof: Salary Claimant (max_values: None, max_size: Some(78), added: 2553, mode: MaxEncodedLen)
/// Storage: RankedCollective Members (r:1 w:0)
/// Proof: RankedCollective Members (max_values: None, max_size: Some(42), added: 2517, mode: MaxEncodedLen)
fn payout() -> Weight {
// Proof Size summary in bytes:
// Measured: `462`
// Estimated: `3543`
// Minimum execution time: 53_297_000 picoseconds.
Weight::from_parts(55_144_000, 3543)
// Minimum execution time: 63_660_000 picoseconds.
Weight::from_parts(65_006_000, 3543)
.saturating_add(RocksDbWeight::get().reads(3_u64))
.saturating_add(RocksDbWeight::get().writes(2_u64))
}
/// Storage: `Salary::Status` (r:1 w:1)
/// Proof: `Salary::Status` (`max_values`: Some(1), `max_size`: Some(56), added: 551, mode: `MaxEncodedLen`)
/// Storage: `Salary::Claimant` (r:1 w:1)
/// Proof: `Salary::Claimant` (`max_values`: None, `max_size`: Some(78), added: 2553, mode: `MaxEncodedLen`)
/// Storage: `RankedCollective::Members` (r:1 w:0)
/// Proof: `RankedCollective::Members` (`max_values`: None, `max_size`: Some(42), added: 2517, mode: `MaxEncodedLen`)
/// Storage: `System::Account` (r:1 w:1)
/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
/// Storage: Salary Status (r:1 w:1)
/// Proof: Salary Status (max_values: Some(1), max_size: Some(56), added: 551, mode: MaxEncodedLen)
/// Storage: Salary Claimant (r:1 w:1)
/// Proof: Salary Claimant (max_values: None, max_size: Some(78), added: 2553, mode: MaxEncodedLen)
/// Storage: RankedCollective Members (r:1 w:0)
/// Proof: RankedCollective Members (max_values: None, max_size: Some(42), added: 2517, mode: MaxEncodedLen)
/// Storage: System Account (r:1 w:1)
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
fn payout_other() -> Weight {
// Proof Size summary in bytes:
// Measured: `462`
// Estimated: `3593`
// Minimum execution time: 53_638_000 picoseconds.
Weight::from_parts(55_328_000, 3593)
// Minimum execution time: 64_706_000 picoseconds.
Weight::from_parts(65_763_000, 3593)
.saturating_add(RocksDbWeight::get().reads(4_u64))
.saturating_add(RocksDbWeight::get().writes(3_u64))
}
/// Storage: `Salary::Status` (r:1 w:1)
/// Proof: `Salary::Status` (`max_values`: Some(1), `max_size`: Some(56), added: 551, mode: `MaxEncodedLen`)
/// Storage: `Salary::Claimant` (r:1 w:1)
/// Proof: `Salary::Claimant` (`max_values`: None, `max_size`: Some(78), added: 2553, mode: `MaxEncodedLen`)
/// Storage: Salary Status (r:1 w:1)
/// Proof: Salary Status (max_values: Some(1), max_size: Some(56), added: 551, mode: MaxEncodedLen)
/// Storage: Salary Claimant (r:1 w:1)
/// Proof: Salary Claimant (max_values: None, max_size: Some(78), added: 2553, mode: MaxEncodedLen)
fn check_payment() -> Weight {
// Proof Size summary in bytes:
// Measured: `170`
// Estimated: `3543`
// Minimum execution time: 10_557_000 picoseconds.
Weight::from_parts(11_145_000, 3543)
// Minimum execution time: 11_838_000 picoseconds.
Weight::from_parts(12_323_000, 3543)
.saturating_add(RocksDbWeight::get().reads(2_u64))
.saturating_add(RocksDbWeight::get().writes(2_u64))
}
+2 -3
View File
@@ -34,8 +34,7 @@ use sp_core::{
H256, U256,
};
use sp_runtime::{
generic::UncheckedExtrinsic,
testing::{Digest, DigestItem, Header},
testing::{Digest, DigestItem, Header, TestXt},
BuildStorage,
};
@@ -54,7 +53,7 @@ where
RuntimeCall: From<C>,
{
type OverarchingCall = RuntimeCall;
type Extrinsic = UncheckedExtrinsic<u64, RuntimeCall, (), ()>;
type Extrinsic = TestXt<RuntimeCall, ()>;
}
impl pallet_sassafras::Config for Test {
+130 -136
View File
@@ -17,28 +17,26 @@
//! Autogenerated weights for `pallet_scheduler`
//!
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0
//! DATE: 2024-03-01, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
//! DATE: 2024-01-25, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! WORST CASE MAP SIZE: `1000000`
//! HOSTNAME: `runner-bn-ce5rx-project-674-concurrent-0`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz`
//! HOSTNAME: `runner-grjcggob-project-674-concurrent-0`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz`
//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("dev")`, DB CACHE: `1024`
// Executed Command:
// ./target/production/substrate-node
// target/production/substrate-node
// benchmark
// pallet
// --chain=dev
// --steps=50
// --repeat=20
// --pallet=pallet_scheduler
// --no-storage-info
// --no-median-slopes
// --no-min-squares
// --extrinsic=*
// --wasm-execution=compiled
// --heap-pages=4096
// --output=./substrate/frame/scheduler/src/weights.rs
// --json-file=/builds/parity/mirrors/polkadot-sdk/.git/.artifacts/bench.json
// --pallet=pallet_scheduler
// --chain=dev
// --header=./substrate/HEADER-APACHE2
// --output=./substrate/frame/scheduler/src/weights.rs
// --template=./substrate/.maintain/frame-weight-template.hbs
#![cfg_attr(rustfmt, rustfmt_skip)]
@@ -79,8 +77,8 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
// Proof Size summary in bytes:
// Measured: `31`
// Estimated: `1489`
// Minimum execution time: 3_128_000 picoseconds.
Weight::from_parts(3_372_000, 1489)
// Minimum execution time: 3_040_000 picoseconds.
Weight::from_parts(3_202_000, 1489)
.saturating_add(T::DbWeight::get().reads(1_u64))
.saturating_add(T::DbWeight::get().writes(1_u64))
}
@@ -91,10 +89,10 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
// Proof Size summary in bytes:
// Measured: `81 + s * (177 ±0)`
// Estimated: `110487`
// Minimum execution time: 3_560_000 picoseconds.
Weight::from_parts(6_356_795, 110487)
// Standard Error: 493
.saturating_add(Weight::from_parts(315_098, 0).saturating_mul(s.into()))
// Minimum execution time: 3_462_000 picoseconds.
Weight::from_parts(6_262_125, 110487)
// Standard Error: 536
.saturating_add(Weight::from_parts(332_570, 0).saturating_mul(s.into()))
.saturating_add(T::DbWeight::get().reads(1_u64))
.saturating_add(T::DbWeight::get().writes(1_u64))
}
@@ -102,8 +100,8 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `0`
// Minimum execution time: 3_501_000 picoseconds.
Weight::from_parts(3_722_000, 0)
// Minimum execution time: 3_425_000 picoseconds.
Weight::from_parts(3_680_000, 0)
}
/// Storage: `Preimage::PreimageFor` (r:1 w:1)
/// Proof: `Preimage::PreimageFor` (`max_values`: None, `max_size`: Some(4194344), added: 4196819, mode: `Measured`)
@@ -116,10 +114,10 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
// Proof Size summary in bytes:
// Measured: `246 + s * (1 ±0)`
// Estimated: `3711 + s * (1 ±0)`
// Minimum execution time: 17_976_000 picoseconds.
Weight::from_parts(18_137_000, 3711)
// Standard Error: 0
.saturating_add(Weight::from_parts(1_173, 0).saturating_mul(s.into()))
// Minimum execution time: 17_564_000 picoseconds.
Weight::from_parts(17_887_000, 3711)
// Standard Error: 1
.saturating_add(Weight::from_parts(1_253, 0).saturating_mul(s.into()))
.saturating_add(T::DbWeight::get().reads(3_u64))
.saturating_add(T::DbWeight::get().writes(2_u64))
.saturating_add(Weight::from_parts(0, 1).saturating_mul(s.into()))
@@ -130,16 +128,16 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `0`
// Minimum execution time: 4_935_000 picoseconds.
Weight::from_parts(5_133_000, 0)
// Minimum execution time: 4_934_000 picoseconds.
Weight::from_parts(5_275_000, 0)
.saturating_add(T::DbWeight::get().writes(1_u64))
}
fn service_task_periodic() -> Weight {
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `0`
// Minimum execution time: 3_467_000 picoseconds.
Weight::from_parts(3_654_000, 0)
// Minimum execution time: 3_348_000 picoseconds.
Weight::from_parts(3_561_000, 0)
}
/// Storage: `SafeMode::EnteredUntil` (r:1 w:0)
/// Proof: `SafeMode::EnteredUntil` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
@@ -149,16 +147,16 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
// Proof Size summary in bytes:
// Measured: `145`
// Estimated: `3997`
// Minimum execution time: 6_528_000 picoseconds.
Weight::from_parts(6_820_000, 3997)
// Minimum execution time: 6_395_000 picoseconds.
Weight::from_parts(6_642_000, 3997)
.saturating_add(T::DbWeight::get().reads(2_u64))
}
fn execute_dispatch_unsigned() -> Weight {
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `0`
// Minimum execution time: 2_202_000 picoseconds.
Weight::from_parts(2_360_000, 0)
// Minimum execution time: 2_167_000 picoseconds.
Weight::from_parts(2_266_000, 0)
}
/// Storage: `Scheduler::Agenda` (r:1 w:1)
/// Proof: `Scheduler::Agenda` (`max_values`: None, `max_size`: Some(107022), added: 109497, mode: `MaxEncodedLen`)
@@ -167,17 +165,15 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
// Proof Size summary in bytes:
// Measured: `81 + s * (177 ±0)`
// Estimated: `110487`
// Minimum execution time: 10_222_000 picoseconds.
Weight::from_parts(13_654_958, 110487)
// Standard Error: 676
.saturating_add(Weight::from_parts(338_633, 0).saturating_mul(s.into()))
// Minimum execution time: 10_009_000 picoseconds.
Weight::from_parts(13_565_985, 110487)
// Standard Error: 575
.saturating_add(Weight::from_parts(354_760, 0).saturating_mul(s.into()))
.saturating_add(T::DbWeight::get().reads(1_u64))
.saturating_add(T::DbWeight::get().writes(1_u64))
}
/// Storage: `Scheduler::Agenda` (r:1 w:1)
/// Proof: `Scheduler::Agenda` (`max_values`: None, `max_size`: Some(107022), added: 109497, mode: `MaxEncodedLen`)
/// Storage: `Scheduler::Retries` (r:0 w:1)
/// Proof: `Scheduler::Retries` (`max_values`: None, `max_size`: Some(30), added: 2505, mode: `MaxEncodedLen`)
/// Storage: `Scheduler::Lookup` (r:0 w:1)
/// Proof: `Scheduler::Lookup` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
/// The range of component `s` is `[1, 512]`.
@@ -185,12 +181,12 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
// Proof Size summary in bytes:
// Measured: `81 + s * (177 ±0)`
// Estimated: `110487`
// Minimum execution time: 15_517_000 picoseconds.
Weight::from_parts(17_464_075, 110487)
// Standard Error: 952
.saturating_add(Weight::from_parts(495_806, 0).saturating_mul(s.into()))
// Minimum execution time: 14_048_000 picoseconds.
Weight::from_parts(15_141_696, 110487)
// Standard Error: 1_082
.saturating_add(Weight::from_parts(533_390, 0).saturating_mul(s.into()))
.saturating_add(T::DbWeight::get().reads(1_u64))
.saturating_add(T::DbWeight::get().writes(3_u64))
.saturating_add(T::DbWeight::get().writes(2_u64))
}
/// Storage: `Scheduler::Lookup` (r:1 w:1)
/// Proof: `Scheduler::Lookup` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
@@ -201,10 +197,10 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
// Proof Size summary in bytes:
// Measured: `596 + s * (178 ±0)`
// Estimated: `110487`
// Minimum execution time: 13_091_000 picoseconds.
Weight::from_parts(19_101_313, 110487)
// Standard Error: 662
.saturating_add(Weight::from_parts(342_468, 0).saturating_mul(s.into()))
// Minimum execution time: 12_902_000 picoseconds.
Weight::from_parts(18_957_156, 110487)
// Standard Error: 792
.saturating_add(Weight::from_parts(361_909, 0).saturating_mul(s.into()))
.saturating_add(T::DbWeight::get().reads(2_u64))
.saturating_add(T::DbWeight::get().writes(2_u64))
}
@@ -212,35 +208,35 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
/// Proof: `Scheduler::Lookup` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
/// Storage: `Scheduler::Agenda` (r:1 w:1)
/// Proof: `Scheduler::Agenda` (`max_values`: None, `max_size`: Some(107022), added: 109497, mode: `MaxEncodedLen`)
/// Storage: `Scheduler::Retries` (r:0 w:1)
/// Proof: `Scheduler::Retries` (`max_values`: None, `max_size`: Some(30), added: 2505, mode: `MaxEncodedLen`)
/// The range of component `s` is `[1, 512]`.
fn cancel_named(s: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `709 + s * (177 ±0)`
// Estimated: `110487`
// Minimum execution time: 17_579_000 picoseconds.
Weight::from_parts(20_561_921, 110487)
// Standard Error: 792
.saturating_add(Weight::from_parts(500_463, 0).saturating_mul(s.into()))
// Minimum execution time: 15_933_000 picoseconds.
Weight::from_parts(18_091_415, 110487)
// Standard Error: 779
.saturating_add(Weight::from_parts(534_402, 0).saturating_mul(s.into()))
.saturating_add(T::DbWeight::get().reads(2_u64))
.saturating_add(T::DbWeight::get().writes(3_u64))
.saturating_add(T::DbWeight::get().writes(2_u64))
}
/// Storage: `Scheduler::Retries` (r:1 w:2)
/// Proof: `Scheduler::Retries` (`max_values`: None, `max_size`: Some(30), added: 2505, mode: `MaxEncodedLen`)
/// Storage: `Scheduler::Agenda` (r:1 w:1)
/// Proof: `Scheduler::Agenda` (`max_values`: None, `max_size`: Some(107022), added: 109497, mode: `MaxEncodedLen`)
/// Storage: `Scheduler::Retries` (r:0 w:1)
/// Proof: `Scheduler::Retries` (`max_values`: None, `max_size`: Some(30), added: 2505, mode: `MaxEncodedLen`)
/// Storage: `Scheduler::Lookup` (r:0 w:1)
/// Proof: `Scheduler::Lookup` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
/// The range of component `s` is `[1, 512]`.
fn schedule_retry(s: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `118`
// Measured: `159`
// Estimated: `110487`
// Minimum execution time: 8_996_000 picoseconds.
Weight::from_parts(11_393_234, 110487)
// Standard Error: 190
.saturating_add(Weight::from_parts(6_714, 0).saturating_mul(s.into()))
.saturating_add(T::DbWeight::get().reads(1_u64))
.saturating_add(T::DbWeight::get().writes(2_u64))
// Minimum execution time: 14_155_000 picoseconds.
Weight::from_parts(16_447_031, 110487)
// Standard Error: 233
.saturating_add(Weight::from_parts(8_424, 0).saturating_mul(s.into()))
.saturating_add(T::DbWeight::get().reads(2_u64))
.saturating_add(T::DbWeight::get().writes(4_u64))
}
/// Storage: `Scheduler::Agenda` (r:1 w:0)
/// Proof: `Scheduler::Agenda` (`max_values`: None, `max_size`: Some(107022), added: 109497, mode: `MaxEncodedLen`)
@@ -248,10 +244,10 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
/// Proof: `Scheduler::Retries` (`max_values`: None, `max_size`: Some(30), added: 2505, mode: `MaxEncodedLen`)
fn set_retry() -> Weight {
// Proof Size summary in bytes:
// Measured: `90705`
// Measured: `81 + s * (177 ±0)`
// Estimated: `110487`
// Minimum execution time: 121_505_000 picoseconds.
Weight::from_parts(124_306_000, 110487)
// Minimum execution time: 8_130_000 picoseconds.
Weight::from_parts(9_047_554, 110487)
.saturating_add(T::DbWeight::get().reads(1_u64))
.saturating_add(T::DbWeight::get().writes(1_u64))
}
@@ -263,10 +259,10 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
/// Proof: `Scheduler::Retries` (`max_values`: None, `max_size`: Some(30), added: 2505, mode: `MaxEncodedLen`)
fn set_retry_named() -> Weight {
// Proof Size summary in bytes:
// Measured: `91747`
// Measured: `647 + s * (178 ±0)`
// Estimated: `110487`
// Minimum execution time: 128_070_000 picoseconds.
Weight::from_parts(132_683_000, 110487)
// Minimum execution time: 10_838_000 picoseconds.
Weight::from_parts(12_804_076, 110487)
.saturating_add(T::DbWeight::get().reads(2_u64))
.saturating_add(T::DbWeight::get().writes(1_u64))
}
@@ -276,10 +272,10 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
/// Proof: `Scheduler::Retries` (`max_values`: None, `max_size`: Some(30), added: 2505, mode: `MaxEncodedLen`)
fn cancel_retry() -> Weight {
// Proof Size summary in bytes:
// Measured: `90717`
// Measured: `81 + s * (177 ±0)`
// Estimated: `110487`
// Minimum execution time: 118_260_000 picoseconds.
Weight::from_parts(119_722_000, 110487)
// Minimum execution time: 8_130_000 picoseconds.
Weight::from_parts(9_047_554, 110487)
.saturating_add(T::DbWeight::get().reads(1_u64))
.saturating_add(T::DbWeight::get().writes(1_u64))
}
@@ -291,10 +287,10 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
/// Proof: `Scheduler::Retries` (`max_values`: None, `max_size`: Some(30), added: 2505, mode: `MaxEncodedLen`)
fn cancel_retry_named() -> Weight {
// Proof Size summary in bytes:
// Measured: `91759`
// Measured: `647 + s * (178 ±0)`
// Estimated: `110487`
// Minimum execution time: 129_036_000 picoseconds.
Weight::from_parts(133_975_000, 110487)
// Minimum execution time: 10_838_000 picoseconds.
Weight::from_parts(12_804_076, 110487)
.saturating_add(T::DbWeight::get().reads(2_u64))
.saturating_add(T::DbWeight::get().writes(1_u64))
}
@@ -308,8 +304,8 @@ impl WeightInfo for () {
// Proof Size summary in bytes:
// Measured: `31`
// Estimated: `1489`
// Minimum execution time: 3_128_000 picoseconds.
Weight::from_parts(3_372_000, 1489)
// Minimum execution time: 3_040_000 picoseconds.
Weight::from_parts(3_202_000, 1489)
.saturating_add(RocksDbWeight::get().reads(1_u64))
.saturating_add(RocksDbWeight::get().writes(1_u64))
}
@@ -320,10 +316,10 @@ impl WeightInfo for () {
// Proof Size summary in bytes:
// Measured: `81 + s * (177 ±0)`
// Estimated: `110487`
// Minimum execution time: 3_560_000 picoseconds.
Weight::from_parts(6_356_795, 110487)
// Standard Error: 493
.saturating_add(Weight::from_parts(315_098, 0).saturating_mul(s.into()))
// Minimum execution time: 3_462_000 picoseconds.
Weight::from_parts(6_262_125, 110487)
// Standard Error: 536
.saturating_add(Weight::from_parts(332_570, 0).saturating_mul(s.into()))
.saturating_add(RocksDbWeight::get().reads(1_u64))
.saturating_add(RocksDbWeight::get().writes(1_u64))
}
@@ -331,8 +327,8 @@ impl WeightInfo for () {
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `0`
// Minimum execution time: 3_501_000 picoseconds.
Weight::from_parts(3_722_000, 0)
// Minimum execution time: 3_425_000 picoseconds.
Weight::from_parts(3_680_000, 0)
}
/// Storage: `Preimage::PreimageFor` (r:1 w:1)
/// Proof: `Preimage::PreimageFor` (`max_values`: None, `max_size`: Some(4194344), added: 4196819, mode: `Measured`)
@@ -345,10 +341,10 @@ impl WeightInfo for () {
// Proof Size summary in bytes:
// Measured: `246 + s * (1 ±0)`
// Estimated: `3711 + s * (1 ±0)`
// Minimum execution time: 17_976_000 picoseconds.
Weight::from_parts(18_137_000, 3711)
// Standard Error: 0
.saturating_add(Weight::from_parts(1_173, 0).saturating_mul(s.into()))
// Minimum execution time: 17_564_000 picoseconds.
Weight::from_parts(17_887_000, 3711)
// Standard Error: 1
.saturating_add(Weight::from_parts(1_253, 0).saturating_mul(s.into()))
.saturating_add(RocksDbWeight::get().reads(3_u64))
.saturating_add(RocksDbWeight::get().writes(2_u64))
.saturating_add(Weight::from_parts(0, 1).saturating_mul(s.into()))
@@ -359,16 +355,16 @@ impl WeightInfo for () {
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `0`
// Minimum execution time: 4_935_000 picoseconds.
Weight::from_parts(5_133_000, 0)
// Minimum execution time: 4_934_000 picoseconds.
Weight::from_parts(5_275_000, 0)
.saturating_add(RocksDbWeight::get().writes(1_u64))
}
fn service_task_periodic() -> Weight {
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `0`
// Minimum execution time: 3_467_000 picoseconds.
Weight::from_parts(3_654_000, 0)
// Minimum execution time: 3_348_000 picoseconds.
Weight::from_parts(3_561_000, 0)
}
/// Storage: `SafeMode::EnteredUntil` (r:1 w:0)
/// Proof: `SafeMode::EnteredUntil` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
@@ -378,16 +374,16 @@ impl WeightInfo for () {
// Proof Size summary in bytes:
// Measured: `145`
// Estimated: `3997`
// Minimum execution time: 6_528_000 picoseconds.
Weight::from_parts(6_820_000, 3997)
// Minimum execution time: 6_395_000 picoseconds.
Weight::from_parts(6_642_000, 3997)
.saturating_add(RocksDbWeight::get().reads(2_u64))
}
fn execute_dispatch_unsigned() -> Weight {
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `0`
// Minimum execution time: 2_202_000 picoseconds.
Weight::from_parts(2_360_000, 0)
// Minimum execution time: 2_167_000 picoseconds.
Weight::from_parts(2_266_000, 0)
}
/// Storage: `Scheduler::Agenda` (r:1 w:1)
/// Proof: `Scheduler::Agenda` (`max_values`: None, `max_size`: Some(107022), added: 109497, mode: `MaxEncodedLen`)
@@ -396,17 +392,15 @@ impl WeightInfo for () {
// Proof Size summary in bytes:
// Measured: `81 + s * (177 ±0)`
// Estimated: `110487`
// Minimum execution time: 10_222_000 picoseconds.
Weight::from_parts(13_654_958, 110487)
// Standard Error: 676
.saturating_add(Weight::from_parts(338_633, 0).saturating_mul(s.into()))
// Minimum execution time: 10_009_000 picoseconds.
Weight::from_parts(13_565_985, 110487)
// Standard Error: 575
.saturating_add(Weight::from_parts(354_760, 0).saturating_mul(s.into()))
.saturating_add(RocksDbWeight::get().reads(1_u64))
.saturating_add(RocksDbWeight::get().writes(1_u64))
}
/// Storage: `Scheduler::Agenda` (r:1 w:1)
/// Proof: `Scheduler::Agenda` (`max_values`: None, `max_size`: Some(107022), added: 109497, mode: `MaxEncodedLen`)
/// Storage: `Scheduler::Retries` (r:0 w:1)
/// Proof: `Scheduler::Retries` (`max_values`: None, `max_size`: Some(30), added: 2505, mode: `MaxEncodedLen`)
/// Storage: `Scheduler::Lookup` (r:0 w:1)
/// Proof: `Scheduler::Lookup` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
/// The range of component `s` is `[1, 512]`.
@@ -414,12 +408,12 @@ impl WeightInfo for () {
// Proof Size summary in bytes:
// Measured: `81 + s * (177 ±0)`
// Estimated: `110487`
// Minimum execution time: 15_517_000 picoseconds.
Weight::from_parts(17_464_075, 110487)
// Standard Error: 952
.saturating_add(Weight::from_parts(495_806, 0).saturating_mul(s.into()))
// Minimum execution time: 14_048_000 picoseconds.
Weight::from_parts(15_141_696, 110487)
// Standard Error: 1_082
.saturating_add(Weight::from_parts(533_390, 0).saturating_mul(s.into()))
.saturating_add(RocksDbWeight::get().reads(1_u64))
.saturating_add(RocksDbWeight::get().writes(3_u64))
.saturating_add(RocksDbWeight::get().writes(2_u64))
}
/// Storage: `Scheduler::Lookup` (r:1 w:1)
/// Proof: `Scheduler::Lookup` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
@@ -430,10 +424,10 @@ impl WeightInfo for () {
// Proof Size summary in bytes:
// Measured: `596 + s * (178 ±0)`
// Estimated: `110487`
// Minimum execution time: 13_091_000 picoseconds.
Weight::from_parts(19_101_313, 110487)
// Standard Error: 662
.saturating_add(Weight::from_parts(342_468, 0).saturating_mul(s.into()))
// Minimum execution time: 12_902_000 picoseconds.
Weight::from_parts(18_957_156, 110487)
// Standard Error: 792
.saturating_add(Weight::from_parts(361_909, 0).saturating_mul(s.into()))
.saturating_add(RocksDbWeight::get().reads(2_u64))
.saturating_add(RocksDbWeight::get().writes(2_u64))
}
@@ -441,35 +435,35 @@ impl WeightInfo for () {
/// Proof: `Scheduler::Lookup` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
/// Storage: `Scheduler::Agenda` (r:1 w:1)
/// Proof: `Scheduler::Agenda` (`max_values`: None, `max_size`: Some(107022), added: 109497, mode: `MaxEncodedLen`)
/// Storage: `Scheduler::Retries` (r:0 w:1)
/// Proof: `Scheduler::Retries` (`max_values`: None, `max_size`: Some(30), added: 2505, mode: `MaxEncodedLen`)
/// The range of component `s` is `[1, 512]`.
fn cancel_named(s: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `709 + s * (177 ±0)`
// Estimated: `110487`
// Minimum execution time: 17_579_000 picoseconds.
Weight::from_parts(20_561_921, 110487)
// Standard Error: 792
.saturating_add(Weight::from_parts(500_463, 0).saturating_mul(s.into()))
// Minimum execution time: 15_933_000 picoseconds.
Weight::from_parts(18_091_415, 110487)
// Standard Error: 779
.saturating_add(Weight::from_parts(534_402, 0).saturating_mul(s.into()))
.saturating_add(RocksDbWeight::get().reads(2_u64))
.saturating_add(RocksDbWeight::get().writes(3_u64))
.saturating_add(RocksDbWeight::get().writes(2_u64))
}
/// Storage: `Scheduler::Retries` (r:1 w:2)
/// Proof: `Scheduler::Retries` (`max_values`: None, `max_size`: Some(30), added: 2505, mode: `MaxEncodedLen`)
/// Storage: `Scheduler::Agenda` (r:1 w:1)
/// Proof: `Scheduler::Agenda` (`max_values`: None, `max_size`: Some(107022), added: 109497, mode: `MaxEncodedLen`)
/// Storage: `Scheduler::Retries` (r:0 w:1)
/// Proof: `Scheduler::Retries` (`max_values`: None, `max_size`: Some(30), added: 2505, mode: `MaxEncodedLen`)
/// Storage: `Scheduler::Lookup` (r:0 w:1)
/// Proof: `Scheduler::Lookup` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
/// The range of component `s` is `[1, 512]`.
fn schedule_retry(s: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `118`
// Measured: `159`
// Estimated: `110487`
// Minimum execution time: 8_996_000 picoseconds.
Weight::from_parts(11_393_234, 110487)
// Standard Error: 190
.saturating_add(Weight::from_parts(6_714, 0).saturating_mul(s.into()))
.saturating_add(RocksDbWeight::get().reads(1_u64))
.saturating_add(RocksDbWeight::get().writes(2_u64))
// Minimum execution time: 14_155_000 picoseconds.
Weight::from_parts(16_447_031, 110487)
// Standard Error: 233
.saturating_add(Weight::from_parts(8_424, 0).saturating_mul(s.into()))
.saturating_add(RocksDbWeight::get().reads(2_u64))
.saturating_add(RocksDbWeight::get().writes(4_u64))
}
/// Storage: `Scheduler::Agenda` (r:1 w:0)
/// Proof: `Scheduler::Agenda` (`max_values`: None, `max_size`: Some(107022), added: 109497, mode: `MaxEncodedLen`)
@@ -477,10 +471,10 @@ impl WeightInfo for () {
/// Proof: `Scheduler::Retries` (`max_values`: None, `max_size`: Some(30), added: 2505, mode: `MaxEncodedLen`)
fn set_retry() -> Weight {
// Proof Size summary in bytes:
// Measured: `90705`
// Measured: `81 + s * (177 ±0)`
// Estimated: `110487`
// Minimum execution time: 121_505_000 picoseconds.
Weight::from_parts(124_306_000, 110487)
// Minimum execution time: 8_130_000 picoseconds.
Weight::from_parts(9_047_554, 110487)
.saturating_add(RocksDbWeight::get().reads(1_u64))
.saturating_add(RocksDbWeight::get().writes(1_u64))
}
@@ -492,10 +486,10 @@ impl WeightInfo for () {
/// Proof: `Scheduler::Retries` (`max_values`: None, `max_size`: Some(30), added: 2505, mode: `MaxEncodedLen`)
fn set_retry_named() -> Weight {
// Proof Size summary in bytes:
// Measured: `91747`
// Measured: `647 + s * (178 ±0)`
// Estimated: `110487`
// Minimum execution time: 128_070_000 picoseconds.
Weight::from_parts(132_683_000, 110487)
// Minimum execution time: 10_838_000 picoseconds.
Weight::from_parts(12_804_076, 110487)
.saturating_add(RocksDbWeight::get().reads(2_u64))
.saturating_add(RocksDbWeight::get().writes(1_u64))
}
@@ -505,10 +499,10 @@ impl WeightInfo for () {
/// Proof: `Scheduler::Retries` (`max_values`: None, `max_size`: Some(30), added: 2505, mode: `MaxEncodedLen`)
fn cancel_retry() -> Weight {
// Proof Size summary in bytes:
// Measured: `90717`
// Measured: `81 + s * (177 ±0)`
// Estimated: `110487`
// Minimum execution time: 118_260_000 picoseconds.
Weight::from_parts(119_722_000, 110487)
// Minimum execution time: 8_130_000 picoseconds.
Weight::from_parts(9_047_554, 110487)
.saturating_add(RocksDbWeight::get().reads(1_u64))
.saturating_add(RocksDbWeight::get().writes(1_u64))
}
@@ -520,10 +514,10 @@ impl WeightInfo for () {
/// Proof: `Scheduler::Retries` (`max_values`: None, `max_size`: Some(30), added: 2505, mode: `MaxEncodedLen`)
fn cancel_retry_named() -> Weight {
// Proof Size summary in bytes:
// Measured: `91759`
// Measured: `647 + s * (178 ±0)`
// Estimated: `110487`
// Minimum execution time: 129_036_000 picoseconds.
Weight::from_parts(133_975_000, 110487)
// Minimum execution time: 10_838_000 picoseconds.
Weight::from_parts(12_804_076, 110487)
.saturating_add(RocksDbWeight::get().reads(2_u64))
.saturating_add(RocksDbWeight::get().writes(1_u64))
}
+59 -58
View File
@@ -15,16 +15,16 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//! Autogenerated weights for `pallet_session`
//! Autogenerated weights for pallet_session
//!
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0
//! DATE: 2024-03-01, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
//! DATE: 2023-06-16, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! WORST CASE MAP SIZE: `1000000`
//! HOSTNAME: `runner-bn-ce5rx-project-674-concurrent-0`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz`
//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("dev")`, DB CACHE: `1024`
//! HOSTNAME: `runner-e8ezs4ez-project-145-concurrent-0`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz`
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024
// Executed Command:
// ./target/production/substrate-node
// ./target/production/substrate
// benchmark
// pallet
// --chain=dev
@@ -35,11 +35,12 @@
// --no-median-slopes
// --no-min-squares
// --extrinsic=*
// --execution=wasm
// --wasm-execution=compiled
// --heap-pages=4096
// --output=./substrate/frame/session/src/weights.rs
// --header=./substrate/HEADER-APACHE2
// --template=./substrate/.maintain/frame-weight-template.hbs
// --output=./frame/session/src/weights.rs
// --header=./HEADER-APACHE2
// --template=./.maintain/frame-weight-template.hbs
#![cfg_attr(rustfmt, rustfmt_skip)]
#![allow(unused_parens)]
@@ -49,77 +50,77 @@
use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}};
use core::marker::PhantomData;
/// Weight functions needed for `pallet_session`.
/// Weight functions needed for pallet_session.
pub trait WeightInfo {
fn set_keys() -> Weight;
fn purge_keys() -> Weight;
}
/// Weights for `pallet_session` using the Substrate node and recommended hardware.
/// Weights for pallet_session using the Substrate node and recommended hardware.
pub struct SubstrateWeight<T>(PhantomData<T>);
impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
/// Storage: `Staking::Ledger` (r:1 w:0)
/// Proof: `Staking::Ledger` (`max_values`: None, `max_size`: Some(1091), added: 3566, mode: `MaxEncodedLen`)
/// Storage: `Session::NextKeys` (r:1 w:1)
/// Proof: `Session::NextKeys` (`max_values`: None, `max_size`: None, mode: `Measured`)
/// Storage: `Session::KeyOwner` (r:6 w:6)
/// Proof: `Session::KeyOwner` (`max_values`: None, `max_size`: None, mode: `Measured`)
/// Storage: Staking Ledger (r:1 w:0)
/// Proof: Staking Ledger (max_values: None, max_size: Some(1091), added: 3566, mode: MaxEncodedLen)
/// Storage: Session NextKeys (r:1 w:1)
/// Proof Skipped: Session NextKeys (max_values: None, max_size: None, mode: Measured)
/// Storage: Session KeyOwner (r:4 w:4)
/// Proof Skipped: Session KeyOwner (max_values: None, max_size: None, mode: Measured)
fn set_keys() -> Weight {
// Proof Size summary in bytes:
// Measured: `1919`
// Estimated: `17759`
// Minimum execution time: 57_921_000 picoseconds.
Weight::from_parts(58_960_000, 17759)
.saturating_add(T::DbWeight::get().reads(8_u64))
.saturating_add(T::DbWeight::get().writes(7_u64))
// Measured: `1924`
// Estimated: `12814`
// Minimum execution time: 55_459_000 picoseconds.
Weight::from_parts(56_180_000, 12814)
.saturating_add(T::DbWeight::get().reads(6_u64))
.saturating_add(T::DbWeight::get().writes(5_u64))
}
/// Storage: `Staking::Ledger` (r:1 w:0)
/// Proof: `Staking::Ledger` (`max_values`: None, `max_size`: Some(1091), added: 3566, mode: `MaxEncodedLen`)
/// Storage: `Session::NextKeys` (r:1 w:1)
/// Proof: `Session::NextKeys` (`max_values`: None, `max_size`: None, mode: `Measured`)
/// Storage: `Session::KeyOwner` (r:0 w:6)
/// Proof: `Session::KeyOwner` (`max_values`: None, `max_size`: None, mode: `Measured`)
/// Storage: Staking Ledger (r:1 w:0)
/// Proof: Staking Ledger (max_values: None, max_size: Some(1091), added: 3566, mode: MaxEncodedLen)
/// Storage: Session NextKeys (r:1 w:1)
/// Proof Skipped: Session NextKeys (max_values: None, max_size: None, mode: Measured)
/// Storage: Session KeyOwner (r:0 w:4)
/// Proof Skipped: Session KeyOwner (max_values: None, max_size: None, mode: Measured)
fn purge_keys() -> Weight {
// Proof Size summary in bytes:
// Measured: `1817`
// Estimated: `5282`
// Minimum execution time: 40_983_000 picoseconds.
Weight::from_parts(42_700_000, 5282)
// Measured: `1791`
// Estimated: `5256`
// Minimum execution time: 40_194_000 picoseconds.
Weight::from_parts(41_313_000, 5256)
.saturating_add(T::DbWeight::get().reads(2_u64))
.saturating_add(T::DbWeight::get().writes(7_u64))
.saturating_add(T::DbWeight::get().writes(5_u64))
}
}
// For backwards compatibility and tests.
// For backwards compatibility and tests
impl WeightInfo for () {
/// Storage: `Staking::Ledger` (r:1 w:0)
/// Proof: `Staking::Ledger` (`max_values`: None, `max_size`: Some(1091), added: 3566, mode: `MaxEncodedLen`)
/// Storage: `Session::NextKeys` (r:1 w:1)
/// Proof: `Session::NextKeys` (`max_values`: None, `max_size`: None, mode: `Measured`)
/// Storage: `Session::KeyOwner` (r:6 w:6)
/// Proof: `Session::KeyOwner` (`max_values`: None, `max_size`: None, mode: `Measured`)
/// Storage: Staking Ledger (r:1 w:0)
/// Proof: Staking Ledger (max_values: None, max_size: Some(1091), added: 3566, mode: MaxEncodedLen)
/// Storage: Session NextKeys (r:1 w:1)
/// Proof Skipped: Session NextKeys (max_values: None, max_size: None, mode: Measured)
/// Storage: Session KeyOwner (r:4 w:4)
/// Proof Skipped: Session KeyOwner (max_values: None, max_size: None, mode: Measured)
fn set_keys() -> Weight {
// Proof Size summary in bytes:
// Measured: `1919`
// Estimated: `17759`
// Minimum execution time: 57_921_000 picoseconds.
Weight::from_parts(58_960_000, 17759)
.saturating_add(RocksDbWeight::get().reads(8_u64))
.saturating_add(RocksDbWeight::get().writes(7_u64))
// Measured: `1924`
// Estimated: `12814`
// Minimum execution time: 55_459_000 picoseconds.
Weight::from_parts(56_180_000, 12814)
.saturating_add(RocksDbWeight::get().reads(6_u64))
.saturating_add(RocksDbWeight::get().writes(5_u64))
}
/// Storage: `Staking::Ledger` (r:1 w:0)
/// Proof: `Staking::Ledger` (`max_values`: None, `max_size`: Some(1091), added: 3566, mode: `MaxEncodedLen`)
/// Storage: `Session::NextKeys` (r:1 w:1)
/// Proof: `Session::NextKeys` (`max_values`: None, `max_size`: None, mode: `Measured`)
/// Storage: `Session::KeyOwner` (r:0 w:6)
/// Proof: `Session::KeyOwner` (`max_values`: None, `max_size`: None, mode: `Measured`)
/// Storage: Staking Ledger (r:1 w:0)
/// Proof: Staking Ledger (max_values: None, max_size: Some(1091), added: 3566, mode: MaxEncodedLen)
/// Storage: Session NextKeys (r:1 w:1)
/// Proof Skipped: Session NextKeys (max_values: None, max_size: None, mode: Measured)
/// Storage: Session KeyOwner (r:0 w:4)
/// Proof Skipped: Session KeyOwner (max_values: None, max_size: None, mode: Measured)
fn purge_keys() -> Weight {
// Proof Size summary in bytes:
// Measured: `1817`
// Estimated: `5282`
// Minimum execution time: 40_983_000 picoseconds.
Weight::from_parts(42_700_000, 5282)
// Measured: `1791`
// Estimated: `5256`
// Minimum execution time: 40_194_000 picoseconds.
Weight::from_parts(41_313_000, 5256)
.saturating_add(RocksDbWeight::get().reads(2_u64))
.saturating_add(RocksDbWeight::get().writes(7_u64))
.saturating_add(RocksDbWeight::get().writes(5_u64))
}
}
+231 -667
View File
File diff suppressed because it is too large Load Diff
+3 -3
View File
@@ -249,8 +249,8 @@ pub mod runtime {
/// The block type, which should be fed into [`frame_system::Config`].
///
/// Should be parameterized with `T: frame_system::Config` and a tuple of
/// `TransactionExtension`. When in doubt, use [`SystemTransactionExtensionsOf`].
/// Should be parameterized with `T: frame_system::Config` and a tuple of `SignedExtension`.
/// When in doubt, use [`SystemSignedExtensionsOf`].
// Note that this cannot be dependent on `T` for block-number because it would lead to a
// circular dependency (self-referential generics).
pub type BlockOf<T, Extra = ()> = generic::Block<HeaderInner, ExtrinsicInner<T, Extra>>;
@@ -264,7 +264,7 @@ pub mod runtime {
/// Default set of signed extensions exposed from the `frame_system`.
///
/// crucially, this does NOT contain any tx-payment extension.
pub type SystemTransactionExtensionsOf<T> = (
pub type SystemSignedExtensionsOf<T> = (
frame_system::CheckNonZeroSender<T>,
frame_system::CheckSpecVersion<T>,
frame_system::CheckTxVersion<T>,
+204 -218
View File
@@ -17,28 +17,26 @@
//! Autogenerated weights for `pallet_staking`
//!
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0
//! DATE: 2024-03-01, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
//! DATE: 2024-01-08, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! WORST CASE MAP SIZE: `1000000`
//! HOSTNAME: `runner-bn-ce5rx-project-674-concurrent-0`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz`
//! HOSTNAME: `runner-q7z7ruxr-project-674-concurrent-0`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz`
//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("dev")`, DB CACHE: `1024`
// Executed Command:
// ./target/production/substrate-node
// target/production/substrate-node
// benchmark
// pallet
// --chain=dev
// --steps=50
// --repeat=20
// --pallet=pallet_staking
// --no-storage-info
// --no-median-slopes
// --no-min-squares
// --extrinsic=*
// --wasm-execution=compiled
// --heap-pages=4096
// --output=./substrate/frame/staking/src/weights.rs
// --json-file=/builds/parity/mirrors/polkadot-sdk/.git/.artifacts/bench.json
// --pallet=pallet_staking
// --chain=dev
// --header=./substrate/HEADER-APACHE2
// --output=./substrate/frame/staking/src/weights.rs
// --template=./substrate/.maintain/frame-weight-template.hbs
#![cfg_attr(rustfmt, rustfmt_skip)]
@@ -101,8 +99,8 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
// Proof Size summary in bytes:
// Measured: `927`
// Estimated: `4764`
// Minimum execution time: 41_318_000 picoseconds.
Weight::from_parts(43_268_000, 4764)
// Minimum execution time: 42_042_000 picoseconds.
Weight::from_parts(43_292_000, 4764)
.saturating_add(T::DbWeight::get().reads(3_u64))
.saturating_add(T::DbWeight::get().writes(4_u64))
}
@@ -122,8 +120,8 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
// Proof Size summary in bytes:
// Measured: `1990`
// Estimated: `8877`
// Minimum execution time: 85_666_000 picoseconds.
Weight::from_parts(88_749_000, 8877)
// Minimum execution time: 85_050_000 picoseconds.
Weight::from_parts(87_567_000, 8877)
.saturating_add(T::DbWeight::get().reads(9_u64))
.saturating_add(T::DbWeight::get().writes(7_u64))
}
@@ -149,8 +147,8 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
// Proof Size summary in bytes:
// Measured: `2195`
// Estimated: `8877`
// Minimum execution time: 90_282_000 picoseconds.
Weight::from_parts(92_332_000, 8877)
// Minimum execution time: 89_076_000 picoseconds.
Weight::from_parts(92_715_000, 8877)
.saturating_add(T::DbWeight::get().reads(12_u64))
.saturating_add(T::DbWeight::get().writes(7_u64))
}
@@ -164,18 +162,16 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
/// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1299), added: 3774, mode: `MaxEncodedLen`)
/// Storage: `Balances::Freezes` (r:1 w:0)
/// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(67), added: 2542, mode: `MaxEncodedLen`)
/// Storage: `NominationPools::ReversePoolIdLookup` (r:1 w:0)
/// Proof: `NominationPools::ReversePoolIdLookup` (`max_values`: None, `max_size`: Some(44), added: 2519, mode: `MaxEncodedLen`)
/// The range of component `s` is `[0, 100]`.
fn withdraw_unbonded_update(s: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `1297`
// Measured: `1115`
// Estimated: `4764`
// Minimum execution time: 44_626_000 picoseconds.
Weight::from_parts(47_254_657, 4764)
// Standard Error: 1_179
.saturating_add(Weight::from_parts(57_657, 0).saturating_mul(s.into()))
.saturating_add(T::DbWeight::get().reads(6_u64))
// Minimum execution time: 42_067_000 picoseconds.
Weight::from_parts(43_239_807, 4764)
// Standard Error: 831
.saturating_add(Weight::from_parts(46_257, 0).saturating_mul(s.into()))
.saturating_add(T::DbWeight::get().reads(5_u64))
.saturating_add(T::DbWeight::get().writes(2_u64))
}
/// Storage: `Staking::Ledger` (r:1 w:1)
@@ -211,10 +207,10 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
// Proof Size summary in bytes:
// Measured: `2196 + s * (4 ±0)`
// Estimated: `6248 + s * (4 ±0)`
// Minimum execution time: 86_769_000 picoseconds.
Weight::from_parts(95_212_867, 6248)
// Standard Error: 3_706
.saturating_add(Weight::from_parts(1_320_752, 0).saturating_mul(s.into()))
// Minimum execution time: 86_490_000 picoseconds.
Weight::from_parts(95_358_751, 6248)
// Standard Error: 3_952
.saturating_add(Weight::from_parts(1_294_907, 0).saturating_mul(s.into()))
.saturating_add(T::DbWeight::get().reads(13_u64))
.saturating_add(T::DbWeight::get().writes(11_u64))
.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(s.into())))
@@ -246,8 +242,8 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
// Proof Size summary in bytes:
// Measured: `1372`
// Estimated: `4556`
// Minimum execution time: 50_410_000 picoseconds.
Weight::from_parts(52_576_000, 4556)
// Minimum execution time: 50_326_000 picoseconds.
Weight::from_parts(52_253_000, 4556)
.saturating_add(T::DbWeight::get().reads(11_u64))
.saturating_add(T::DbWeight::get().writes(5_u64))
}
@@ -260,10 +256,10 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
// Proof Size summary in bytes:
// Measured: `1280 + k * (569 ±0)`
// Estimated: `4556 + k * (3033 ±0)`
// Minimum execution time: 29_017_000 picoseconds.
Weight::from_parts(33_019_206, 4556)
// Standard Error: 6_368
.saturating_add(Weight::from_parts(6_158_681, 0).saturating_mul(k.into()))
// Minimum execution time: 29_305_000 picoseconds.
Weight::from_parts(32_199_604, 4556)
// Standard Error: 7_150
.saturating_add(Weight::from_parts(6_437_124, 0).saturating_mul(k.into()))
.saturating_add(T::DbWeight::get().reads(1_u64))
.saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(k.into())))
.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(k.into())))
@@ -296,10 +292,10 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
// Proof Size summary in bytes:
// Measured: `1866 + n * (102 ±0)`
// Estimated: `6248 + n * (2520 ±0)`
// Minimum execution time: 63_452_000 picoseconds.
Weight::from_parts(60_924_066, 6248)
// Standard Error: 14_416
.saturating_add(Weight::from_parts(3_921_589, 0).saturating_mul(n.into()))
// Minimum execution time: 63_267_000 picoseconds.
Weight::from_parts(61_741_404, 6248)
// Standard Error: 12_955
.saturating_add(Weight::from_parts(3_811_743, 0).saturating_mul(n.into()))
.saturating_add(T::DbWeight::get().reads(12_u64))
.saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(n.into())))
.saturating_add(T::DbWeight::get().writes(6_u64))
@@ -323,8 +319,8 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
// Proof Size summary in bytes:
// Measured: `1650`
// Estimated: `6248`
// Minimum execution time: 54_253_000 picoseconds.
Weight::from_parts(55_286_000, 6248)
// Minimum execution time: 52_862_000 picoseconds.
Weight::from_parts(54_108_000, 6248)
.saturating_add(T::DbWeight::get().reads(8_u64))
.saturating_add(T::DbWeight::get().writes(6_u64))
}
@@ -338,8 +334,8 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
// Proof Size summary in bytes:
// Measured: `902`
// Estimated: `4556`
// Minimum execution time: 16_812_000 picoseconds.
Weight::from_parts(17_380_000, 4556)
// Minimum execution time: 16_350_000 picoseconds.
Weight::from_parts(16_802_000, 4556)
.saturating_add(T::DbWeight::get().reads(2_u64))
.saturating_add(T::DbWeight::get().writes(1_u64))
}
@@ -353,8 +349,8 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
// Proof Size summary in bytes:
// Measured: `969`
// Estimated: `4556`
// Minimum execution time: 20_590_000 picoseconds.
Weight::from_parts(21_096_000, 4556)
// Minimum execution time: 19_981_000 picoseconds.
Weight::from_parts(20_539_000, 4556)
.saturating_add(T::DbWeight::get().reads(3_u64))
.saturating_add(T::DbWeight::get().writes(1_u64))
}
@@ -366,8 +362,8 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
// Proof Size summary in bytes:
// Measured: `902`
// Estimated: `4556`
// Minimum execution time: 19_923_000 picoseconds.
Weight::from_parts(20_880_000, 4556)
// Minimum execution time: 19_304_000 picoseconds.
Weight::from_parts(20_000_000, 4556)
.saturating_add(T::DbWeight::get().reads(2_u64))
.saturating_add(T::DbWeight::get().writes(3_u64))
}
@@ -377,8 +373,8 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `0`
// Minimum execution time: 2_599_000 picoseconds.
Weight::from_parts(2_751_000, 0)
// Minimum execution time: 2_568_000 picoseconds.
Weight::from_parts(2_708_000, 0)
.saturating_add(T::DbWeight::get().writes(1_u64))
}
/// Storage: `Staking::ForceEra` (r:0 w:1)
@@ -387,8 +383,8 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `0`
// Minimum execution time: 6_941_000 picoseconds.
Weight::from_parts(7_288_000, 0)
// Minimum execution time: 7_950_000 picoseconds.
Weight::from_parts(8_348_000, 0)
.saturating_add(T::DbWeight::get().writes(1_u64))
}
/// Storage: `Staking::ForceEra` (r:0 w:1)
@@ -397,8 +393,8 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `0`
// Minimum execution time: 6_757_000 picoseconds.
Weight::from_parts(7_200_000, 0)
// Minimum execution time: 7_967_000 picoseconds.
Weight::from_parts(8_222_000, 0)
.saturating_add(T::DbWeight::get().writes(1_u64))
}
/// Storage: `Staking::ForceEra` (r:0 w:1)
@@ -407,8 +403,8 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `0`
// Minimum execution time: 7_028_000 picoseconds.
Weight::from_parts(7_366_000, 0)
// Minimum execution time: 8_006_000 picoseconds.
Weight::from_parts(8_440_000, 0)
.saturating_add(T::DbWeight::get().writes(1_u64))
}
/// Storage: `Staking::Invulnerables` (r:0 w:1)
@@ -418,10 +414,10 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `0`
// Minimum execution time: 2_741_000 picoseconds.
Weight::from_parts(3_212_598, 0)
// Standard Error: 68
.saturating_add(Weight::from_parts(11_695, 0).saturating_mul(v.into()))
// Minimum execution time: 2_524_000 picoseconds.
Weight::from_parts(3_123_608, 0)
// Standard Error: 59
.saturating_add(Weight::from_parts(11_596, 0).saturating_mul(v.into()))
.saturating_add(T::DbWeight::get().writes(1_u64))
}
/// Storage: `Staking::Ledger` (r:5900 w:11800)
@@ -435,10 +431,10 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
// Proof Size summary in bytes:
// Measured: `1356 + i * (151 ±0)`
// Estimated: `990 + i * (3566 ±0)`
// Minimum execution time: 2_132_000 picoseconds.
Weight::from_parts(2_289_000, 990)
// Standard Error: 34_227
.saturating_add(Weight::from_parts(17_006_583, 0).saturating_mul(i.into()))
// Minimum execution time: 2_092_000 picoseconds.
Weight::from_parts(2_258_000, 990)
// Standard Error: 32_695
.saturating_add(Weight::from_parts(16_669_219, 0).saturating_mul(i.into()))
.saturating_add(T::DbWeight::get().reads((2_u64).saturating_mul(i.into())))
.saturating_add(T::DbWeight::get().writes((3_u64).saturating_mul(i.into())))
.saturating_add(Weight::from_parts(0, 3566).saturating_mul(i.into()))
@@ -476,10 +472,10 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
// Proof Size summary in bytes:
// Measured: `2196 + s * (4 ±0)`
// Estimated: `6248 + s * (4 ±0)`
// Minimum execution time: 85_308_000 picoseconds.
Weight::from_parts(93_689_468, 6248)
// Standard Error: 5_425
.saturating_add(Weight::from_parts(1_307_604, 0).saturating_mul(s.into()))
// Minimum execution time: 84_275_000 picoseconds.
Weight::from_parts(92_512_416, 6248)
// Standard Error: 3_633
.saturating_add(Weight::from_parts(1_315_923, 0).saturating_mul(s.into()))
.saturating_add(T::DbWeight::get().reads(13_u64))
.saturating_add(T::DbWeight::get().writes(12_u64))
.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(s.into())))
@@ -492,10 +488,10 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
// Proof Size summary in bytes:
// Measured: `66672`
// Estimated: `70137`
// Minimum execution time: 103_242_000 picoseconds.
Weight::from_parts(1_162_296_080, 70137)
// Standard Error: 76_741
.saturating_add(Weight::from_parts(6_487_522, 0).saturating_mul(s.into()))
// Minimum execution time: 101_707_000 picoseconds.
Weight::from_parts(912_819_462, 70137)
// Standard Error: 57_547
.saturating_add(Weight::from_parts(4_856_799, 0).saturating_mul(s.into()))
.saturating_add(T::DbWeight::get().reads(1_u64))
.saturating_add(T::DbWeight::get().writes(1_u64))
}
@@ -532,10 +528,10 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
// Proof Size summary in bytes:
// Measured: `33297 + n * (377 ±0)`
// Estimated: `30944 + n * (3774 ±0)`
// Minimum execution time: 140_740_000 picoseconds.
Weight::from_parts(182_886_963, 30944)
// Standard Error: 39_852
.saturating_add(Weight::from_parts(43_140_752, 0).saturating_mul(n.into()))
// Minimum execution time: 138_657_000 picoseconds.
Weight::from_parts(167_173_445, 30944)
// Standard Error: 25_130
.saturating_add(Weight::from_parts(44_566_012, 0).saturating_mul(n.into()))
.saturating_add(T::DbWeight::get().reads(14_u64))
.saturating_add(T::DbWeight::get().reads((6_u64).saturating_mul(n.into())))
.saturating_add(T::DbWeight::get().writes(4_u64))
@@ -559,10 +555,10 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
// Proof Size summary in bytes:
// Measured: `1991 + l * (7 ±0)`
// Estimated: `8877`
// Minimum execution time: 80_372_000 picoseconds.
Weight::from_parts(83_335_027, 8877)
// Standard Error: 4_780
.saturating_add(Weight::from_parts(72_180, 0).saturating_mul(l.into()))
// Minimum execution time: 80_061_000 picoseconds.
Weight::from_parts(82_836_434, 8877)
// Standard Error: 4_348
.saturating_add(Weight::from_parts(75_744, 0).saturating_mul(l.into()))
.saturating_add(T::DbWeight::get().reads(9_u64))
.saturating_add(T::DbWeight::get().writes(7_u64))
}
@@ -597,10 +593,10 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
// Proof Size summary in bytes:
// Measured: `2196 + s * (4 ±0)`
// Estimated: `6248 + s * (4 ±0)`
// Minimum execution time: 93_920_000 picoseconds.
Weight::from_parts(98_022_911, 6248)
// Standard Error: 4_096
.saturating_add(Weight::from_parts(1_287_745, 0).saturating_mul(s.into()))
// Minimum execution time: 92_560_000 picoseconds.
Weight::from_parts(97_684_741, 6248)
// Standard Error: 3_361
.saturating_add(Weight::from_parts(1_292_732, 0).saturating_mul(s.into()))
.saturating_add(T::DbWeight::get().reads(12_u64))
.saturating_add(T::DbWeight::get().writes(11_u64))
.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(s.into())))
@@ -646,12 +642,12 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
// Proof Size summary in bytes:
// Measured: `0 + n * (720 ±0) + v * (3598 ±0)`
// Estimated: `512390 + n * (3566 ±0) + v * (3566 ±0)`
// Minimum execution time: 556_012_000 picoseconds.
Weight::from_parts(560_339_000, 512390)
// Standard Error: 2_115_076
.saturating_add(Weight::from_parts(69_456_497, 0).saturating_mul(v.into()))
// Standard Error: 210_755
.saturating_add(Weight::from_parts(17_974_873, 0).saturating_mul(n.into()))
// Minimum execution time: 564_963_000 picoseconds.
Weight::from_parts(569_206_000, 512390)
// Standard Error: 2_033_235
.saturating_add(Weight::from_parts(68_025_841, 0).saturating_mul(v.into()))
// Standard Error: 202_600
.saturating_add(Weight::from_parts(17_916_770, 0).saturating_mul(n.into()))
.saturating_add(T::DbWeight::get().reads(206_u64))
.saturating_add(T::DbWeight::get().reads((5_u64).saturating_mul(v.into())))
.saturating_add(T::DbWeight::get().reads((4_u64).saturating_mul(n.into())))
@@ -682,12 +678,12 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
// Proof Size summary in bytes:
// Measured: `3175 + n * (911 ±0) + v * (395 ±0)`
// Estimated: `512390 + n * (3566 ±0) + v * (3566 ±0)`
// Minimum execution time: 32_792_819_000 picoseconds.
Weight::from_parts(32_986_606_000, 512390)
// Standard Error: 360_905
.saturating_add(Weight::from_parts(5_260_151, 0).saturating_mul(v.into()))
// Standard Error: 360_905
.saturating_add(Weight::from_parts(3_599_219, 0).saturating_mul(n.into()))
// Minimum execution time: 32_196_540_000 picoseconds.
Weight::from_parts(32_341_871_000, 512390)
// Standard Error: 354_657
.saturating_add(Weight::from_parts(5_143_440, 0).saturating_mul(v.into()))
// Standard Error: 354_657
.saturating_add(Weight::from_parts(3_328_189, 0).saturating_mul(n.into()))
.saturating_add(T::DbWeight::get().reads(201_u64))
.saturating_add(T::DbWeight::get().reads((5_u64).saturating_mul(v.into())))
.saturating_add(T::DbWeight::get().reads((4_u64).saturating_mul(n.into())))
@@ -704,10 +700,10 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
// Proof Size summary in bytes:
// Measured: `979 + v * (50 ±0)`
// Estimated: `3510 + v * (2520 ±0)`
// Minimum execution time: 2_434_755_000 picoseconds.
Weight::from_parts(38_574_764, 3510)
// Standard Error: 14_467
.saturating_add(Weight::from_parts(4_821_702, 0).saturating_mul(v.into()))
// Minimum execution time: 2_381_903_000 picoseconds.
Weight::from_parts(32_693_059, 3510)
// Standard Error: 10_000
.saturating_add(Weight::from_parts(4_736_173, 0).saturating_mul(v.into()))
.saturating_add(T::DbWeight::get().reads(2_u64))
.saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(v.into())))
.saturating_add(Weight::from_parts(0, 2520).saturating_mul(v.into()))
@@ -718,8 +714,6 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
/// Proof: `Staking::MinValidatorBond` (`max_values`: Some(1), `max_size`: Some(16), added: 511, mode: `MaxEncodedLen`)
/// Storage: `Staking::MaxValidatorsCount` (r:0 w:1)
/// Proof: `Staking::MaxValidatorsCount` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
/// Storage: `Staking::MaxStakedRewards` (r:0 w:1)
/// Proof: `Staking::MaxStakedRewards` (`max_values`: Some(1), `max_size`: Some(1), added: 496, mode: `MaxEncodedLen`)
/// Storage: `Staking::ChillThreshold` (r:0 w:1)
/// Proof: `Staking::ChillThreshold` (`max_values`: Some(1), `max_size`: Some(1), added: 496, mode: `MaxEncodedLen`)
/// Storage: `Staking::MaxNominatorsCount` (r:0 w:1)
@@ -730,9 +724,9 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `0`
// Minimum execution time: 5_765_000 picoseconds.
Weight::from_parts(6_140_000, 0)
.saturating_add(T::DbWeight::get().writes(7_u64))
// Minimum execution time: 5_434_000 picoseconds.
Weight::from_parts(5_742_000, 0)
.saturating_add(T::DbWeight::get().writes(6_u64))
}
/// Storage: `Staking::MinCommission` (r:0 w:1)
/// Proof: `Staking::MinCommission` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
@@ -740,8 +734,6 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
/// Proof: `Staking::MinValidatorBond` (`max_values`: Some(1), `max_size`: Some(16), added: 511, mode: `MaxEncodedLen`)
/// Storage: `Staking::MaxValidatorsCount` (r:0 w:1)
/// Proof: `Staking::MaxValidatorsCount` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
/// Storage: `Staking::MaxStakedRewards` (r:0 w:1)
/// Proof: `Staking::MaxStakedRewards` (`max_values`: Some(1), `max_size`: Some(1), added: 496, mode: `MaxEncodedLen`)
/// Storage: `Staking::ChillThreshold` (r:0 w:1)
/// Proof: `Staking::ChillThreshold` (`max_values`: Some(1), `max_size`: Some(1), added: 496, mode: `MaxEncodedLen`)
/// Storage: `Staking::MaxNominatorsCount` (r:0 w:1)
@@ -752,9 +744,9 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `0`
// Minimum execution time: 5_025_000 picoseconds.
Weight::from_parts(5_354_000, 0)
.saturating_add(T::DbWeight::get().writes(7_u64))
// Minimum execution time: 4_588_000 picoseconds.
Weight::from_parts(4_854_000, 0)
.saturating_add(T::DbWeight::get().writes(6_u64))
}
/// Storage: `Staking::Bonded` (r:1 w:0)
/// Proof: `Staking::Bonded` (`max_values`: None, `max_size`: Some(72), added: 2547, mode: `MaxEncodedLen`)
@@ -782,8 +774,8 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
// Proof Size summary in bytes:
// Measured: `1939`
// Estimated: `6248`
// Minimum execution time: 69_656_000 picoseconds.
Weight::from_parts(71_574_000, 6248)
// Minimum execution time: 68_780_000 picoseconds.
Weight::from_parts(71_479_000, 6248)
.saturating_add(T::DbWeight::get().reads(12_u64))
.saturating_add(T::DbWeight::get().writes(6_u64))
}
@@ -795,8 +787,8 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
// Proof Size summary in bytes:
// Measured: `691`
// Estimated: `3510`
// Minimum execution time: 12_523_000 picoseconds.
Weight::from_parts(13_315_000, 3510)
// Minimum execution time: 12_268_000 picoseconds.
Weight::from_parts(12_661_000, 3510)
.saturating_add(T::DbWeight::get().reads(2_u64))
.saturating_add(T::DbWeight::get().writes(1_u64))
}
@@ -806,8 +798,8 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `0`
// Minimum execution time: 3_125_000 picoseconds.
Weight::from_parts(3_300_000, 0)
// Minimum execution time: 3_071_000 picoseconds.
Weight::from_parts(3_334_000, 0)
.saturating_add(T::DbWeight::get().writes(1_u64))
}
}
@@ -828,8 +820,8 @@ impl WeightInfo for () {
// Proof Size summary in bytes:
// Measured: `927`
// Estimated: `4764`
// Minimum execution time: 41_318_000 picoseconds.
Weight::from_parts(43_268_000, 4764)
// Minimum execution time: 42_042_000 picoseconds.
Weight::from_parts(43_292_000, 4764)
.saturating_add(RocksDbWeight::get().reads(3_u64))
.saturating_add(RocksDbWeight::get().writes(4_u64))
}
@@ -849,8 +841,8 @@ impl WeightInfo for () {
// Proof Size summary in bytes:
// Measured: `1990`
// Estimated: `8877`
// Minimum execution time: 85_666_000 picoseconds.
Weight::from_parts(88_749_000, 8877)
// Minimum execution time: 85_050_000 picoseconds.
Weight::from_parts(87_567_000, 8877)
.saturating_add(RocksDbWeight::get().reads(9_u64))
.saturating_add(RocksDbWeight::get().writes(7_u64))
}
@@ -876,8 +868,8 @@ impl WeightInfo for () {
// Proof Size summary in bytes:
// Measured: `2195`
// Estimated: `8877`
// Minimum execution time: 90_282_000 picoseconds.
Weight::from_parts(92_332_000, 8877)
// Minimum execution time: 89_076_000 picoseconds.
Weight::from_parts(92_715_000, 8877)
.saturating_add(RocksDbWeight::get().reads(12_u64))
.saturating_add(RocksDbWeight::get().writes(7_u64))
}
@@ -891,18 +883,16 @@ impl WeightInfo for () {
/// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1299), added: 3774, mode: `MaxEncodedLen`)
/// Storage: `Balances::Freezes` (r:1 w:0)
/// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(67), added: 2542, mode: `MaxEncodedLen`)
/// Storage: `NominationPools::ReversePoolIdLookup` (r:1 w:0)
/// Proof: `NominationPools::ReversePoolIdLookup` (`max_values`: None, `max_size`: Some(44), added: 2519, mode: `MaxEncodedLen`)
/// The range of component `s` is `[0, 100]`.
fn withdraw_unbonded_update(s: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `1297`
// Measured: `1115`
// Estimated: `4764`
// Minimum execution time: 44_626_000 picoseconds.
Weight::from_parts(47_254_657, 4764)
// Standard Error: 1_179
.saturating_add(Weight::from_parts(57_657, 0).saturating_mul(s.into()))
.saturating_add(RocksDbWeight::get().reads(6_u64))
// Minimum execution time: 42_067_000 picoseconds.
Weight::from_parts(43_239_807, 4764)
// Standard Error: 831
.saturating_add(Weight::from_parts(46_257, 0).saturating_mul(s.into()))
.saturating_add(RocksDbWeight::get().reads(5_u64))
.saturating_add(RocksDbWeight::get().writes(2_u64))
}
/// Storage: `Staking::Ledger` (r:1 w:1)
@@ -938,10 +928,10 @@ impl WeightInfo for () {
// Proof Size summary in bytes:
// Measured: `2196 + s * (4 ±0)`
// Estimated: `6248 + s * (4 ±0)`
// Minimum execution time: 86_769_000 picoseconds.
Weight::from_parts(95_212_867, 6248)
// Standard Error: 3_706
.saturating_add(Weight::from_parts(1_320_752, 0).saturating_mul(s.into()))
// Minimum execution time: 86_490_000 picoseconds.
Weight::from_parts(95_358_751, 6248)
// Standard Error: 3_952
.saturating_add(Weight::from_parts(1_294_907, 0).saturating_mul(s.into()))
.saturating_add(RocksDbWeight::get().reads(13_u64))
.saturating_add(RocksDbWeight::get().writes(11_u64))
.saturating_add(RocksDbWeight::get().writes((1_u64).saturating_mul(s.into())))
@@ -973,8 +963,8 @@ impl WeightInfo for () {
// Proof Size summary in bytes:
// Measured: `1372`
// Estimated: `4556`
// Minimum execution time: 50_410_000 picoseconds.
Weight::from_parts(52_576_000, 4556)
// Minimum execution time: 50_326_000 picoseconds.
Weight::from_parts(52_253_000, 4556)
.saturating_add(RocksDbWeight::get().reads(11_u64))
.saturating_add(RocksDbWeight::get().writes(5_u64))
}
@@ -987,10 +977,10 @@ impl WeightInfo for () {
// Proof Size summary in bytes:
// Measured: `1280 + k * (569 ±0)`
// Estimated: `4556 + k * (3033 ±0)`
// Minimum execution time: 29_017_000 picoseconds.
Weight::from_parts(33_019_206, 4556)
// Standard Error: 6_368
.saturating_add(Weight::from_parts(6_158_681, 0).saturating_mul(k.into()))
// Minimum execution time: 29_305_000 picoseconds.
Weight::from_parts(32_199_604, 4556)
// Standard Error: 7_150
.saturating_add(Weight::from_parts(6_437_124, 0).saturating_mul(k.into()))
.saturating_add(RocksDbWeight::get().reads(1_u64))
.saturating_add(RocksDbWeight::get().reads((1_u64).saturating_mul(k.into())))
.saturating_add(RocksDbWeight::get().writes((1_u64).saturating_mul(k.into())))
@@ -1023,10 +1013,10 @@ impl WeightInfo for () {
// Proof Size summary in bytes:
// Measured: `1866 + n * (102 ±0)`
// Estimated: `6248 + n * (2520 ±0)`
// Minimum execution time: 63_452_000 picoseconds.
Weight::from_parts(60_924_066, 6248)
// Standard Error: 14_416
.saturating_add(Weight::from_parts(3_921_589, 0).saturating_mul(n.into()))
// Minimum execution time: 63_267_000 picoseconds.
Weight::from_parts(61_741_404, 6248)
// Standard Error: 12_955
.saturating_add(Weight::from_parts(3_811_743, 0).saturating_mul(n.into()))
.saturating_add(RocksDbWeight::get().reads(12_u64))
.saturating_add(RocksDbWeight::get().reads((1_u64).saturating_mul(n.into())))
.saturating_add(RocksDbWeight::get().writes(6_u64))
@@ -1050,8 +1040,8 @@ impl WeightInfo for () {
// Proof Size summary in bytes:
// Measured: `1650`
// Estimated: `6248`
// Minimum execution time: 54_253_000 picoseconds.
Weight::from_parts(55_286_000, 6248)
// Minimum execution time: 52_862_000 picoseconds.
Weight::from_parts(54_108_000, 6248)
.saturating_add(RocksDbWeight::get().reads(8_u64))
.saturating_add(RocksDbWeight::get().writes(6_u64))
}
@@ -1065,8 +1055,8 @@ impl WeightInfo for () {
// Proof Size summary in bytes:
// Measured: `902`
// Estimated: `4556`
// Minimum execution time: 16_812_000 picoseconds.
Weight::from_parts(17_380_000, 4556)
// Minimum execution time: 16_350_000 picoseconds.
Weight::from_parts(16_802_000, 4556)
.saturating_add(RocksDbWeight::get().reads(2_u64))
.saturating_add(RocksDbWeight::get().writes(1_u64))
}
@@ -1080,8 +1070,8 @@ impl WeightInfo for () {
// Proof Size summary in bytes:
// Measured: `969`
// Estimated: `4556`
// Minimum execution time: 20_590_000 picoseconds.
Weight::from_parts(21_096_000, 4556)
// Minimum execution time: 19_981_000 picoseconds.
Weight::from_parts(20_539_000, 4556)
.saturating_add(RocksDbWeight::get().reads(3_u64))
.saturating_add(RocksDbWeight::get().writes(1_u64))
}
@@ -1093,8 +1083,8 @@ impl WeightInfo for () {
// Proof Size summary in bytes:
// Measured: `902`
// Estimated: `4556`
// Minimum execution time: 19_923_000 picoseconds.
Weight::from_parts(20_880_000, 4556)
// Minimum execution time: 19_304_000 picoseconds.
Weight::from_parts(20_000_000, 4556)
.saturating_add(RocksDbWeight::get().reads(2_u64))
.saturating_add(RocksDbWeight::get().writes(3_u64))
}
@@ -1104,8 +1094,8 @@ impl WeightInfo for () {
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `0`
// Minimum execution time: 2_599_000 picoseconds.
Weight::from_parts(2_751_000, 0)
// Minimum execution time: 2_568_000 picoseconds.
Weight::from_parts(2_708_000, 0)
.saturating_add(RocksDbWeight::get().writes(1_u64))
}
/// Storage: `Staking::ForceEra` (r:0 w:1)
@@ -1114,8 +1104,8 @@ impl WeightInfo for () {
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `0`
// Minimum execution time: 6_941_000 picoseconds.
Weight::from_parts(7_288_000, 0)
// Minimum execution time: 7_950_000 picoseconds.
Weight::from_parts(8_348_000, 0)
.saturating_add(RocksDbWeight::get().writes(1_u64))
}
/// Storage: `Staking::ForceEra` (r:0 w:1)
@@ -1124,8 +1114,8 @@ impl WeightInfo for () {
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `0`
// Minimum execution time: 6_757_000 picoseconds.
Weight::from_parts(7_200_000, 0)
// Minimum execution time: 7_967_000 picoseconds.
Weight::from_parts(8_222_000, 0)
.saturating_add(RocksDbWeight::get().writes(1_u64))
}
/// Storage: `Staking::ForceEra` (r:0 w:1)
@@ -1134,8 +1124,8 @@ impl WeightInfo for () {
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `0`
// Minimum execution time: 7_028_000 picoseconds.
Weight::from_parts(7_366_000, 0)
// Minimum execution time: 8_006_000 picoseconds.
Weight::from_parts(8_440_000, 0)
.saturating_add(RocksDbWeight::get().writes(1_u64))
}
/// Storage: `Staking::Invulnerables` (r:0 w:1)
@@ -1145,10 +1135,10 @@ impl WeightInfo for () {
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `0`
// Minimum execution time: 2_741_000 picoseconds.
Weight::from_parts(3_212_598, 0)
// Standard Error: 68
.saturating_add(Weight::from_parts(11_695, 0).saturating_mul(v.into()))
// Minimum execution time: 2_524_000 picoseconds.
Weight::from_parts(3_123_608, 0)
// Standard Error: 59
.saturating_add(Weight::from_parts(11_596, 0).saturating_mul(v.into()))
.saturating_add(RocksDbWeight::get().writes(1_u64))
}
/// Storage: `Staking::Ledger` (r:5900 w:11800)
@@ -1162,10 +1152,10 @@ impl WeightInfo for () {
// Proof Size summary in bytes:
// Measured: `1356 + i * (151 ±0)`
// Estimated: `990 + i * (3566 ±0)`
// Minimum execution time: 2_132_000 picoseconds.
Weight::from_parts(2_289_000, 990)
// Standard Error: 34_227
.saturating_add(Weight::from_parts(17_006_583, 0).saturating_mul(i.into()))
// Minimum execution time: 2_092_000 picoseconds.
Weight::from_parts(2_258_000, 990)
// Standard Error: 32_695
.saturating_add(Weight::from_parts(16_669_219, 0).saturating_mul(i.into()))
.saturating_add(RocksDbWeight::get().reads((2_u64).saturating_mul(i.into())))
.saturating_add(RocksDbWeight::get().writes((3_u64).saturating_mul(i.into())))
.saturating_add(Weight::from_parts(0, 3566).saturating_mul(i.into()))
@@ -1203,10 +1193,10 @@ impl WeightInfo for () {
// Proof Size summary in bytes:
// Measured: `2196 + s * (4 ±0)`
// Estimated: `6248 + s * (4 ±0)`
// Minimum execution time: 85_308_000 picoseconds.
Weight::from_parts(93_689_468, 6248)
// Standard Error: 5_425
.saturating_add(Weight::from_parts(1_307_604, 0).saturating_mul(s.into()))
// Minimum execution time: 84_275_000 picoseconds.
Weight::from_parts(92_512_416, 6248)
// Standard Error: 3_633
.saturating_add(Weight::from_parts(1_315_923, 0).saturating_mul(s.into()))
.saturating_add(RocksDbWeight::get().reads(13_u64))
.saturating_add(RocksDbWeight::get().writes(12_u64))
.saturating_add(RocksDbWeight::get().writes((1_u64).saturating_mul(s.into())))
@@ -1219,10 +1209,10 @@ impl WeightInfo for () {
// Proof Size summary in bytes:
// Measured: `66672`
// Estimated: `70137`
// Minimum execution time: 103_242_000 picoseconds.
Weight::from_parts(1_162_296_080, 70137)
// Standard Error: 76_741
.saturating_add(Weight::from_parts(6_487_522, 0).saturating_mul(s.into()))
// Minimum execution time: 101_707_000 picoseconds.
Weight::from_parts(912_819_462, 70137)
// Standard Error: 57_547
.saturating_add(Weight::from_parts(4_856_799, 0).saturating_mul(s.into()))
.saturating_add(RocksDbWeight::get().reads(1_u64))
.saturating_add(RocksDbWeight::get().writes(1_u64))
}
@@ -1259,10 +1249,10 @@ impl WeightInfo for () {
// Proof Size summary in bytes:
// Measured: `33297 + n * (377 ±0)`
// Estimated: `30944 + n * (3774 ±0)`
// Minimum execution time: 140_740_000 picoseconds.
Weight::from_parts(182_886_963, 30944)
// Standard Error: 39_852
.saturating_add(Weight::from_parts(43_140_752, 0).saturating_mul(n.into()))
// Minimum execution time: 138_657_000 picoseconds.
Weight::from_parts(167_173_445, 30944)
// Standard Error: 25_130
.saturating_add(Weight::from_parts(44_566_012, 0).saturating_mul(n.into()))
.saturating_add(RocksDbWeight::get().reads(14_u64))
.saturating_add(RocksDbWeight::get().reads((6_u64).saturating_mul(n.into())))
.saturating_add(RocksDbWeight::get().writes(4_u64))
@@ -1286,10 +1276,10 @@ impl WeightInfo for () {
// Proof Size summary in bytes:
// Measured: `1991 + l * (7 ±0)`
// Estimated: `8877`
// Minimum execution time: 80_372_000 picoseconds.
Weight::from_parts(83_335_027, 8877)
// Standard Error: 4_780
.saturating_add(Weight::from_parts(72_180, 0).saturating_mul(l.into()))
// Minimum execution time: 80_061_000 picoseconds.
Weight::from_parts(82_836_434, 8877)
// Standard Error: 4_348
.saturating_add(Weight::from_parts(75_744, 0).saturating_mul(l.into()))
.saturating_add(RocksDbWeight::get().reads(9_u64))
.saturating_add(RocksDbWeight::get().writes(7_u64))
}
@@ -1324,10 +1314,10 @@ impl WeightInfo for () {
// Proof Size summary in bytes:
// Measured: `2196 + s * (4 ±0)`
// Estimated: `6248 + s * (4 ±0)`
// Minimum execution time: 93_920_000 picoseconds.
Weight::from_parts(98_022_911, 6248)
// Standard Error: 4_096
.saturating_add(Weight::from_parts(1_287_745, 0).saturating_mul(s.into()))
// Minimum execution time: 92_560_000 picoseconds.
Weight::from_parts(97_684_741, 6248)
// Standard Error: 3_361
.saturating_add(Weight::from_parts(1_292_732, 0).saturating_mul(s.into()))
.saturating_add(RocksDbWeight::get().reads(12_u64))
.saturating_add(RocksDbWeight::get().writes(11_u64))
.saturating_add(RocksDbWeight::get().writes((1_u64).saturating_mul(s.into())))
@@ -1373,12 +1363,12 @@ impl WeightInfo for () {
// Proof Size summary in bytes:
// Measured: `0 + n * (720 ±0) + v * (3598 ±0)`
// Estimated: `512390 + n * (3566 ±0) + v * (3566 ±0)`
// Minimum execution time: 556_012_000 picoseconds.
Weight::from_parts(560_339_000, 512390)
// Standard Error: 2_115_076
.saturating_add(Weight::from_parts(69_456_497, 0).saturating_mul(v.into()))
// Standard Error: 210_755
.saturating_add(Weight::from_parts(17_974_873, 0).saturating_mul(n.into()))
// Minimum execution time: 564_963_000 picoseconds.
Weight::from_parts(569_206_000, 512390)
// Standard Error: 2_033_235
.saturating_add(Weight::from_parts(68_025_841, 0).saturating_mul(v.into()))
// Standard Error: 202_600
.saturating_add(Weight::from_parts(17_916_770, 0).saturating_mul(n.into()))
.saturating_add(RocksDbWeight::get().reads(206_u64))
.saturating_add(RocksDbWeight::get().reads((5_u64).saturating_mul(v.into())))
.saturating_add(RocksDbWeight::get().reads((4_u64).saturating_mul(n.into())))
@@ -1409,12 +1399,12 @@ impl WeightInfo for () {
// Proof Size summary in bytes:
// Measured: `3175 + n * (911 ±0) + v * (395 ±0)`
// Estimated: `512390 + n * (3566 ±0) + v * (3566 ±0)`
// Minimum execution time: 32_792_819_000 picoseconds.
Weight::from_parts(32_986_606_000, 512390)
// Standard Error: 360_905
.saturating_add(Weight::from_parts(5_260_151, 0).saturating_mul(v.into()))
// Standard Error: 360_905
.saturating_add(Weight::from_parts(3_599_219, 0).saturating_mul(n.into()))
// Minimum execution time: 32_196_540_000 picoseconds.
Weight::from_parts(32_341_871_000, 512390)
// Standard Error: 354_657
.saturating_add(Weight::from_parts(5_143_440, 0).saturating_mul(v.into()))
// Standard Error: 354_657
.saturating_add(Weight::from_parts(3_328_189, 0).saturating_mul(n.into()))
.saturating_add(RocksDbWeight::get().reads(201_u64))
.saturating_add(RocksDbWeight::get().reads((5_u64).saturating_mul(v.into())))
.saturating_add(RocksDbWeight::get().reads((4_u64).saturating_mul(n.into())))
@@ -1431,10 +1421,10 @@ impl WeightInfo for () {
// Proof Size summary in bytes:
// Measured: `979 + v * (50 ±0)`
// Estimated: `3510 + v * (2520 ±0)`
// Minimum execution time: 2_434_755_000 picoseconds.
Weight::from_parts(38_574_764, 3510)
// Standard Error: 14_467
.saturating_add(Weight::from_parts(4_821_702, 0).saturating_mul(v.into()))
// Minimum execution time: 2_381_903_000 picoseconds.
Weight::from_parts(32_693_059, 3510)
// Standard Error: 10_000
.saturating_add(Weight::from_parts(4_736_173, 0).saturating_mul(v.into()))
.saturating_add(RocksDbWeight::get().reads(2_u64))
.saturating_add(RocksDbWeight::get().reads((1_u64).saturating_mul(v.into())))
.saturating_add(Weight::from_parts(0, 2520).saturating_mul(v.into()))
@@ -1445,8 +1435,6 @@ impl WeightInfo for () {
/// Proof: `Staking::MinValidatorBond` (`max_values`: Some(1), `max_size`: Some(16), added: 511, mode: `MaxEncodedLen`)
/// Storage: `Staking::MaxValidatorsCount` (r:0 w:1)
/// Proof: `Staking::MaxValidatorsCount` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
/// Storage: `Staking::MaxStakedRewards` (r:0 w:1)
/// Proof: `Staking::MaxStakedRewards` (`max_values`: Some(1), `max_size`: Some(1), added: 496, mode: `MaxEncodedLen`)
/// Storage: `Staking::ChillThreshold` (r:0 w:1)
/// Proof: `Staking::ChillThreshold` (`max_values`: Some(1), `max_size`: Some(1), added: 496, mode: `MaxEncodedLen`)
/// Storage: `Staking::MaxNominatorsCount` (r:0 w:1)
@@ -1457,9 +1445,9 @@ impl WeightInfo for () {
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `0`
// Minimum execution time: 5_765_000 picoseconds.
Weight::from_parts(6_140_000, 0)
.saturating_add(RocksDbWeight::get().writes(7_u64))
// Minimum execution time: 5_434_000 picoseconds.
Weight::from_parts(5_742_000, 0)
.saturating_add(RocksDbWeight::get().writes(6_u64))
}
/// Storage: `Staking::MinCommission` (r:0 w:1)
/// Proof: `Staking::MinCommission` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
@@ -1467,8 +1455,6 @@ impl WeightInfo for () {
/// Proof: `Staking::MinValidatorBond` (`max_values`: Some(1), `max_size`: Some(16), added: 511, mode: `MaxEncodedLen`)
/// Storage: `Staking::MaxValidatorsCount` (r:0 w:1)
/// Proof: `Staking::MaxValidatorsCount` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
/// Storage: `Staking::MaxStakedRewards` (r:0 w:1)
/// Proof: `Staking::MaxStakedRewards` (`max_values`: Some(1), `max_size`: Some(1), added: 496, mode: `MaxEncodedLen`)
/// Storage: `Staking::ChillThreshold` (r:0 w:1)
/// Proof: `Staking::ChillThreshold` (`max_values`: Some(1), `max_size`: Some(1), added: 496, mode: `MaxEncodedLen`)
/// Storage: `Staking::MaxNominatorsCount` (r:0 w:1)
@@ -1479,9 +1465,9 @@ impl WeightInfo for () {
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `0`
// Minimum execution time: 5_025_000 picoseconds.
Weight::from_parts(5_354_000, 0)
.saturating_add(RocksDbWeight::get().writes(7_u64))
// Minimum execution time: 4_588_000 picoseconds.
Weight::from_parts(4_854_000, 0)
.saturating_add(RocksDbWeight::get().writes(6_u64))
}
/// Storage: `Staking::Bonded` (r:1 w:0)
/// Proof: `Staking::Bonded` (`max_values`: None, `max_size`: Some(72), added: 2547, mode: `MaxEncodedLen`)
@@ -1509,8 +1495,8 @@ impl WeightInfo for () {
// Proof Size summary in bytes:
// Measured: `1939`
// Estimated: `6248`
// Minimum execution time: 69_656_000 picoseconds.
Weight::from_parts(71_574_000, 6248)
// Minimum execution time: 68_780_000 picoseconds.
Weight::from_parts(71_479_000, 6248)
.saturating_add(RocksDbWeight::get().reads(12_u64))
.saturating_add(RocksDbWeight::get().writes(6_u64))
}
@@ -1522,8 +1508,8 @@ impl WeightInfo for () {
// Proof Size summary in bytes:
// Measured: `691`
// Estimated: `3510`
// Minimum execution time: 12_523_000 picoseconds.
Weight::from_parts(13_315_000, 3510)
// Minimum execution time: 12_268_000 picoseconds.
Weight::from_parts(12_661_000, 3510)
.saturating_add(RocksDbWeight::get().reads(2_u64))
.saturating_add(RocksDbWeight::get().writes(1_u64))
}
@@ -1533,8 +1519,8 @@ impl WeightInfo for () {
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `0`
// Minimum execution time: 3_125_000 picoseconds.
Weight::from_parts(3_300_000, 0)
// Minimum execution time: 3_071_000 picoseconds.
Weight::from_parts(3_334_000, 0)
.saturating_add(RocksDbWeight::get().writes(1_u64))
}
}
@@ -1801,7 +1801,7 @@ mod remote_tests_local {
use std::env::var as env_var;
// we only use the hash type from this, so using the mock should be fine.
type Extrinsic = sp_runtime::generic::UncheckedExtrinsic<u64, MockCall, (), ()>;
type Extrinsic = sp_runtime::testing::TestXt<MockCall, ()>;
type Block = sp_runtime::testing::Block<Extrinsic>;
#[tokio::test]
+58 -60
View File
@@ -17,28 +17,26 @@
//! Autogenerated weights for `pallet_state_trie_migration`
//!
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0
//! DATE: 2024-03-01, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
//! DATE: 2024-01-24, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! WORST CASE MAP SIZE: `1000000`
//! HOSTNAME: `runner-bn-ce5rx-project-674-concurrent-0`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz`
//! HOSTNAME: `runner-grjcggob-project-674-concurrent-0`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz`
//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("dev")`, DB CACHE: `1024`
// Executed Command:
// ./target/production/substrate-node
// target/production/substrate-node
// benchmark
// pallet
// --chain=dev
// --steps=50
// --repeat=20
// --pallet=pallet_state_trie_migration
// --no-storage-info
// --no-median-slopes
// --no-min-squares
// --extrinsic=*
// --wasm-execution=compiled
// --heap-pages=4096
// --output=./substrate/frame/state-trie-migration/src/weights.rs
// --json-file=/builds/parity/mirrors/polkadot-sdk/.git/.artifacts/bench.json
// --pallet=pallet_state_trie_migration
// --chain=dev
// --header=./substrate/HEADER-APACHE2
// --output=./substrate/frame/state-trie-migration/src/weights.rs
// --template=./substrate/.maintain/frame-weight-template.hbs
#![cfg_attr(rustfmt, rustfmt_skip)]
@@ -66,15 +64,15 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
/// Storage: `StateTrieMigration::SignedMigrationMaxLimits` (r:1 w:0)
/// Proof: `StateTrieMigration::SignedMigrationMaxLimits` (`max_values`: Some(1), `max_size`: Some(8), added: 503, mode: `MaxEncodedLen`)
/// Storage: `Balances::Holds` (r:1 w:0)
/// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(193), added: 2668, mode: `MaxEncodedLen`)
/// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(175), added: 2650, mode: `MaxEncodedLen`)
/// Storage: `StateTrieMigration::MigrationProcess` (r:1 w:1)
/// Proof: `StateTrieMigration::MigrationProcess` (`max_values`: Some(1), `max_size`: Some(1042), added: 1537, mode: `MaxEncodedLen`)
fn continue_migrate() -> Weight {
// Proof Size summary in bytes:
// Measured: `108`
// Estimated: `3658`
// Minimum execution time: 17_661_000 picoseconds.
Weight::from_parts(18_077_000, 3658)
// Estimated: `3640`
// Minimum execution time: 18_520_000 picoseconds.
Weight::from_parts(19_171_000, 3640)
.saturating_add(T::DbWeight::get().reads(3_u64))
.saturating_add(T::DbWeight::get().writes(1_u64))
}
@@ -84,53 +82,53 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
// Proof Size summary in bytes:
// Measured: `76`
// Estimated: `1493`
// Minimum execution time: 4_036_000 picoseconds.
Weight::from_parts(4_267_000, 1493)
// Minimum execution time: 3_786_000 picoseconds.
Weight::from_parts(4_038_000, 1493)
.saturating_add(T::DbWeight::get().reads(1_u64))
}
/// Storage: `Balances::Holds` (r:1 w:0)
/// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(193), added: 2668, mode: `MaxEncodedLen`)
/// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(175), added: 2650, mode: `MaxEncodedLen`)
fn migrate_custom_top_success() -> Weight {
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `3658`
// Minimum execution time: 11_348_000 picoseconds.
Weight::from_parts(11_899_000, 3658)
// Estimated: `3640`
// Minimum execution time: 11_144_000 picoseconds.
Weight::from_parts(11_556_000, 3640)
.saturating_add(T::DbWeight::get().reads(1_u64))
}
/// Storage: `Balances::Holds` (r:1 w:1)
/// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(193), added: 2668, mode: `MaxEncodedLen`)
/// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(175), added: 2650, mode: `MaxEncodedLen`)
/// Storage: UNKNOWN KEY `0x666f6f` (r:1 w:1)
/// Proof: UNKNOWN KEY `0x666f6f` (r:1 w:1)
fn migrate_custom_top_fail() -> Weight {
// Proof Size summary in bytes:
// Measured: `113`
// Estimated: `3658`
// Minimum execution time: 59_819_000 picoseconds.
Weight::from_parts(61_066_000, 3658)
// Estimated: `3640`
// Minimum execution time: 59_288_000 picoseconds.
Weight::from_parts(60_276_000, 3640)
.saturating_add(T::DbWeight::get().reads(2_u64))
.saturating_add(T::DbWeight::get().writes(2_u64))
}
/// Storage: `Balances::Holds` (r:1 w:0)
/// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(193), added: 2668, mode: `MaxEncodedLen`)
/// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(175), added: 2650, mode: `MaxEncodedLen`)
fn migrate_custom_child_success() -> Weight {
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `3658`
// Minimum execution time: 11_424_000 picoseconds.
Weight::from_parts(11_765_000, 3658)
// Estimated: `3640`
// Minimum execution time: 11_258_000 picoseconds.
Weight::from_parts(11_626_000, 3640)
.saturating_add(T::DbWeight::get().reads(1_u64))
}
/// Storage: `Balances::Holds` (r:1 w:1)
/// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(193), added: 2668, mode: `MaxEncodedLen`)
/// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(175), added: 2650, mode: `MaxEncodedLen`)
/// Storage: UNKNOWN KEY `0x666f6f` (r:1 w:1)
/// Proof: UNKNOWN KEY `0x666f6f` (r:1 w:1)
fn migrate_custom_child_fail() -> Weight {
// Proof Size summary in bytes:
// Measured: `106`
// Estimated: `3658`
// Minimum execution time: 61_086_000 picoseconds.
Weight::from_parts(62_546_000, 3658)
// Estimated: `3640`
// Minimum execution time: 61_575_000 picoseconds.
Weight::from_parts(63_454_000, 3640)
.saturating_add(T::DbWeight::get().reads(2_u64))
.saturating_add(T::DbWeight::get().writes(2_u64))
}
@@ -141,10 +139,10 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
// Proof Size summary in bytes:
// Measured: `197 + v * (1 ±0)`
// Estimated: `3662 + v * (1 ±0)`
// Minimum execution time: 5_375_000 picoseconds.
Weight::from_parts(5_552_000, 3662)
// Minimum execution time: 5_259_000 picoseconds.
Weight::from_parts(5_433_000, 3662)
// Standard Error: 1
.saturating_add(Weight::from_parts(1_146, 0).saturating_mul(v.into()))
.saturating_add(Weight::from_parts(1_159, 0).saturating_mul(v.into()))
.saturating_add(T::DbWeight::get().reads(1_u64))
.saturating_add(T::DbWeight::get().writes(1_u64))
.saturating_add(Weight::from_parts(0, 1).saturating_mul(v.into()))
@@ -156,15 +154,15 @@ impl WeightInfo for () {
/// Storage: `StateTrieMigration::SignedMigrationMaxLimits` (r:1 w:0)
/// Proof: `StateTrieMigration::SignedMigrationMaxLimits` (`max_values`: Some(1), `max_size`: Some(8), added: 503, mode: `MaxEncodedLen`)
/// Storage: `Balances::Holds` (r:1 w:0)
/// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(193), added: 2668, mode: `MaxEncodedLen`)
/// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(175), added: 2650, mode: `MaxEncodedLen`)
/// Storage: `StateTrieMigration::MigrationProcess` (r:1 w:1)
/// Proof: `StateTrieMigration::MigrationProcess` (`max_values`: Some(1), `max_size`: Some(1042), added: 1537, mode: `MaxEncodedLen`)
fn continue_migrate() -> Weight {
// Proof Size summary in bytes:
// Measured: `108`
// Estimated: `3658`
// Minimum execution time: 17_661_000 picoseconds.
Weight::from_parts(18_077_000, 3658)
// Estimated: `3640`
// Minimum execution time: 18_520_000 picoseconds.
Weight::from_parts(19_171_000, 3640)
.saturating_add(RocksDbWeight::get().reads(3_u64))
.saturating_add(RocksDbWeight::get().writes(1_u64))
}
@@ -174,53 +172,53 @@ impl WeightInfo for () {
// Proof Size summary in bytes:
// Measured: `76`
// Estimated: `1493`
// Minimum execution time: 4_036_000 picoseconds.
Weight::from_parts(4_267_000, 1493)
// Minimum execution time: 3_786_000 picoseconds.
Weight::from_parts(4_038_000, 1493)
.saturating_add(RocksDbWeight::get().reads(1_u64))
}
/// Storage: `Balances::Holds` (r:1 w:0)
/// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(193), added: 2668, mode: `MaxEncodedLen`)
/// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(175), added: 2650, mode: `MaxEncodedLen`)
fn migrate_custom_top_success() -> Weight {
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `3658`
// Minimum execution time: 11_348_000 picoseconds.
Weight::from_parts(11_899_000, 3658)
// Estimated: `3640`
// Minimum execution time: 11_144_000 picoseconds.
Weight::from_parts(11_556_000, 3640)
.saturating_add(RocksDbWeight::get().reads(1_u64))
}
/// Storage: `Balances::Holds` (r:1 w:1)
/// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(193), added: 2668, mode: `MaxEncodedLen`)
/// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(175), added: 2650, mode: `MaxEncodedLen`)
/// Storage: UNKNOWN KEY `0x666f6f` (r:1 w:1)
/// Proof: UNKNOWN KEY `0x666f6f` (r:1 w:1)
fn migrate_custom_top_fail() -> Weight {
// Proof Size summary in bytes:
// Measured: `113`
// Estimated: `3658`
// Minimum execution time: 59_819_000 picoseconds.
Weight::from_parts(61_066_000, 3658)
// Estimated: `3640`
// Minimum execution time: 59_288_000 picoseconds.
Weight::from_parts(60_276_000, 3640)
.saturating_add(RocksDbWeight::get().reads(2_u64))
.saturating_add(RocksDbWeight::get().writes(2_u64))
}
/// Storage: `Balances::Holds` (r:1 w:0)
/// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(193), added: 2668, mode: `MaxEncodedLen`)
/// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(175), added: 2650, mode: `MaxEncodedLen`)
fn migrate_custom_child_success() -> Weight {
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `3658`
// Minimum execution time: 11_424_000 picoseconds.
Weight::from_parts(11_765_000, 3658)
// Estimated: `3640`
// Minimum execution time: 11_258_000 picoseconds.
Weight::from_parts(11_626_000, 3640)
.saturating_add(RocksDbWeight::get().reads(1_u64))
}
/// Storage: `Balances::Holds` (r:1 w:1)
/// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(193), added: 2668, mode: `MaxEncodedLen`)
/// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(175), added: 2650, mode: `MaxEncodedLen`)
/// Storage: UNKNOWN KEY `0x666f6f` (r:1 w:1)
/// Proof: UNKNOWN KEY `0x666f6f` (r:1 w:1)
fn migrate_custom_child_fail() -> Weight {
// Proof Size summary in bytes:
// Measured: `106`
// Estimated: `3658`
// Minimum execution time: 61_086_000 picoseconds.
Weight::from_parts(62_546_000, 3658)
// Estimated: `3640`
// Minimum execution time: 61_575_000 picoseconds.
Weight::from_parts(63_454_000, 3640)
.saturating_add(RocksDbWeight::get().reads(2_u64))
.saturating_add(RocksDbWeight::get().writes(2_u64))
}
@@ -231,10 +229,10 @@ impl WeightInfo for () {
// Proof Size summary in bytes:
// Measured: `197 + v * (1 ±0)`
// Estimated: `3662 + v * (1 ±0)`
// Minimum execution time: 5_375_000 picoseconds.
Weight::from_parts(5_552_000, 3662)
// Minimum execution time: 5_259_000 picoseconds.
Weight::from_parts(5_433_000, 3662)
// Standard Error: 1
.saturating_add(Weight::from_parts(1_146, 0).saturating_mul(v.into()))
.saturating_add(Weight::from_parts(1_159, 0).saturating_mul(v.into()))
.saturating_add(RocksDbWeight::get().reads(1_u64))
.saturating_add(RocksDbWeight::get().writes(1_u64))
.saturating_add(Weight::from_parts(0, 1).saturating_mul(v.into()))
+1 -28
View File
@@ -20,23 +20,14 @@
use super::*;
use crate::Pallet;
use frame_benchmarking::v2::*;
use frame_support::dispatch::DispatchInfo;
use frame_system::RawOrigin;
use sp_runtime::traits::{AsSystemOriginSigner, DispatchTransaction, Dispatchable};
fn assert_last_event<T: Config>(generic_event: crate::Event<T>) {
let re: <T as Config>::RuntimeEvent = generic_event.into();
frame_system::Pallet::<T>::assert_last_event(re.into());
}
#[benchmarks(where
T: Send + Sync,
<T as Config>::RuntimeCall: From<frame_system::Call<T>>,
<T as frame_system::Config>::RuntimeCall: Dispatchable<Info = DispatchInfo>,
<<T as frame_system::Config>::RuntimeCall as Dispatchable>::PostInfo: From<()>,
<<T as frame_system::Config>::RuntimeCall as Dispatchable>::RuntimeOrigin:
AsSystemOriginSigner<T::AccountId> + Clone,
)]
#[benchmarks(where <T as Config>::RuntimeCall: From<frame_system::Call<T>>)]
mod benchmarks {
use super::*;
@@ -94,23 +85,5 @@ mod benchmarks {
assert_last_event::<T>(Event::KeyRemoved {});
}
#[benchmark]
fn check_only_sudo_account() {
let caller: T::AccountId = whitelisted_caller();
Key::<T>::put(&caller);
let call = frame_system::Call::remark { remark: vec![] }.into();
let info = DispatchInfo { ..Default::default() };
let ext = CheckOnlySudoAccount::<T>::new();
#[block]
{
assert!(ext
.test_run(RawOrigin::Signed(caller).into(), &call, &info, 0, |_| Ok(().into()))
.unwrap()
.is_ok());
}
}
impl_benchmark_test_suite!(Pallet, crate::mock::new_bench_ext(), crate::mock::Test);
}
+31 -47
View File
@@ -20,14 +20,10 @@ use codec::{Decode, Encode};
use frame_support::{dispatch::DispatchInfo, ensure};
use scale_info::TypeInfo;
use sp_runtime::{
impl_tx_ext_default,
traits::{
AsSystemOriginSigner, DispatchInfoOf, Dispatchable, TransactionExtension,
TransactionExtensionBase,
},
traits::{DispatchInfoOf, Dispatchable, SignedExtension},
transaction_validity::{
InvalidTransaction, TransactionPriority, TransactionValidityError, UnknownTransaction,
ValidTransaction,
InvalidTransaction, TransactionPriority, TransactionValidity, TransactionValidityError,
UnknownTransaction, ValidTransaction,
},
};
use sp_std::{fmt, marker::PhantomData};
@@ -63,61 +59,49 @@ impl<T: Config + Send + Sync> fmt::Debug for CheckOnlySudoAccount<T> {
}
impl<T: Config + Send + Sync> CheckOnlySudoAccount<T> {
/// Creates new `TransactionExtension` to check sudo key.
/// Creates new `SignedExtension` to check sudo key.
pub fn new() -> Self {
Self::default()
}
}
impl<T: Config + Send + Sync> TransactionExtensionBase for CheckOnlySudoAccount<T> {
const IDENTIFIER: &'static str = "CheckOnlySudoAccount";
type Implicit = ();
fn weight(&self) -> frame_support::weights::Weight {
use crate::weights::WeightInfo;
T::WeightInfo::check_only_sudo_account()
}
}
impl<T: Config + Send + Sync, Context>
TransactionExtension<<T as frame_system::Config>::RuntimeCall, Context> for CheckOnlySudoAccount<T>
impl<T: Config + Send + Sync> SignedExtension for CheckOnlySudoAccount<T>
where
<T as frame_system::Config>::RuntimeCall: Dispatchable<Info = DispatchInfo>,
<<T as frame_system::Config>::RuntimeCall as Dispatchable>::RuntimeOrigin:
AsSystemOriginSigner<T::AccountId> + Clone,
<T as Config>::RuntimeCall: Dispatchable<Info = DispatchInfo>,
{
const IDENTIFIER: &'static str = "CheckOnlySudoAccount";
type AccountId = T::AccountId;
type Call = <T as Config>::RuntimeCall;
type AdditionalSigned = ();
type Pre = ();
type Val = ();
fn additional_signed(&self) -> Result<Self::AdditionalSigned, TransactionValidityError> {
Ok(())
}
fn validate(
&self,
origin: <<T as frame_system::Config>::RuntimeCall as Dispatchable>::RuntimeOrigin,
_call: &<T as frame_system::Config>::RuntimeCall,
info: &DispatchInfoOf<<T as frame_system::Config>::RuntimeCall>,
who: &Self::AccountId,
_call: &Self::Call,
info: &DispatchInfoOf<Self::Call>,
_len: usize,
_context: &mut Context,
_self_implicit: Self::Implicit,
_inherited_implication: &impl Encode,
) -> Result<
(
ValidTransaction,
Self::Val,
<<T as frame_system::Config>::RuntimeCall as Dispatchable>::RuntimeOrigin,
),
TransactionValidityError,
> {
let who = origin.as_system_origin_signer().ok_or(InvalidTransaction::BadSigner)?;
) -> TransactionValidity {
let sudo_key: T::AccountId = Key::<T>::get().ok_or(UnknownTransaction::CannotLookup)?;
ensure!(*who == sudo_key, InvalidTransaction::BadSigner);
Ok((
ValidTransaction {
priority: info.weight.ref_time() as TransactionPriority,
..Default::default()
},
(),
origin,
))
Ok(ValidTransaction {
priority: info.weight.ref_time() as TransactionPriority,
..Default::default()
})
}
impl_tx_ext_default!(<T as frame_system::Config>::RuntimeCall; Context; prepare);
fn pre_dispatch(
self,
who: &Self::AccountId,
call: &Self::Call,
info: &DispatchInfoOf<Self::Call>,
len: usize,
) -> Result<Self::Pre, TransactionValidityError> {
self.validate(who, call, info, len).map(|_| ())
}
}
+2 -2
View File
@@ -85,8 +85,8 @@
//! meant to be used by constructing runtime calls from outside the runtime.
//! </pre></div>
//!
//! This pallet also defines a [`TransactionExtension`](sp_runtime::traits::TransactionExtension)
//! called [`CheckOnlySudoAccount`] to ensure that only signed transactions by the sudo account are
//! This pallet also defines a [`SignedExtension`](sp_runtime::traits::SignedExtension) called
//! [`CheckOnlySudoAccount`] to ensure that only signed transactions by the sudo account are
//! accepted by the transaction pool. The intended use of this signed extension is to prevent other
//! accounts from spamming the transaction pool for the initial phase of a chain, during which
//! developers may only want a sudo account to be able to make transactions.
+24 -47
View File
@@ -17,28 +17,26 @@
//! Autogenerated weights for `pallet_sudo`
//!
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0
//! DATE: 2024-03-01, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
//! DATE: 2023-11-07, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! WORST CASE MAP SIZE: `1000000`
//! HOSTNAME: `runner-bn-ce5rx-project-674-concurrent-0`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz`
//! HOSTNAME: `runner-yprdrvc7-project-674-concurrent-0`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz`
//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("dev")`, DB CACHE: `1024`
// Executed Command:
// ./target/production/substrate-node
// target/production/substrate-node
// benchmark
// pallet
// --chain=dev
// --steps=50
// --repeat=20
// --pallet=pallet_sudo
// --no-storage-info
// --no-median-slopes
// --no-min-squares
// --extrinsic=*
// --wasm-execution=compiled
// --heap-pages=4096
// --output=./substrate/frame/sudo/src/weights.rs
// --json-file=/builds/parity/mirrors/polkadot-sdk/.git/.artifacts/bench.json
// --pallet=pallet_sudo
// --chain=dev
// --header=./substrate/HEADER-APACHE2
// --output=./substrate/frame/sudo/src/weights.rs
// --template=./substrate/.maintain/frame-weight-template.hbs
#![cfg_attr(rustfmt, rustfmt_skip)]
@@ -55,7 +53,6 @@ pub trait WeightInfo {
fn sudo() -> Weight;
fn sudo_as() -> Weight;
fn remove_key() -> Weight;
fn check_only_sudo_account() -> Weight;
}
/// Weights for `pallet_sudo` using the Substrate node and recommended hardware.
@@ -67,8 +64,8 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
// Proof Size summary in bytes:
// Measured: `165`
// Estimated: `1517`
// Minimum execution time: 9_590_000 picoseconds.
Weight::from_parts(9_924_000, 1517)
// Minimum execution time: 9_600_000 picoseconds.
Weight::from_parts(10_076_000, 1517)
.saturating_add(T::DbWeight::get().reads(1_u64))
.saturating_add(T::DbWeight::get().writes(1_u64))
}
@@ -78,8 +75,8 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
// Proof Size summary in bytes:
// Measured: `165`
// Estimated: `1517`
// Minimum execution time: 9_825_000 picoseconds.
Weight::from_parts(10_373_000, 1517)
// Minimum execution time: 10_453_000 picoseconds.
Weight::from_parts(10_931_000, 1517)
.saturating_add(T::DbWeight::get().reads(1_u64))
}
/// Storage: `Sudo::Key` (r:1 w:0)
@@ -88,8 +85,8 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
// Proof Size summary in bytes:
// Measured: `165`
// Estimated: `1517`
// Minimum execution time: 10_140_000 picoseconds.
Weight::from_parts(10_382_000, 1517)
// Minimum execution time: 10_202_000 picoseconds.
Weight::from_parts(10_800_000, 1517)
.saturating_add(T::DbWeight::get().reads(1_u64))
}
/// Storage: `Sudo::Key` (r:1 w:1)
@@ -98,21 +95,11 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
// Proof Size summary in bytes:
// Measured: `165`
// Estimated: `1517`
// Minimum execution time: 8_610_000 picoseconds.
Weight::from_parts(8_975_000, 1517)
// Minimum execution time: 8_555_000 picoseconds.
Weight::from_parts(8_846_000, 1517)
.saturating_add(T::DbWeight::get().reads(1_u64))
.saturating_add(T::DbWeight::get().writes(1_u64))
}
/// Storage: `Sudo::Key` (r:1 w:0)
/// Proof: `Sudo::Key` (`max_values`: Some(1), `max_size`: Some(32), added: 527, mode: `MaxEncodedLen`)
fn check_only_sudo_account() -> Weight {
// Proof Size summary in bytes:
// Measured: `165`
// Estimated: `1517`
// Minimum execution time: 3_416_000 picoseconds.
Weight::from_parts(3_645_000, 1517)
.saturating_add(T::DbWeight::get().reads(1_u64))
}
}
// For backwards compatibility and tests.
@@ -123,8 +110,8 @@ impl WeightInfo for () {
// Proof Size summary in bytes:
// Measured: `165`
// Estimated: `1517`
// Minimum execution time: 9_590_000 picoseconds.
Weight::from_parts(9_924_000, 1517)
// Minimum execution time: 9_600_000 picoseconds.
Weight::from_parts(10_076_000, 1517)
.saturating_add(RocksDbWeight::get().reads(1_u64))
.saturating_add(RocksDbWeight::get().writes(1_u64))
}
@@ -134,8 +121,8 @@ impl WeightInfo for () {
// Proof Size summary in bytes:
// Measured: `165`
// Estimated: `1517`
// Minimum execution time: 9_825_000 picoseconds.
Weight::from_parts(10_373_000, 1517)
// Minimum execution time: 10_453_000 picoseconds.
Weight::from_parts(10_931_000, 1517)
.saturating_add(RocksDbWeight::get().reads(1_u64))
}
/// Storage: `Sudo::Key` (r:1 w:0)
@@ -144,8 +131,8 @@ impl WeightInfo for () {
// Proof Size summary in bytes:
// Measured: `165`
// Estimated: `1517`
// Minimum execution time: 10_140_000 picoseconds.
Weight::from_parts(10_382_000, 1517)
// Minimum execution time: 10_202_000 picoseconds.
Weight::from_parts(10_800_000, 1517)
.saturating_add(RocksDbWeight::get().reads(1_u64))
}
/// Storage: `Sudo::Key` (r:1 w:1)
@@ -154,19 +141,9 @@ impl WeightInfo for () {
// Proof Size summary in bytes:
// Measured: `165`
// Estimated: `1517`
// Minimum execution time: 8_610_000 picoseconds.
Weight::from_parts(8_975_000, 1517)
// Minimum execution time: 8_555_000 picoseconds.
Weight::from_parts(8_846_000, 1517)
.saturating_add(RocksDbWeight::get().reads(1_u64))
.saturating_add(RocksDbWeight::get().writes(1_u64))
}
/// Storage: `Sudo::Key` (r:1 w:0)
/// Proof: `Sudo::Key` (`max_values`: Some(1), `max_size`: Some(32), added: 527, mode: `MaxEncodedLen`)
fn check_only_sudo_account() -> Weight {
// Proof Size summary in bytes:
// Measured: `165`
// Estimated: `1517`
// Minimum execution time: 3_416_000 picoseconds.
Weight::from_parts(3_645_000, 1517)
.saturating_add(RocksDbWeight::get().reads(1_u64))
}
}
@@ -73,9 +73,11 @@ pub fn expand_outer_inherent(
#(
#pallet_attrs
if let Some(inherent) = #pallet_names::create_inherent(self) {
let inherent = <#unchecked_extrinsic as #scrate::sp_runtime::traits::Extrinsic>::new_inherent(
let inherent = <#unchecked_extrinsic as #scrate::sp_runtime::traits::Extrinsic>::new(
inherent.into(),
);
None,
).expect("Runtime UncheckedExtrinsic is not Opaque, so it has to return \
`Some`; qed");
inherents.push(inherent);
}
@@ -121,7 +123,7 @@ pub fn expand_outer_inherent(
for xt in block.extrinsics() {
// Inherents are before any other extrinsics.
// And signed extrinsics are not inherents.
if !(#scrate::sp_runtime::traits::Extrinsic::is_bare(xt)) {
if #scrate::sp_runtime::traits::Extrinsic::is_signed(xt).unwrap_or(false) {
break
}
@@ -159,9 +161,10 @@ pub fn expand_outer_inherent(
match #pallet_names::is_inherent_required(self) {
Ok(Some(e)) => {
let found = block.extrinsics().iter().any(|xt| {
let is_bare = #scrate::sp_runtime::traits::Extrinsic::is_bare(xt);
let is_signed = #scrate::sp_runtime::traits::Extrinsic::is_signed(xt)
.unwrap_or(false);
if is_bare {
if !is_signed {
let call = <
#unchecked_extrinsic as ExtrinsicCall
>::call(xt);
@@ -206,9 +209,8 @@ pub fn expand_outer_inherent(
use #scrate::inherent::ProvideInherent;
use #scrate::traits::{IsSubType, ExtrinsicCall};
let is_bare = #scrate::sp_runtime::traits::Extrinsic::is_bare(ext);
if !is_bare {
// Signed extrinsics are not inherents.
if #scrate::sp_runtime::traits::Extrinsic::is_signed(ext).unwrap_or(false) {
// Signed extrinsics are never inherents.
return false
}
@@ -119,13 +119,13 @@ pub fn expand_runtime_metadata(
call_ty,
signature_ty,
extra_ty,
extensions: <
signed_extensions: <
<
#extrinsic as #scrate::sp_runtime::traits::ExtrinsicMetadata
>::Extra as #scrate::sp_runtime::traits::TransactionExtensionBase
>::SignedExtensions as #scrate::sp_runtime::traits::SignedExtension
>::metadata()
.into_iter()
.map(|meta| #scrate::__private::metadata_ir::TransactionExtensionMetadataIR {
.map(|meta| #scrate::__private::metadata_ir::SignedExtensionMetadataIR {
identifier: meta.identifier,
ty: meta.ty,
additional_signed: meta.additional_signed,
@@ -153,10 +153,6 @@ pub fn expand_outer_origin(
self.filter = #scrate::__private::sp_std::rc::Rc::new(Box::new(filter));
}
fn set_caller(&mut self, caller: OriginCaller) {
self.caller = caller;
}
fn set_caller_from(&mut self, other: impl Into<Self>) {
self.caller = other.into().caller;
}
@@ -305,16 +301,6 @@ pub fn expand_outer_origin(
}
}
impl #scrate::__private::AsSystemOriginSigner<<#runtime as #system_path::Config>::AccountId> for RuntimeOrigin {
fn as_system_origin_signer(&self) -> Option<&<#runtime as #system_path::Config>::AccountId> {
if let OriginCaller::system(#system_path::Origin::<#runtime>::Signed(ref signed)) = &self.caller {
Some(signed)
} else {
None
}
}
}
#pallet_conversions
})
}
+22 -7
View File
@@ -25,7 +25,7 @@ use scale_info::TypeInfo;
use serde::{Deserialize, Serialize};
use sp_runtime::{
generic::{CheckedExtrinsic, UncheckedExtrinsic},
traits::Dispatchable,
traits::SignedExtension,
DispatchError, RuntimeDebug,
};
use sp_std::fmt;
@@ -268,8 +268,7 @@ pub fn extract_actual_weight(result: &DispatchResultWithPostInfo, info: &Dispatc
.calc_actual_weight(info)
}
/// Extract the actual pays_fee from a dispatch result if any or fall back to the default
/// weight.
/// Extract the actual pays_fee from a dispatch result if any or fall back to the default weight.
pub fn extract_actual_pays_fee(result: &DispatchResultWithPostInfo, info: &DispatchInfo) -> Pays {
match result {
Ok(post_info) => post_info,
@@ -369,10 +368,11 @@ where
}
/// Implementation for unchecked extrinsic.
impl<Address, Call, Signature, Extension> GetDispatchInfo
for UncheckedExtrinsic<Address, Call, Signature, Extension>
impl<Address, Call, Signature, Extra> GetDispatchInfo
for UncheckedExtrinsic<Address, Call, Signature, Extra>
where
Call: GetDispatchInfo + Dispatchable,
Call: GetDispatchInfo,
Extra: SignedExtension,
{
fn get_dispatch_info(&self) -> DispatchInfo {
self.function.get_dispatch_info()
@@ -380,7 +380,7 @@ where
}
/// Implementation for checked extrinsic.
impl<AccountId, Call, Extension> GetDispatchInfo for CheckedExtrinsic<AccountId, Call, Extension>
impl<AccountId, Call, Extra> GetDispatchInfo for CheckedExtrinsic<AccountId, Call, Extra>
where
Call: GetDispatchInfo,
{
@@ -389,6 +389,21 @@ where
}
}
/// Implementation for test extrinsic.
#[cfg(feature = "std")]
impl<Call: Encode + GetDispatchInfo, Extra: Encode> GetDispatchInfo
for sp_runtime::testing::TestXt<Call, Extra>
{
fn get_dispatch_info(&self) -> DispatchInfo {
// for testing: weight == size.
DispatchInfo {
weight: Weight::from_parts(self.encode().len() as _, 0),
pays_fee: Pays::Yes,
class: self.call.get_dispatch_info().class,
}
}
}
/// A struct holding value for each `DispatchClass`.
#[derive(Clone, Eq, PartialEq, Default, Debug, Encode, Decode, TypeInfo, MaxEncodedLen)]
pub struct PerDispatchClass<T> {
+3 -5
View File
@@ -54,8 +54,7 @@ pub mod __private {
#[cfg(feature = "std")]
pub use sp_runtime::{bounded_btree_map, bounded_vec};
pub use sp_runtime::{
traits::{AsSystemOriginSigner, Dispatchable},
DispatchError, RuntimeDebug, StateVersion, TransactionOutcome,
traits::Dispatchable, DispatchError, RuntimeDebug, StateVersion, TransactionOutcome,
};
#[cfg(feature = "std")]
pub use sp_state_machine::BasicExternalities;
@@ -76,7 +75,6 @@ pub mod storage;
#[cfg(test)]
mod tests;
pub mod traits;
pub mod transaction_extensions;
pub mod weights;
#[doc(hidden)]
pub mod unsigned {
@@ -1586,8 +1584,8 @@ pub mod pallet_macros {
/// [`ValidateUnsigned`](frame_support::pallet_prelude::ValidateUnsigned) for
/// type `Pallet<T>`, and some optional where clause.
///
/// NOTE: There is also the [`sp_runtime::traits::TransactionExtension`] trait that can be
/// used to add some specific logic for transaction validation.
/// NOTE: There is also the [`sp_runtime::traits::SignedExtension`] trait that can be used
/// to add some specific logic for transaction validation.
///
/// ## Macro expansion
///
+1 -20
View File
@@ -482,7 +482,7 @@ pub trait OriginTrait: Sized {
type Call;
/// The caller origin, overarching type of all pallets origins.
type PalletsOrigin: Send + Sync + Into<Self> + CallerTrait<Self::AccountId> + MaxEncodedLen;
type PalletsOrigin: Into<Self> + CallerTrait<Self::AccountId> + MaxEncodedLen;
/// The AccountId used across the system.
type AccountId;
@@ -496,14 +496,6 @@ pub trait OriginTrait: Sized {
/// Replace the caller with caller from the other origin
fn set_caller_from(&mut self, other: impl Into<Self>);
/// Replace the caller with caller from the other origin
fn set_caller(&mut self, caller: Self::PalletsOrigin);
/// Replace the caller with caller from the other origin
fn set_caller_from_signed(&mut self, caller_account: Self::AccountId) {
self.set_caller(Self::PalletsOrigin::from(RawOrigin::Signed(caller_account)))
}
/// Filter the call if caller is not root, if false is returned then the call must be filtered
/// out.
///
@@ -552,17 +544,6 @@ pub trait OriginTrait: Sized {
fn as_system_ref(&self) -> Option<&RawOrigin<Self::AccountId>> {
self.caller().as_system_ref()
}
/// Extract a reference to the sytsem signer, if that's what the caller is.
fn as_system_signer(&self) -> Option<&Self::AccountId> {
self.caller().as_system_ref().and_then(|s| {
if let RawOrigin::Signed(ref who) = s {
Some(who)
} else {
None
}
})
}
}
#[cfg(test)]
+12 -1
View File
@@ -919,13 +919,24 @@ pub trait ExtrinsicCall: sp_runtime::traits::Extrinsic {
fn call(&self) -> &Self::Call;
}
#[cfg(feature = "std")]
impl<Call, Extra> ExtrinsicCall for sp_runtime::testing::TestXt<Call, Extra>
where
Call: codec::Codec + Sync + Send + TypeInfo,
Extra: TypeInfo,
{
fn call(&self) -> &Self::Call {
&self.call
}
}
impl<Address, Call, Signature, Extra> ExtrinsicCall
for sp_runtime::generic::UncheckedExtrinsic<Address, Call, Signature, Extra>
where
Address: TypeInfo,
Call: TypeInfo,
Signature: TypeInfo,
Extra: TypeInfo,
Extra: sp_runtime::traits::SignedExtension + TypeInfo,
{
fn call(&self) -> &Self::Call {
&self.function
@@ -1,89 +0,0 @@
// This file is part of Substrate.
// 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.
//! Transaction extensions.
use crate::{CloneNoBound, EqNoBound, PartialEqNoBound, RuntimeDebugNoBound};
use codec::{Decode, Encode};
use scale_info::TypeInfo;
use sp_io::hashing::blake2_256;
use sp_runtime::{
impl_tx_ext_default,
traits::{
transaction_extension::{TransactionExtensionBase, TransactionExtensionInterior},
DispatchInfoOf, Dispatchable, IdentifyAccount, TransactionExtension, Verify,
},
transaction_validity::{InvalidTransaction, TransactionValidityError, ValidTransaction},
};
#[derive(
CloneNoBound, EqNoBound, PartialEqNoBound, Encode, Decode, RuntimeDebugNoBound, TypeInfo,
)]
#[codec(encode_bound())]
#[codec(decode_bound())]
pub struct VerifyMultiSignature<V: Verify>
where
V: TransactionExtensionInterior,
<V::Signer as IdentifyAccount>::AccountId: TransactionExtensionInterior,
{
signature: V,
account: <V::Signer as IdentifyAccount>::AccountId,
}
impl<V: Verify> TransactionExtensionBase for VerifyMultiSignature<V>
where
V: TransactionExtensionInterior,
<V::Signer as IdentifyAccount>::AccountId: TransactionExtensionInterior,
{
const IDENTIFIER: &'static str = "VerifyMultiSignature";
type Implicit = ();
}
impl<V: Verify, Call: Dispatchable + Encode, Context> TransactionExtension<Call, Context>
for VerifyMultiSignature<V>
where
V: TransactionExtensionInterior,
<V::Signer as IdentifyAccount>::AccountId: TransactionExtensionInterior,
<Call as Dispatchable>::RuntimeOrigin: From<Option<<V::Signer as IdentifyAccount>::AccountId>>,
{
type Val = ();
type Pre = ();
impl_tx_ext_default!(Call; Context; prepare);
fn validate(
&self,
_origin: <Call as Dispatchable>::RuntimeOrigin,
_call: &Call,
_info: &DispatchInfoOf<Call>,
_len: usize,
_: &mut Context,
_: (),
inherited_implication: &impl Encode,
) -> Result<
(ValidTransaction, Self::Val, <Call as Dispatchable>::RuntimeOrigin),
TransactionValidityError,
> {
let msg = inherited_implication.using_encoded(blake2_256);
if !self.signature.verify(&msg[..], &self.account) {
Err(InvalidTransaction::BadProof)?
}
// We clobber the original origin. Maybe we shuld check that it's none?
let origin = Some(self.account.clone()).into();
Ok((ValidTransaction::default(), (), origin))
}
}
@@ -15,23 +15,24 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0
//! DATE: 2024-03-01 (Y/M/D)
//! HOSTNAME: `runner-bn-ce5rx-project-674-concurrent-0`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz`
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
//! DATE: 2023-06-16 (Y/M/D)
//! HOSTNAME: `runner-e8ezs4ez-project-145-concurrent-0`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz`
//!
//! SHORT-NAME: `block`, LONG-NAME: `BlockExecution`, RUNTIME: `Development`
//! WARMUPS: `10`, REPEAT: `100`
//! WEIGHT-PATH: `./substrate/frame/support/src/weights/`
//! WEIGHT-PATH: `./frame/support/src/weights/`
//! WEIGHT-METRIC: `Average`, WEIGHT-MUL: `1.0`, WEIGHT-ADD: `0`
// Executed Command:
// ./target/production/substrate-node
// ./target/production/substrate
// benchmark
// overhead
// --chain=dev
// --execution=wasm
// --wasm-execution=compiled
// --weight-path=./substrate/frame/support/src/weights/
// --header=./substrate/HEADER-APACHE2
// --weight-path=./frame/support/src/weights/
// --header=./HEADER-APACHE2
// --warmup=10
// --repeat=100
@@ -43,17 +44,17 @@ parameter_types! {
/// Calculated by multiplying the *Average* with `1.0` and adding `0`.
///
/// Stats nanoseconds:
/// Min, Max: 424_332, 493_017
/// Average: 437_118
/// Median: 434_920
/// Std-Dev: 8798.01
/// Min, Max: 376_949, 622_462
/// Average: 390_584
/// Median: 386_322
/// Std-Dev: 24792.0
///
/// Percentiles nanoseconds:
/// 99th: 460_074
/// 95th: 451_580
/// 75th: 440_307
/// 99th: 433_299
/// 95th: 402_688
/// 75th: 391_645
pub const BlockExecutionWeight: Weight =
Weight::from_parts(WEIGHT_REF_TIME_PER_NANOS.saturating_mul(437_118), 0);
Weight::from_parts(WEIGHT_REF_TIME_PER_NANOS.saturating_mul(390_584), 0);
}
#[cfg(test)]
@@ -15,23 +15,24 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0
//! DATE: 2024-03-01 (Y/M/D)
//! HOSTNAME: `runner-bn-ce5rx-project-674-concurrent-0`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz`
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
//! DATE: 2023-06-16 (Y/M/D)
//! HOSTNAME: `runner-e8ezs4ez-project-145-concurrent-0`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz`
//!
//! SHORT-NAME: `extrinsic`, LONG-NAME: `ExtrinsicBase`, RUNTIME: `Development`
//! WARMUPS: `10`, REPEAT: `100`
//! WEIGHT-PATH: `./substrate/frame/support/src/weights/`
//! WEIGHT-PATH: `./frame/support/src/weights/`
//! WEIGHT-METRIC: `Average`, WEIGHT-MUL: `1.0`, WEIGHT-ADD: `0`
// Executed Command:
// ./target/production/substrate-node
// ./target/production/substrate
// benchmark
// overhead
// --chain=dev
// --execution=wasm
// --wasm-execution=compiled
// --weight-path=./substrate/frame/support/src/weights/
// --header=./substrate/HEADER-APACHE2
// --weight-path=./frame/support/src/weights/
// --header=./HEADER-APACHE2
// --warmup=10
// --repeat=100
@@ -43,17 +44,17 @@ parameter_types! {
/// Calculated by multiplying the *Average* with `1.0` and adding `0`.
///
/// Stats nanoseconds:
/// Min, Max: 106_053, 107_403
/// Average: 106_446
/// Median: 106_415
/// Std-Dev: 216.17
/// Min, Max: 123_875, 128_419
/// Average: 124_414
/// Median: 124_332
/// Std-Dev: 497.74
///
/// Percentiles nanoseconds:
/// 99th: 107_042
/// 95th: 106_841
/// 75th: 106_544
/// 99th: 125_245
/// 95th: 124_989
/// 75th: 124_498
pub const ExtrinsicBaseWeight: Weight =
Weight::from_parts(WEIGHT_REF_TIME_PER_NANOS.saturating_mul(106_446), 0);
Weight::from_parts(WEIGHT_REF_TIME_PER_NANOS.saturating_mul(124_414), 0);
}
#[cfg(test)]

Some files were not shown because too many files have changed in this diff Show More