1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114
//! Autogenerated weights for `pallet_permissions`
//!
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0
//! DATE: 2024-06-24, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! WORST CASE MAP SIZE: `1000000`
//! HOSTNAME: `runner`, CPU: `AMD EPYC 7763 64-Core Processor`
//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("centrifuge-local")`, DB CACHE: 1024
// Executed Command:
// target/release/centrifuge-chain
// benchmark
// pallet
// --chain=centrifuge-local
// --steps=50
// --repeat=20
// --pallet=pallet_permissions
// --extrinsic=*
// --wasm-execution=compiled
// --heap-pages=4096
// --output=/tmp/runtime/centrifuge/src/weights/pallet_permissions.rs
#![cfg_attr(rustfmt, rustfmt_skip)]
#![allow(unused_parens)]
#![allow(unused_imports)]
#![allow(missing_docs)]
use frame_support::{traits::Get, weights::Weight};
use core::marker::PhantomData;
/// Weight functions for `pallet_permissions`.
pub struct WeightInfo<T>(PhantomData<T>);
impl<T: frame_system::Config> pallet_permissions::WeightInfo for WeightInfo<T> {
/// Storage: `Permissions::PermissionCount` (r:1 w:1)
/// Proof: `Permissions::PermissionCount` (`max_values`: None, `max_size`: Some(46), added: 2521, mode: `MaxEncodedLen`)
/// Storage: `Permissions::Permission` (r:1 w:1)
/// Proof: `Permissions::Permission` (`max_values`: None, `max_size`: Some(228), added: 2703, mode: `MaxEncodedLen`)
fn add_as_admin() -> Weight {
// Proof Size summary in bytes:
// Measured: `3`
// Estimated: `3693`
// Minimum execution time: 16_381_000 picoseconds.
Weight::from_parts(17_563_000, 0)
.saturating_add(Weight::from_parts(0, 3693))
.saturating_add(T::DbWeight::get().reads(2))
.saturating_add(T::DbWeight::get().writes(2))
}
/// Storage: `Permissions::Permission` (r:2 w:1)
/// Proof: `Permissions::Permission` (`max_values`: None, `max_size`: Some(228), added: 2703, mode: `MaxEncodedLen`)
/// Storage: `Permissions::PermissionCount` (r:1 w:1)
/// Proof: `Permissions::PermissionCount` (`max_values`: None, `max_size`: Some(46), added: 2521, mode: `MaxEncodedLen`)
fn add_as_editor() -> Weight {
// Proof Size summary in bytes:
// Measured: `162`
// Estimated: `6396`
// Minimum execution time: 23_815_000 picoseconds.
Weight::from_parts(24_586_000, 0)
.saturating_add(Weight::from_parts(0, 6396))
.saturating_add(T::DbWeight::get().reads(3))
.saturating_add(T::DbWeight::get().writes(2))
}
/// Storage: `Permissions::PermissionCount` (r:1 w:1)
/// Proof: `Permissions::PermissionCount` (`max_values`: None, `max_size`: Some(46), added: 2521, mode: `MaxEncodedLen`)
/// Storage: `Permissions::Permission` (r:1 w:1)
/// Proof: `Permissions::Permission` (`max_values`: None, `max_size`: Some(228), added: 2703, mode: `MaxEncodedLen`)
fn remove_as_admin() -> Weight {
// Proof Size summary in bytes:
// Measured: `162`
// Estimated: `3693`
// Minimum execution time: 19_688_000 picoseconds.
Weight::from_parts(20_328_000, 0)
.saturating_add(Weight::from_parts(0, 3693))
.saturating_add(T::DbWeight::get().reads(2))
.saturating_add(T::DbWeight::get().writes(2))
}
/// Storage: `Permissions::Permission` (r:2 w:1)
/// Proof: `Permissions::Permission` (`max_values`: None, `max_size`: Some(228), added: 2703, mode: `MaxEncodedLen`)
/// Storage: `Permissions::PermissionCount` (r:1 w:1)
/// Proof: `Permissions::PermissionCount` (`max_values`: None, `max_size`: Some(46), added: 2521, mode: `MaxEncodedLen`)
fn remove_as_editor() -> Weight {
// Proof Size summary in bytes:
// Measured: `256`
// Estimated: `6396`
// Minimum execution time: 25_828_000 picoseconds.
Weight::from_parts(26_590_000, 0)
.saturating_add(Weight::from_parts(0, 6396))
.saturating_add(T::DbWeight::get().reads(3))
.saturating_add(T::DbWeight::get().writes(2))
}
/// Storage: `Permissions::Permission` (r:1 w:1)
/// Proof: `Permissions::Permission` (`max_values`: None, `max_size`: Some(228), added: 2703, mode: `MaxEncodedLen`)
fn purge() -> Weight {
// Proof Size summary in bytes:
// Measured: `146`
// Estimated: `3693`
// Minimum execution time: 16_581_000 picoseconds.
Weight::from_parts(17_122_000, 0)
.saturating_add(Weight::from_parts(0, 3693))
.saturating_add(T::DbWeight::get().reads(1))
.saturating_add(T::DbWeight::get().writes(1))
}
/// Storage: `Permissions::Permission` (r:1 w:1)
/// Proof: `Permissions::Permission` (`max_values`: None, `max_size`: Some(228), added: 2703, mode: `MaxEncodedLen`)
fn admin_purge() -> Weight {
// Proof Size summary in bytes:
// Measured: `146`
// Estimated: `3693`
// Minimum execution time: 16_941_000 picoseconds.
Weight::from_parts(17_493_000, 0)
.saturating_add(Weight::from_parts(0, 3693))
.saturating_add(T::DbWeight::get().reads(1))
.saturating_add(T::DbWeight::get().writes(1))
}
}