Skip to content
Snippets Groups Projects
Commit 9dd4d886 authored by Hugo Trentesaux's avatar Hugo Trentesaux
Browse files

run benchmarks

parent 93112550
No related branches found
No related tags found
1 merge request!166refac membership renewal
...@@ -14,21 +14,21 @@ ...@@ -14,21 +14,21 @@
// You should have received a copy of the GNU Affero General Public License // You should have received a copy of the GNU Affero General Public License
// along with Duniter-v2S. If not, see <https://www.gnu.org/licenses/>. // along with Duniter-v2S. If not, see <https://www.gnu.org/licenses/>.
//! Autogenerated weights for `common_runtime::certification` //! Autogenerated weights for `pallet_certification`
//! //!
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
//! DATE: 2023-04-05, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` //! DATE: 2023-05-16, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! HOSTNAME: `benjamin-xps139380`, CPU: `Intel(R) Core(TM) i7-8565U CPU @ 1.80GHz` //! HOSTNAME: `Hugo`, CPU: `Intel(R) Core(TM) i7-8565U CPU @ 1.80GHz`
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024 //! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("gdev-benchmark"), DB CACHE: 1024
// Executed Command: // Executed Command:
// ./target/release/duniter // ./target/release/duniter
// benchmark // benchmark
// pallet // pallet
// --chain=dev // --chain=gdev-benchmark
// --steps=50 // --steps=50
// --repeat=20 // --repeat=20
// --pallet=common_runtime::certification // --pallet=pallet-certification
// --extrinsic=* // --extrinsic=*
// --execution=wasm // --execution=wasm
// --wasm-execution=compiled // --wasm-execution=compiled
...@@ -43,7 +43,7 @@ ...@@ -43,7 +43,7 @@
use frame_support::{traits::Get, weights::Weight}; use frame_support::{traits::Get, weights::Weight};
use sp_std::marker::PhantomData; use sp_std::marker::PhantomData;
/// Weight functions for `common_runtime::certification`. /// Weight functions for `pallet_certification`.
pub struct WeightInfo<T>(PhantomData<T>); pub struct WeightInfo<T>(PhantomData<T>);
impl<T: frame_system::Config> pallet_certification::WeightInfo for WeightInfo<T> { impl<T: frame_system::Config> pallet_certification::WeightInfo for WeightInfo<T> {
// Storage: Cert StorageIdtyCertMeta (r:2 w:2) // Storage: Cert StorageIdtyCertMeta (r:2 w:2)
...@@ -51,8 +51,8 @@ impl<T: frame_system::Config> pallet_certification::WeightInfo for WeightInfo<T> ...@@ -51,8 +51,8 @@ impl<T: frame_system::Config> pallet_certification::WeightInfo for WeightInfo<T>
// Storage: Cert StorageCertsRemovableOn (r:1 w:1) // Storage: Cert StorageCertsRemovableOn (r:1 w:1)
// Storage: Cert CertsByReceiver (r:1 w:1) // Storage: Cert CertsByReceiver (r:1 w:1)
fn force_add_cert() -> Weight { fn force_add_cert() -> Weight {
// Minimum execution time: 125_388 nanoseconds. // Minimum execution time: 48_363 nanoseconds.
Weight::from_ref_time(140_411_000 as u64) Weight::from_ref_time(59_125_000 as u64)
.saturating_add(T::DbWeight::get().reads(5 as u64)) .saturating_add(T::DbWeight::get().reads(5 as u64))
.saturating_add(T::DbWeight::get().writes(4 as u64)) .saturating_add(T::DbWeight::get().writes(4 as u64))
} }
...@@ -62,8 +62,8 @@ impl<T: frame_system::Config> pallet_certification::WeightInfo for WeightInfo<T> ...@@ -62,8 +62,8 @@ impl<T: frame_system::Config> pallet_certification::WeightInfo for WeightInfo<T>
// Storage: Cert StorageCertsRemovableOn (r:1 w:1) // Storage: Cert StorageCertsRemovableOn (r:1 w:1)
// Storage: Cert CertsByReceiver (r:1 w:1) // Storage: Cert CertsByReceiver (r:1 w:1)
fn add_cert() -> Weight { fn add_cert() -> Weight {
// Minimum execution time: 147_817 nanoseconds. // Minimum execution time: 57_408 nanoseconds.
Weight::from_ref_time(153_330_000 as u64) Weight::from_ref_time(69_281_000 as u64)
.saturating_add(T::DbWeight::get().reads(7 as u64)) .saturating_add(T::DbWeight::get().reads(7 as u64))
.saturating_add(T::DbWeight::get().writes(4 as u64)) .saturating_add(T::DbWeight::get().writes(4 as u64))
} }
...@@ -72,8 +72,8 @@ impl<T: frame_system::Config> pallet_certification::WeightInfo for WeightInfo<T> ...@@ -72,8 +72,8 @@ impl<T: frame_system::Config> pallet_certification::WeightInfo for WeightInfo<T>
// Storage: Parameters ParametersStorage (r:1 w:0) // Storage: Parameters ParametersStorage (r:1 w:0)
// Storage: Membership Membership (r:1 w:0) // Storage: Membership Membership (r:1 w:0)
fn del_cert() -> Weight { fn del_cert() -> Weight {
// Minimum execution time: 125_695 nanoseconds. // Minimum execution time: 49_562 nanoseconds.
Weight::from_ref_time(150_360_000 as u64) Weight::from_ref_time(61_695_000 as u64)
.saturating_add(T::DbWeight::get().reads(5 as u64)) .saturating_add(T::DbWeight::get().reads(5 as u64))
.saturating_add(T::DbWeight::get().writes(3 as u64)) .saturating_add(T::DbWeight::get().writes(3 as u64))
} }
...@@ -84,10 +84,10 @@ impl<T: frame_system::Config> pallet_certification::WeightInfo for WeightInfo<T> ...@@ -84,10 +84,10 @@ impl<T: frame_system::Config> pallet_certification::WeightInfo for WeightInfo<T>
/// The range of component `i` is `[2, 1000]`. /// The range of component `i` is `[2, 1000]`.
/// The range of component `i` is `[2, 1000]`. /// The range of component `i` is `[2, 1000]`.
fn remove_all_certs_received_by(i: u32, ) -> Weight { fn remove_all_certs_received_by(i: u32, ) -> Weight {
// Minimum execution time: 129_529 nanoseconds. // Minimum execution time: 49_307 nanoseconds.
Weight::from_ref_time(132_136_000 as u64) Weight::from_ref_time(49_926_000 as u64)
// Standard Error: 75_161 // Standard Error: 61_521
.saturating_add(Weight::from_ref_time(38_016_325 as u64).saturating_mul(i as u64)) .saturating_add(Weight::from_ref_time(15_865_456 as u64).saturating_mul(i as u64))
.saturating_add(T::DbWeight::get().reads(3 as u64)) .saturating_add(T::DbWeight::get().reads(3 as u64))
.saturating_add(T::DbWeight::get().reads((1 as u64).saturating_mul(i as u64))) .saturating_add(T::DbWeight::get().reads((1 as u64).saturating_mul(i as u64)))
.saturating_add(T::DbWeight::get().writes(1 as u64)) .saturating_add(T::DbWeight::get().writes(1 as u64))
......
...@@ -14,21 +14,21 @@ ...@@ -14,21 +14,21 @@
// You should have received a copy of the GNU Affero General Public License // You should have received a copy of the GNU Affero General Public License
// along with Duniter-v2S. If not, see <https://www.gnu.org/licenses/>. // along with Duniter-v2S. If not, see <https://www.gnu.org/licenses/>.
//! Autogenerated weights for `common_runtime::certification` //! Autogenerated weights for `pallet_certification`
//! //!
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
//! DATE: 2023-04-05, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` //! DATE: 2023-05-16, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! HOSTNAME: `benjamin-xps139380`, CPU: `Intel(R) Core(TM) i7-8565U CPU @ 1.80GHz` //! HOSTNAME: `Hugo`, CPU: `Intel(R) Core(TM) i7-8565U CPU @ 1.80GHz`
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024 //! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("gdev-benchmark"), DB CACHE: 1024
// Executed Command: // Executed Command:
// ./target/release/duniter // ./target/release/duniter
// benchmark // benchmark
// pallet // pallet
// --chain=dev // --chain=gdev-benchmark
// --steps=50 // --steps=50
// --repeat=20 // --repeat=20
// --pallet=common_runtime::certification // --pallet=pallet-certification
// --extrinsic=* // --extrinsic=*
// --execution=wasm // --execution=wasm
// --wasm-execution=compiled // --wasm-execution=compiled
...@@ -43,7 +43,7 @@ ...@@ -43,7 +43,7 @@
use frame_support::{traits::Get, weights::Weight}; use frame_support::{traits::Get, weights::Weight};
use sp_std::marker::PhantomData; use sp_std::marker::PhantomData;
/// Weight functions for `common_runtime::certification`. /// Weight functions for `pallet_certification`.
pub struct WeightInfo<T>(PhantomData<T>); pub struct WeightInfo<T>(PhantomData<T>);
impl<T: frame_system::Config> pallet_certification::WeightInfo for WeightInfo<T> { impl<T: frame_system::Config> pallet_certification::WeightInfo for WeightInfo<T> {
// Storage: SmithCert StorageIdtyCertMeta (r:2 w:2) // Storage: SmithCert StorageIdtyCertMeta (r:2 w:2)
...@@ -51,8 +51,8 @@ impl<T: frame_system::Config> pallet_certification::WeightInfo for WeightInfo<T> ...@@ -51,8 +51,8 @@ impl<T: frame_system::Config> pallet_certification::WeightInfo for WeightInfo<T>
// Storage: SmithCert StorageCertsRemovableOn (r:1 w:1) // Storage: SmithCert StorageCertsRemovableOn (r:1 w:1)
// Storage: SmithCert CertsByReceiver (r:1 w:1) // Storage: SmithCert CertsByReceiver (r:1 w:1)
fn force_add_cert() -> Weight { fn force_add_cert() -> Weight {
// Minimum execution time: 125_287 nanoseconds. // Minimum execution time: 57_241 nanoseconds.
Weight::from_ref_time(128_059_000 as u64) Weight::from_ref_time(69_631_000 as u64)
.saturating_add(T::DbWeight::get().reads(5 as u64)) .saturating_add(T::DbWeight::get().reads(5 as u64))
.saturating_add(T::DbWeight::get().writes(4 as u64)) .saturating_add(T::DbWeight::get().writes(4 as u64))
} }
...@@ -62,8 +62,8 @@ impl<T: frame_system::Config> pallet_certification::WeightInfo for WeightInfo<T> ...@@ -62,8 +62,8 @@ impl<T: frame_system::Config> pallet_certification::WeightInfo for WeightInfo<T>
// Storage: SmithCert StorageCertsRemovableOn (r:1 w:1) // Storage: SmithCert StorageCertsRemovableOn (r:1 w:1)
// Storage: SmithCert CertsByReceiver (r:1 w:1) // Storage: SmithCert CertsByReceiver (r:1 w:1)
fn add_cert() -> Weight { fn add_cert() -> Weight {
// Minimum execution time: 147_626 nanoseconds. // Minimum execution time: 65_925 nanoseconds.
Weight::from_ref_time(152_571_000 as u64) Weight::from_ref_time(79_971_000 as u64)
.saturating_add(T::DbWeight::get().reads(7 as u64)) .saturating_add(T::DbWeight::get().reads(7 as u64))
.saturating_add(T::DbWeight::get().writes(4 as u64)) .saturating_add(T::DbWeight::get().writes(4 as u64))
} }
...@@ -72,8 +72,8 @@ impl<T: frame_system::Config> pallet_certification::WeightInfo for WeightInfo<T> ...@@ -72,8 +72,8 @@ impl<T: frame_system::Config> pallet_certification::WeightInfo for WeightInfo<T>
// Storage: Parameters ParametersStorage (r:1 w:0) // Storage: Parameters ParametersStorage (r:1 w:0)
// Storage: SmithMembership Membership (r:1 w:0) // Storage: SmithMembership Membership (r:1 w:0)
fn del_cert() -> Weight { fn del_cert() -> Weight {
// Minimum execution time: 126_824 nanoseconds. // Minimum execution time: 50_260 nanoseconds.
Weight::from_ref_time(130_111_000 as u64) Weight::from_ref_time(62_319_000 as u64)
.saturating_add(T::DbWeight::get().reads(5 as u64)) .saturating_add(T::DbWeight::get().reads(5 as u64))
.saturating_add(T::DbWeight::get().writes(3 as u64)) .saturating_add(T::DbWeight::get().writes(3 as u64))
} }
...@@ -84,10 +84,10 @@ impl<T: frame_system::Config> pallet_certification::WeightInfo for WeightInfo<T> ...@@ -84,10 +84,10 @@ impl<T: frame_system::Config> pallet_certification::WeightInfo for WeightInfo<T>
/// The range of component `i` is `[2, 1000]`. /// The range of component `i` is `[2, 1000]`.
/// The range of component `i` is `[2, 1000]`. /// The range of component `i` is `[2, 1000]`.
fn remove_all_certs_received_by(i: u32, ) -> Weight { fn remove_all_certs_received_by(i: u32, ) -> Weight {
// Minimum execution time: 130_926 nanoseconds. // Minimum execution time: 50_222 nanoseconds.
Weight::from_ref_time(133_225_000 as u64) Weight::from_ref_time(50_794_000 as u64)
// Standard Error: 66_989 // Standard Error: 48_765
.saturating_add(Weight::from_ref_time(37_841_523 as u64).saturating_mul(i as u64)) .saturating_add(Weight::from_ref_time(15_587_131 as u64).saturating_mul(i as u64))
.saturating_add(T::DbWeight::get().reads(3 as u64)) .saturating_add(T::DbWeight::get().reads(3 as u64))
.saturating_add(T::DbWeight::get().reads((1 as u64).saturating_mul(i as u64))) .saturating_add(T::DbWeight::get().reads((1 as u64).saturating_mul(i as u64)))
.saturating_add(T::DbWeight::get().writes(1 as u64)) .saturating_add(T::DbWeight::get().writes(1 as u64))
......
// Copyright 2021-2023 Axiom-Team // Copyright 2021-2022 Axiom-Team
// //
// This file is part of Duniter-v2S. // This file is part of Duniter-v2S.
// //
...@@ -14,11 +14,11 @@ ...@@ -14,11 +14,11 @@
// You should have received a copy of the GNU Affero General Public License // You should have received a copy of the GNU Affero General Public License
// along with Duniter-v2S. If not, see <https://www.gnu.org/licenses/>. // along with Duniter-v2S. If not, see <https://www.gnu.org/licenses/>.
//! Autogenerated weights for `common_runtime::identity` //! Autogenerated weights for `pallet_identity`
//! //!
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
//! DATE: 2023-04-03, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` //! DATE: 2023-05-16, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! HOSTNAME: `benjamin-xps139380`, CPU: `Intel(R) Core(TM) i7-8565U CPU @ 1.80GHz` //! HOSTNAME: `Hugo`, CPU: `Intel(R) Core(TM) i7-8565U CPU @ 1.80GHz`
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("gdev-benchmark"), DB CACHE: 1024 //! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("gdev-benchmark"), DB CACHE: 1024
// Executed Command: // Executed Command:
...@@ -28,13 +28,13 @@ ...@@ -28,13 +28,13 @@
// --chain=gdev-benchmark // --chain=gdev-benchmark
// --steps=50 // --steps=50
// --repeat=20 // --repeat=20
// --pallet=common_runtime::identity // --pallet=pallet-identity
// --extrinsic=* // --extrinsic=*
// --execution=wasm // --execution=wasm
// --wasm-execution=compiled // --wasm-execution=compiled
// --heap-pages=4096 // --heap-pages=4096
// --header=./file_header.txt // --header=./file_header.txt
// --output=./runtime/common/src/weights/pallet_identity.rs // --output=./runtime/common/src/weights/
#![cfg_attr(rustfmt, rustfmt_skip)] #![cfg_attr(rustfmt, rustfmt_skip)]
#![allow(unused_parens)] #![allow(unused_parens)]
...@@ -43,7 +43,7 @@ ...@@ -43,7 +43,7 @@
use frame_support::{traits::Get, weights::Weight}; use frame_support::{traits::Get, weights::Weight};
use sp_std::marker::PhantomData; use sp_std::marker::PhantomData;
/// Weight functions for `common_runtime::identity`. /// Weight functions for `pallet_identity`.
pub struct WeightInfo<T>(PhantomData<T>); pub struct WeightInfo<T>(PhantomData<T>);
impl<T: frame_system::Config> pallet_identity::WeightInfo for WeightInfo<T> { impl<T: frame_system::Config> pallet_identity::WeightInfo for WeightInfo<T> {
// Storage: Identity IdentityIndexOf (r:2 w:1) // Storage: Identity IdentityIndexOf (r:2 w:1)
...@@ -57,8 +57,8 @@ impl<T: frame_system::Config> pallet_identity::WeightInfo for WeightInfo<T> { ...@@ -57,8 +57,8 @@ impl<T: frame_system::Config> pallet_identity::WeightInfo for WeightInfo<T> {
// Storage: Cert StorageCertsRemovableOn (r:1 w:1) // Storage: Cert StorageCertsRemovableOn (r:1 w:1)
// Storage: Cert CertsByReceiver (r:1 w:1) // Storage: Cert CertsByReceiver (r:1 w:1)
fn create_identity() -> Weight { fn create_identity() -> Weight {
// Minimum execution time: 440_987 nanoseconds. // Minimum execution time: 121_934 nanoseconds.
Weight::from_ref_time(462_747_000 as u64) Weight::from_ref_time(138_522_000 as u64)
.saturating_add(T::DbWeight::get().reads(13 as u64)) .saturating_add(T::DbWeight::get().reads(13 as u64))
.saturating_add(T::DbWeight::get().writes(11 as u64)) .saturating_add(T::DbWeight::get().writes(11 as u64))
} }
...@@ -70,8 +70,8 @@ impl<T: frame_system::Config> pallet_identity::WeightInfo for WeightInfo<T> { ...@@ -70,8 +70,8 @@ impl<T: frame_system::Config> pallet_identity::WeightInfo for WeightInfo<T> {
// Storage: Parameters ParametersStorage (r:1 w:0) // Storage: Parameters ParametersStorage (r:1 w:0)
// Storage: Membership PendingMembershipsExpireOn (r:1 w:1) // Storage: Membership PendingMembershipsExpireOn (r:1 w:1)
fn confirm_identity() -> Weight { fn confirm_identity() -> Weight {
// Minimum execution time: 186_617 nanoseconds. // Minimum execution time: 86_584 nanoseconds.
Weight::from_ref_time(309_527_000 as u64) Weight::from_ref_time(98_246_000 as u64)
.saturating_add(T::DbWeight::get().reads(7 as u64)) .saturating_add(T::DbWeight::get().reads(7 as u64))
.saturating_add(T::DbWeight::get().writes(4 as u64)) .saturating_add(T::DbWeight::get().writes(4 as u64))
} }
...@@ -84,8 +84,8 @@ impl<T: frame_system::Config> pallet_identity::WeightInfo for WeightInfo<T> { ...@@ -84,8 +84,8 @@ impl<T: frame_system::Config> pallet_identity::WeightInfo for WeightInfo<T> {
// Storage: Membership MembershipsExpireOn (r:1 w:1) // Storage: Membership MembershipsExpireOn (r:1 w:1)
// Storage: UniversalDividend CurrentUdIndex (r:1 w:0) // Storage: UniversalDividend CurrentUdIndex (r:1 w:0)
fn validate_identity() -> Weight { fn validate_identity() -> Weight {
// Minimum execution time: 299_920 nanoseconds. // Minimum execution time: 91_201 nanoseconds.
Weight::from_ref_time(320_025_000 as u64) Weight::from_ref_time(94_836_000 as u64)
.saturating_add(T::DbWeight::get().reads(8 as u64)) .saturating_add(T::DbWeight::get().reads(8 as u64))
.saturating_add(T::DbWeight::get().writes(5 as u64)) .saturating_add(T::DbWeight::get().writes(5 as u64))
} }
...@@ -93,29 +93,29 @@ impl<T: frame_system::Config> pallet_identity::WeightInfo for WeightInfo<T> { ...@@ -93,29 +93,29 @@ impl<T: frame_system::Config> pallet_identity::WeightInfo for WeightInfo<T> {
// Storage: Identity Identities (r:1 w:1) // Storage: Identity Identities (r:1 w:1)
// Storage: SmithMembership Membership (r:1 w:0) // Storage: SmithMembership Membership (r:1 w:0)
// Storage: System BlockHash (r:1 w:0) // Storage: System BlockHash (r:1 w:0)
// Storage: System Account (r:1 w:1) // Storage: System Account (r:2 w:2)
// Storage: AuthorityMembers Members (r:1 w:0) // Storage: AuthorityMembers Members (r:1 w:0)
fn change_owner_key() -> Weight { fn change_owner_key() -> Weight {
// Minimum execution time: 442_260 nanoseconds. // Minimum execution time: 213_666 nanoseconds.
Weight::from_ref_time(728_714_000 as u64) Weight::from_ref_time(247_995_000 as u64)
.saturating_add(T::DbWeight::get().reads(7 as u64)) .saturating_add(T::DbWeight::get().reads(8 as u64))
.saturating_add(T::DbWeight::get().writes(4 as u64)) .saturating_add(T::DbWeight::get().writes(5 as u64))
} }
// Storage: Identity Identities (r:1 w:1) // Storage: Identity Identities (r:1 w:1)
// Storage: SmithMembership Membership (r:1 w:0) // Storage: SmithMembership Membership (r:1 w:0)
// Storage: System BlockHash (r:1 w:0) // Storage: System BlockHash (r:1 w:0)
// Storage: Membership Membership (r:1 w:1) // Storage: Membership Membership (r:1 w:1)
// Storage: Identity CounterForIdentities (r:1 w:1) // Storage: Identity CounterForIdentities (r:1 w:1)
// Storage: System Account (r:1 w:1) // Storage: System Account (r:2 w:2)
// Storage: Cert CertsByReceiver (r:1 w:1) // Storage: Cert CertsByReceiver (r:1 w:1)
// Storage: Cert StorageIdtyCertMeta (r:2 w:2) // Storage: Cert StorageIdtyCertMeta (r:2 w:2)
// Storage: Parameters ParametersStorage (r:1 w:0) // Storage: Parameters ParametersStorage (r:1 w:0)
// Storage: Identity IdentityIndexOf (r:0 w:1) // Storage: Identity IdentityIndexOf (r:0 w:1)
fn revoke_identity() -> Weight { fn revoke_identity() -> Weight {
// Minimum execution time: 494_407 nanoseconds. // Minimum execution time: 227_151 nanoseconds.
Weight::from_ref_time(800_824_000 as u64) Weight::from_ref_time(284_771_000 as u64)
.saturating_add(T::DbWeight::get().reads(10 as u64)) .saturating_add(T::DbWeight::get().reads(11 as u64))
.saturating_add(T::DbWeight::get().writes(8 as u64)) .saturating_add(T::DbWeight::get().writes(9 as u64))
} }
// Storage: Identity Identities (r:1 w:1) // Storage: Identity Identities (r:1 w:1)
// Storage: SmithMembership Membership (r:1 w:0) // Storage: SmithMembership Membership (r:1 w:0)
...@@ -128,24 +128,24 @@ impl<T: frame_system::Config> pallet_identity::WeightInfo for WeightInfo<T> { ...@@ -128,24 +128,24 @@ impl<T: frame_system::Config> pallet_identity::WeightInfo for WeightInfo<T> {
// Storage: Identity IdentityIndexOf (r:0 w:1) // Storage: Identity IdentityIndexOf (r:0 w:1)
// Storage: Identity IdentitiesNames (r:0 w:1) // Storage: Identity IdentitiesNames (r:0 w:1)
fn remove_identity() -> Weight { fn remove_identity() -> Weight {
// Minimum execution time: 302_574 nanoseconds. // Minimum execution time: 110_561 nanoseconds.
Weight::from_ref_time(504_132_000 as u64) Weight::from_ref_time(119_198_000 as u64)
.saturating_add(T::DbWeight::get().reads(9 as u64)) .saturating_add(T::DbWeight::get().reads(9 as u64))
.saturating_add(T::DbWeight::get().writes(9 as u64)) .saturating_add(T::DbWeight::get().writes(9 as u64))
} }
// Storage: Identity IdentitiesNames (r:0 w:20) // Storage: Identity IdentitiesNames (r:0 w:20)
/// The range of component `i` is `[1, 1000]`. /// The range of component `i` is `[1, 1000]`.
fn prune_item_identities_names(i: u32, ) -> Weight { fn prune_item_identities_names(i: u32, ) -> Weight {
// Minimum execution time: 22_533 nanoseconds. // Minimum execution time: 10_675 nanoseconds.
Weight::from_ref_time(282_674_421 as u64) Weight::from_ref_time(10_809_000 as u64)
// Standard Error: 170_391 // Standard Error: 3_281
.saturating_add(Weight::from_ref_time(5_660_460 as u64).saturating_mul(i as u64)) .saturating_add(Weight::from_ref_time(1_492_089 as u64).saturating_mul(i as u64))
.saturating_add(T::DbWeight::get().writes((1 as u64).saturating_mul(i as u64))) .saturating_add(T::DbWeight::get().writes((1 as u64).saturating_mul(i as u64)))
} }
// Storage: System Account (r:1 w:1) // Storage: System Account (r:1 w:1)
fn fix_sufficients() -> Weight { fn fix_sufficients() -> Weight {
// Minimum execution time: 112_793 nanoseconds. // Minimum execution time: 23_639 nanoseconds.
Weight::from_ref_time(122_192_000 as u64) Weight::from_ref_time(29_075_000 as u64)
.saturating_add(T::DbWeight::get().reads(1 as u64)) .saturating_add(T::DbWeight::get().reads(1 as u64))
.saturating_add(T::DbWeight::get().writes(1 as u64)) .saturating_add(T::DbWeight::get().writes(1 as u64))
} }
......
...@@ -17,18 +17,18 @@ ...@@ -17,18 +17,18 @@
//! Autogenerated weights for `pallet_membership` //! Autogenerated weights for `pallet_membership`
//! //!
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
//! DATE: 2023-04-26, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` //! DATE: 2023-05-16, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! HOSTNAME: `benjamin-xps139380`, CPU: `Intel(R) Core(TM) i7-8565U CPU @ 1.80GHz` //! HOSTNAME: `Hugo`, CPU: `Intel(R) Core(TM) i7-8565U CPU @ 1.80GHz`
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024 //! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("gdev-benchmark"), DB CACHE: 1024
// Executed Command: // Executed Command:
// target/release/duniter // ./target/release/duniter
// benchmark // benchmark
// pallet // pallet
// --chain=dev // --chain=gdev-benchmark
// --steps=50 // --steps=50
// --repeat=20 // --repeat=20
// --pallet=pallet_membership // --pallet=pallet-membership
// --extrinsic=* // --extrinsic=*
// --execution=wasm // --execution=wasm
// --wasm-execution=compiled // --wasm-execution=compiled
...@@ -51,16 +51,16 @@ impl<T: frame_system::Config> pallet_membership::WeightInfo for WeightInfo<T> { ...@@ -51,16 +51,16 @@ impl<T: frame_system::Config> pallet_membership::WeightInfo for WeightInfo<T> {
// Storage: Parameters ParametersStorage (r:1 w:0) // Storage: Parameters ParametersStorage (r:1 w:0)
// Storage: Membership PendingMembershipsExpireOn (r:1 w:1) // Storage: Membership PendingMembershipsExpireOn (r:1 w:1)
fn force_request_membership() -> Weight { fn force_request_membership() -> Weight {
// Minimum execution time: 89_725 nanoseconds. // Minimum execution time: 42_024 nanoseconds.
Weight::from_ref_time(98_333_000 as u64) Weight::from_ref_time(55_713_000 as u64)
.saturating_add(T::DbWeight::get().reads(4 as u64)) .saturating_add(T::DbWeight::get().reads(4 as u64))
.saturating_add(T::DbWeight::get().writes(2 as u64)) .saturating_add(T::DbWeight::get().writes(2 as u64))
} }
// Storage: Identity IdentityIndexOf (r:1 w:0) // Storage: Identity IdentityIndexOf (r:1 w:0)
// Storage: Identity Identities (r:1 w:0) // Storage: Identity Identities (r:1 w:0)
fn request_membership() -> Weight { fn request_membership() -> Weight {
// Minimum execution time: 48_477 nanoseconds. // Minimum execution time: 19_511 nanoseconds.
Weight::from_ref_time(50_689_000 as u64) Weight::from_ref_time(37_123_000 as u64)
.saturating_add(T::DbWeight::get().reads(2 as u64)) .saturating_add(T::DbWeight::get().reads(2 as u64))
} }
// Storage: Identity IdentityIndexOf (r:1 w:0) // Storage: Identity IdentityIndexOf (r:1 w:0)
...@@ -71,8 +71,8 @@ impl<T: frame_system::Config> pallet_membership::WeightInfo for WeightInfo<T> { ...@@ -71,8 +71,8 @@ impl<T: frame_system::Config> pallet_membership::WeightInfo for WeightInfo<T> {
// Storage: Membership CounterForMembership (r:1 w:1) // Storage: Membership CounterForMembership (r:1 w:1)
// Storage: Membership MembershipsExpireOn (r:1 w:1) // Storage: Membership MembershipsExpireOn (r:1 w:1)
fn claim_membership() -> Weight { fn claim_membership() -> Weight {
// Minimum execution time: 144_079 nanoseconds. // Minimum execution time: 80_875 nanoseconds.
Weight::from_ref_time(146_565_000 as u64) Weight::from_ref_time(117_287_000 as u64)
.saturating_add(T::DbWeight::get().reads(7 as u64)) .saturating_add(T::DbWeight::get().reads(7 as u64))
.saturating_add(T::DbWeight::get().writes(4 as u64)) .saturating_add(T::DbWeight::get().writes(4 as u64))
} }
...@@ -82,8 +82,8 @@ impl<T: frame_system::Config> pallet_membership::WeightInfo for WeightInfo<T> { ...@@ -82,8 +82,8 @@ impl<T: frame_system::Config> pallet_membership::WeightInfo for WeightInfo<T> {
// Storage: Parameters ParametersStorage (r:1 w:0) // Storage: Parameters ParametersStorage (r:1 w:0)
// Storage: Membership MembershipsExpireOn (r:1 w:1) // Storage: Membership MembershipsExpireOn (r:1 w:1)
fn renew_membership() -> Weight { fn renew_membership() -> Weight {
// Minimum execution time: 120_859 nanoseconds. // Minimum execution time: 69_195 nanoseconds.
Weight::from_ref_time(124_222_000 as u64) Weight::from_ref_time(91_620_000 as u64)
.saturating_add(T::DbWeight::get().reads(5 as u64)) .saturating_add(T::DbWeight::get().reads(5 as u64))
.saturating_add(T::DbWeight::get().writes(2 as u64)) .saturating_add(T::DbWeight::get().writes(2 as u64))
} }
...@@ -93,8 +93,8 @@ impl<T: frame_system::Config> pallet_membership::WeightInfo for WeightInfo<T> { ...@@ -93,8 +93,8 @@ impl<T: frame_system::Config> pallet_membership::WeightInfo for WeightInfo<T> {
// Storage: Identity Identities (r:1 w:0) // Storage: Identity Identities (r:1 w:0)
// Storage: UniversalDividend CurrentUdIndex (r:1 w:0) // Storage: UniversalDividend CurrentUdIndex (r:1 w:0)
fn revoke_membership() -> Weight { fn revoke_membership() -> Weight {
// Minimum execution time: 109_486 nanoseconds. // Minimum execution time: 64_419 nanoseconds.
Weight::from_ref_time(113_303_000 as u64) Weight::from_ref_time(103_812_000 as u64)
.saturating_add(T::DbWeight::get().reads(5 as u64)) .saturating_add(T::DbWeight::get().reads(5 as u64))
.saturating_add(T::DbWeight::get().writes(2 as u64)) .saturating_add(T::DbWeight::get().writes(2 as u64))
} }
......
...@@ -17,18 +17,18 @@ ...@@ -17,18 +17,18 @@
//! Autogenerated weights for `pallet_membership` //! Autogenerated weights for `pallet_membership`
//! //!
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
//! DATE: 2023-04-26, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` //! DATE: 2023-05-16, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! HOSTNAME: `benjamin-xps139380`, CPU: `Intel(R) Core(TM) i7-8565U CPU @ 1.80GHz` //! HOSTNAME: `Hugo`, CPU: `Intel(R) Core(TM) i7-8565U CPU @ 1.80GHz`
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024 //! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("gdev-benchmark"), DB CACHE: 1024
// Executed Command: // Executed Command:
// target/release/duniter // ./target/release/duniter
// benchmark // benchmark
// pallet // pallet
// --chain=dev // --chain=gdev-benchmark
// --steps=50 // --steps=50
// --repeat=20 // --repeat=20
// --pallet=pallet_membership // --pallet=pallet-membership
// --extrinsic=* // --extrinsic=*
// --execution=wasm // --execution=wasm
// --wasm-execution=compiled // --wasm-execution=compiled
...@@ -51,22 +51,17 @@ impl<T: frame_system::Config> pallet_membership::WeightInfo for WeightInfo<T> { ...@@ -51,22 +51,17 @@ impl<T: frame_system::Config> pallet_membership::WeightInfo for WeightInfo<T> {
// Storage: Parameters ParametersStorage (r:1 w:0) // Storage: Parameters ParametersStorage (r:1 w:0)
// Storage: SmithMembership PendingMembershipsExpireOn (r:1 w:1) // Storage: SmithMembership PendingMembershipsExpireOn (r:1 w:1)
fn force_request_membership() -> Weight { fn force_request_membership() -> Weight {
// Minimum execution time: 96_077 nanoseconds. // Minimum execution time: 42_163 nanoseconds.
Weight::from_ref_time(98_570_000 as u64) Weight::from_ref_time(49_619_000 as u64)
.saturating_add(T::DbWeight::get().reads(4 as u64)) .saturating_add(T::DbWeight::get().reads(4 as u64))
.saturating_add(T::DbWeight::get().writes(2 as u64)) .saturating_add(T::DbWeight::get().writes(2 as u64))
} }
// Storage: Identity IdentityIndexOf (r:1 w:0) // Storage: Identity IdentityIndexOf (r:1 w:0)
// Storage: Identity Identities (r:1 w:0) // Storage: Identity Identities (r:1 w:0)
// Storage: SmithMembership PendingMembership (r:1 w:1)
// Storage: SmithMembership Membership (r:1 w:0)
// Storage: Parameters ParametersStorage (r:1 w:0)
// Storage: SmithMembership PendingMembershipsExpireOn (r:1 w:1)
fn request_membership() -> Weight { fn request_membership() -> Weight {
// Minimum execution time: 122_839 nanoseconds. // Minimum execution time: 20_399 nanoseconds.
Weight::from_ref_time(125_861_000 as u64) Weight::from_ref_time(24_906_000 as u64)
.saturating_add(T::DbWeight::get().reads(6 as u64)) .saturating_add(T::DbWeight::get().reads(2 as u64))
.saturating_add(T::DbWeight::get().writes(2 as u64))
} }
// Storage: Identity IdentityIndexOf (r:2 w:0) // Storage: Identity IdentityIndexOf (r:2 w:0)
// Storage: SmithMembership Membership (r:2 w:1) // Storage: SmithMembership Membership (r:2 w:1)
...@@ -76,8 +71,8 @@ impl<T: frame_system::Config> pallet_membership::WeightInfo for WeightInfo<T> { ...@@ -76,8 +71,8 @@ impl<T: frame_system::Config> pallet_membership::WeightInfo for WeightInfo<T> {
// Storage: SmithMembership CounterForMembership (r:1 w:1) // Storage: SmithMembership CounterForMembership (r:1 w:1)
// Storage: SmithMembership MembershipsExpireOn (r:1 w:1) // Storage: SmithMembership MembershipsExpireOn (r:1 w:1)
fn claim_membership() -> Weight { fn claim_membership() -> Weight {
// Minimum execution time: 165_369 nanoseconds. // Minimum execution time: 95_541 nanoseconds.
Weight::from_ref_time(167_607_000 as u64) Weight::from_ref_time(157_882_000 as u64)
.saturating_add(T::DbWeight::get().reads(9 as u64)) .saturating_add(T::DbWeight::get().reads(9 as u64))
.saturating_add(T::DbWeight::get().writes(4 as u64)) .saturating_add(T::DbWeight::get().writes(4 as u64))
} }
...@@ -87,8 +82,8 @@ impl<T: frame_system::Config> pallet_membership::WeightInfo for WeightInfo<T> { ...@@ -87,8 +82,8 @@ impl<T: frame_system::Config> pallet_membership::WeightInfo for WeightInfo<T> {
// Storage: Parameters ParametersStorage (r:1 w:0) // Storage: Parameters ParametersStorage (r:1 w:0)
// Storage: SmithMembership MembershipsExpireOn (r:1 w:1) // Storage: SmithMembership MembershipsExpireOn (r:1 w:1)
fn renew_membership() -> Weight { fn renew_membership() -> Weight {
// Minimum execution time: 121_761 nanoseconds. // Minimum execution time: 70_298 nanoseconds.
Weight::from_ref_time(125_210_000 as u64) Weight::from_ref_time(109_069_000 as u64)
.saturating_add(T::DbWeight::get().reads(5 as u64)) .saturating_add(T::DbWeight::get().reads(5 as u64))
.saturating_add(T::DbWeight::get().writes(2 as u64)) .saturating_add(T::DbWeight::get().writes(2 as u64))
} }
...@@ -103,8 +98,8 @@ impl<T: frame_system::Config> pallet_membership::WeightInfo for WeightInfo<T> { ...@@ -103,8 +98,8 @@ impl<T: frame_system::Config> pallet_membership::WeightInfo for WeightInfo<T> {
// Storage: System Account (r:1 w:1) // Storage: System Account (r:1 w:1)
// Storage: Session KeyOwner (r:0 w:4) // Storage: Session KeyOwner (r:0 w:4)
fn revoke_membership() -> Weight { fn revoke_membership() -> Weight {
// Minimum execution time: 234_173 nanoseconds. // Minimum execution time: 138_537 nanoseconds.
Weight::from_ref_time(239_334_000 as u64) Weight::from_ref_time(179_540_000 as u64)
.saturating_add(T::DbWeight::get().reads(9 as u64)) .saturating_add(T::DbWeight::get().reads(9 as u64))
.saturating_add(T::DbWeight::get().writes(12 as u64)) .saturating_add(T::DbWeight::get().writes(12 as u64))
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment