Skip to content
Snippets Groups Projects
Unverified Commit bd0558e1 authored by bgallois's avatar bgallois
Browse files

fix #174

parent d59546be
No related branches found
No related tags found
1 merge request!252Change distance evaluation period from Sessions to Blocks
......@@ -46,7 +46,7 @@ use sp_std::prelude::*;
type IdtyIndex = u32;
/// Maximum number of identities to be evaluated in an evaluation period.
pub const MAX_EVALUATIONS_PER_SESSION: u32 = 600;
pub const MAX_EVALUATIONS_PER_SESSION: u32 = 1_300; // See https://git.duniter.org/nodes/rust/duniter-v2s/-/merge_requests/252
/// Maximum number of evaluators in an evaluation period.
pub const MAX_EVALUATORS_PER_SESSION: u32 = 100;
......
......@@ -17,7 +17,7 @@
//! Autogenerated weights for `pallet_distance`
//!
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0
//! DATE: 2024-02-27, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! DATE: 2024-03-04, 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`
//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("dev")`, DB CACHE: 1024
......@@ -29,7 +29,7 @@
// --chain=dev
// --steps=50
// --repeat=20
// --pallet=pallet-distance
// --pallet=pallet_distance
// --extrinsic=*
// --wasm-execution=compiled
// --heap-pages=4096
......@@ -69,8 +69,8 @@ impl<T: frame_system::Config> pallet_distance::WeightInfo for WeightInfo<T> {
// Proof Size summary in bytes:
// Measured: `1119`
// Estimated: `4584`
// Minimum execution time: 40_278_000 picoseconds.
Weight::from_parts(41_411_000, 0)
// Minimum execution time: 42_189_000 picoseconds.
Weight::from_parts(43_730_000, 0)
.saturating_add(Weight::from_parts(0, 4584))
.saturating_add(T::DbWeight::get().reads(9))
.saturating_add(T::DbWeight::get().writes(3))
......@@ -97,8 +97,8 @@ impl<T: frame_system::Config> pallet_distance::WeightInfo for WeightInfo<T> {
// Proof Size summary in bytes:
// Measured: `1148`
// Estimated: `7088`
// Minimum execution time: 42_131_000 picoseconds.
Weight::from_parts(43_903_000, 0)
// Minimum execution time: 44_518_000 picoseconds.
Weight::from_parts(45_839_000, 0)
.saturating_add(Weight::from_parts(0, 7088))
.saturating_add(T::DbWeight::get().reads(10))
.saturating_add(T::DbWeight::get().writes(3))
......@@ -115,16 +115,16 @@ impl<T: frame_system::Config> pallet_distance::WeightInfo for WeightInfo<T> {
/// Proof: `Distance::CurrentPoolIndex` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// Storage: `Distance::EvaluationPool0` (r:1 w:1)
/// Proof: `Distance::EvaluationPool0` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// The range of component `i` is `[1, 600]`.
/// The range of component `i` is `[1, 1300]`.
fn update_evaluation(i: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `402 + i * (10 ±0)`
// Estimated: `1886 + i * (10 ±0)`
// Minimum execution time: 12_079_000 picoseconds.
Weight::from_parts(14_113_350, 0)
.saturating_add(Weight::from_parts(0, 1886))
// Standard Error: 368
.saturating_add(Weight::from_parts(101_595, 0).saturating_mul(i.into()))
// Estimated: `1887 + i * (10 ±0)`
// Minimum execution time: 12_657_000 picoseconds.
Weight::from_parts(13_883_896, 0)
.saturating_add(Weight::from_parts(0, 1887))
// Standard Error: 454
.saturating_add(Weight::from_parts(105_327, 0).saturating_mul(i.into()))
.saturating_add(T::DbWeight::get().reads(6))
.saturating_add(T::DbWeight::get().writes(3))
.saturating_add(Weight::from_parts(0, 10).saturating_mul(i.into()))
......@@ -133,16 +133,16 @@ impl<T: frame_system::Config> pallet_distance::WeightInfo for WeightInfo<T> {
/// Proof: `Distance::CurrentPoolIndex` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// Storage: `Distance::EvaluationPool0` (r:1 w:1)
/// Proof: `Distance::EvaluationPool0` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// The range of component `i` is `[1, 600]`.
/// The range of component `i` is `[1, 1300]`.
fn force_update_evaluation(i: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `139 + i * (10 ±0)`
// Estimated: `1623 + i * (10 ±0)`
// Minimum execution time: 5_304_000 picoseconds.
Weight::from_parts(6_358_633, 0)
.saturating_add(Weight::from_parts(0, 1623))
// Standard Error: 1_291
.saturating_add(Weight::from_parts(109_183, 0).saturating_mul(i.into()))
// Estimated: `1624 + i * (10 ±0)`
// Minimum execution time: 5_495_000 picoseconds.
Weight::from_parts(7_434_546, 0)
.saturating_add(Weight::from_parts(0, 1624))
// Standard Error: 245
.saturating_add(Weight::from_parts(101_180, 0).saturating_mul(i.into()))
.saturating_add(T::DbWeight::get().reads(2))
.saturating_add(T::DbWeight::get().writes(1))
.saturating_add(Weight::from_parts(0, 10).saturating_mul(i.into()))
......@@ -159,8 +159,8 @@ impl<T: frame_system::Config> pallet_distance::WeightInfo for WeightInfo<T> {
// Proof Size summary in bytes:
// Measured: `609`
// Estimated: `6549`
// Minimum execution time: 24_868_000 picoseconds.
Weight::from_parts(26_575_000, 0)
// Minimum execution time: 26_542_000 picoseconds.
Weight::from_parts(27_508_000, 0)
.saturating_add(Weight::from_parts(0, 6549))
.saturating_add(T::DbWeight::get().reads(5))
.saturating_add(T::DbWeight::get().writes(3))
......@@ -169,8 +169,8 @@ impl<T: frame_system::Config> pallet_distance::WeightInfo for WeightInfo<T> {
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `0`
// Minimum execution time: 130_000 picoseconds.
Weight::from_parts(158_000, 0)
// Minimum execution time: 139_000 picoseconds.
Weight::from_parts(176_000, 0)
.saturating_add(Weight::from_parts(0, 0))
}
/// Storage: `System::ParentHash` (r:1 w:0)
......@@ -195,8 +195,8 @@ impl<T: frame_system::Config> pallet_distance::WeightInfo for WeightInfo<T> {
// Proof Size summary in bytes:
// Measured: `973`
// Estimated: `6913`
// Minimum execution time: 42_195_000 picoseconds.
Weight::from_parts(43_925_000, 0)
// Minimum execution time: 41_828_000 picoseconds.
Weight::from_parts(43_616_000, 0)
.saturating_add(Weight::from_parts(0, 6913))
.saturating_add(T::DbWeight::get().reads(9))
.saturating_add(T::DbWeight::get().writes(7))
......@@ -215,8 +215,8 @@ impl<T: frame_system::Config> pallet_distance::WeightInfo for WeightInfo<T> {
// Proof Size summary in bytes:
// Measured: `364`
// Estimated: `3829`
// Minimum execution time: 21_868_000 picoseconds.
Weight::from_parts(22_858_000, 0)
// Minimum execution time: 21_914_000 picoseconds.
Weight::from_parts(22_609_000, 0)
.saturating_add(Weight::from_parts(0, 3829))
.saturating_add(T::DbWeight::get().reads(4))
.saturating_add(T::DbWeight::get().writes(4))
......@@ -231,8 +231,8 @@ impl<T: frame_system::Config> pallet_distance::WeightInfo for WeightInfo<T> {
// Proof Size summary in bytes:
// Measured: `109`
// Estimated: `1594`
// Minimum execution time: 2_484_000 picoseconds.
Weight::from_parts(2_740_000, 0)
// Minimum execution time: 2_666_000 picoseconds.
Weight::from_parts(2_865_000, 0)
.saturating_add(Weight::from_parts(0, 1594))
.saturating_add(T::DbWeight::get().reads(2))
.saturating_add(T::DbWeight::get().writes(1))
......@@ -243,8 +243,8 @@ impl<T: frame_system::Config> pallet_distance::WeightInfo for WeightInfo<T> {
// Proof Size summary in bytes:
// Measured: `133`
// Estimated: `1618`
// Minimum execution time: 2_312_000 picoseconds.
Weight::from_parts(2_562_000, 0)
// Minimum execution time: 2_473_000 picoseconds.
Weight::from_parts(2_729_000, 0)
.saturating_add(Weight::from_parts(0, 1618))
.saturating_add(T::DbWeight::get().reads(1))
.saturating_add(T::DbWeight::get().writes(1))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment