Skip to content
Snippets Groups Projects
Select Git revision
  • 2a46c45bd3efdd3542fdf9cd640fb036d60992ae
  • master default protected
  • network/gdev-800 protected
  • cgeek/issue-297-cpu
  • gdev-800-tests
  • update-docker-compose-rpc-squid-names
  • fix-252
  • 1000i100-test
  • hugo/tmp-0.9.1
  • network/gdev-803 protected
  • hugo/endpoint-gossip
  • network/gdev-802 protected
  • hugo/distance-precompute
  • network/gdev-900 protected
  • tuxmain/anonymous-tx
  • debug/podman
  • hugo/195-doc
  • hugo/195-graphql-schema
  • hugo-tmp-dockerfile-cache
  • release/client-800.2 protected
  • release/runtime-800 protected
  • gdev-900-0.10.1 protected
  • gdev-900-0.10.0 protected
  • gdev-900-0.9.2 protected
  • gdev-800-0.8.0 protected
  • gdev-900-0.9.1 protected
  • gdev-900-0.9.0 protected
  • gdev-803 protected
  • gdev-802 protected
  • runtime-801 protected
  • gdev-800 protected
  • runtime-800-bis protected
  • runtime-800 protected
  • runtime-800-backup protected
  • runtime-701 protected
  • runtime-700 protected
  • runtime-600 protected
  • runtime-500 protected
  • v0.4.1 protected
  • runtime-401 protected
  • v0.4.0 protected
41 results

pallets_config.rs

Blame
  • pallet_quota.rs 4.70 KiB
    
    //! Autogenerated weights for `pallet_quota`
    //!
    //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
    //! DATE: 2023-11-27, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
    //! WORST CASE MAP SIZE: `1000000`
    //! HOSTNAME: `bgallois-ms7d43`, CPU: `12th Gen Intel(R) Core(TM) i3-12100F`
    //! EXECUTION: None, WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024
    
    // Executed Command:
    // ./target/release/duniter
    // benchmark
    // pallet
    // --chain
    // dev
    // --wasm-execution=compiled
    // --pallet
    // pallet-quota
    // --extrinsic
    // *
    // --steps
    // 50
    // --repeat
    // 20
    // --output=runtime/common/src/weights/
    
    #![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_quota`.
    pub struct WeightInfo<T>(PhantomData<T>);
    impl<T: frame_system::Config> pallet_quota::WeightInfo for WeightInfo<T> {
    	/// Storage: Quota RefundQueue (r:1 w:1)
    	/// Proof: Quota RefundQueue (max_values: Some(1), max_size: Some(11266), added: 11761, mode: MaxEncodedLen)
    	fn queue_refund() -> Weight {
    		// Proof Size summary in bytes:
    		//  Measured:  `11288`
    		//  Estimated: `12751`
    		// Minimum execution time: 7_606_000 picoseconds.
    		Weight::from_parts(7_918_000, 0)
    			.saturating_add(Weight::from_parts(0, 12751))
    			.saturating_add(T::DbWeight::get().reads(1))
    			.saturating_add(T::DbWeight::get().writes(1))
    	}
    	/// Storage: Quota IdtyQuota (r:1 w:1)
    	/// Proof: Quota IdtyQuota (max_values: None, max_size: Some(24), added: 2499, mode: MaxEncodedLen)
    	fn spend_quota() -> Weight {
    		// Proof Size summary in bytes:
    		//  Measured:  `139`
    		//  Estimated: `3489`
    		// Minimum execution time: 3_580_000 picoseconds.
    		Weight::from_parts(3_726_000, 0)
    			.saturating_add(Weight::from_parts(0, 3489))
    			.saturating_add(T::DbWeight::get().reads(1))
    			.saturating_add(T::DbWeight::get().writes(1))
    	}
    	/// Storage: Quota IdtyQuota (r:1 w:1)
    	/// Proof: Quota IdtyQuota (max_values: None, max_size: Some(24), added: 2499, mode: MaxEncodedLen)
    	/// Storage: System Account (r:1 w:0)
    	/// Proof: System Account (max_values: None, max_size: Some(126), added: 2601, mode: MaxEncodedLen)
    	fn try_refund() -> Weight {
    		// Proof Size summary in bytes:
    		//  Measured:  `139`
    		//  Estimated: `3591`
    		// Minimum execution time: 11_309_000 picoseconds.
    		Weight::from_parts(11_843_000, 0)
    			.saturating_add(Weight::from_parts(0, 3591))
    			.saturating_add(T::DbWeight::get().reads(2))
    			.saturating_add(T::DbWeight::get().writes(1))
    	}
    	/// Storage: Quota IdtyQuota (r:1 w:1)
    	/// Proof: Quota IdtyQuota (max_values: None, max_size: Some(24), added: 2499, mode: MaxEncodedLen)
    	/// Storage: System Account (r:1 w:0)
    	/// Proof: System Account (max_values: None, max_size: Some(126), added: 2601, mode: MaxEncodedLen)
    	fn do_refund() -> Weight {
    		// Proof Size summary in bytes:
    		//  Measured:  `139`
    		//  Estimated: `3591`
    		// Minimum execution time: 11_283_000 picoseconds.
    		Weight::from_parts(11_694_000, 0)
    			.saturating_add(Weight::from_parts(0, 3591))
    			.saturating_add(T::DbWeight::get().reads(2))
    			.saturating_add(T::DbWeight::get().writes(1))
    	}
    	/// Storage: Quota RefundQueue (r:1 w:1)
    	/// Proof: Quota RefundQueue (max_values: Some(1), max_size: Some(11266), added: 11761, mode: MaxEncodedLen)
    	fn on_process_refund_queue() -> Weight {
    		// Proof Size summary in bytes:
    		//  Measured:  `43`
    		//  Estimated: `12751`
    		// Minimum execution time: 1_456_000 picoseconds.
    		Weight::from_parts(1_569_000, 0)
    			.saturating_add(Weight::from_parts(0, 12751))
    			.saturating_add(T::DbWeight::get().reads(1))
    			.saturating_add(T::DbWeight::get().writes(1))
    	}
    	/// Storage: Quota RefundQueue (r:1 w:1)
    	/// Proof: Quota RefundQueue (max_values: Some(1), max_size: Some(11266), added: 11761, mode: Measured)
    	/// Storage: Quota IdtyQuota (r:1 w:1)
    	/// Proof: Quota IdtyQuota (max_values: None, max_size: Some(24), added: 2499, mode: Measured)
    	/// Storage: System Account (r:1 w:0)
    	/// Proof: System Account (max_values: None, max_size: Some(126), added: 2601, mode: Measured)
    	/// The range of component `i` is `[1, 256]`.
    	fn on_process_refund_queue_elements(i: u32, ) -> Weight {
    		// Proof Size summary in bytes:
    		//  Measured:  `164 + i * (44 ±0)`
    		//  Estimated: `3628 + i * (44 ±0)`
    		// Minimum execution time: 13_671_000 picoseconds.
    		Weight::from_parts(19_531_750, 0)
    			.saturating_add(Weight::from_parts(0, 3628))
    			// Standard Error: 1_057
    			.saturating_add(Weight::from_parts(476_555, 0).saturating_mul(i.into()))
    			.saturating_add(T::DbWeight::get().reads(3))
    			.saturating_add(T::DbWeight::get().writes(2))
    			.saturating_add(Weight::from_parts(0, 44).saturating_mul(i.into()))
    	}
    }