Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Duniter v2S
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Monitor
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
nodes
rust
Duniter v2S
Commits
5af631ab
Commit
5af631ab
authored
1 year ago
by
Hugo Trentesaux
Browse files
Options
Downloads
Patches
Plain Diff
fix weight info
parent
6917cb0f
No related branches found
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
pallets/distance/src/lib.rs
+2
-2
2 additions, 2 deletions
pallets/distance/src/lib.rs
pallets/distance/src/weights.rs
+48
-68
48 additions, 68 deletions
pallets/distance/src/weights.rs
runtime/common/src/weights/pallet_distance.rs
+105
-52
105 additions, 52 deletions
runtime/common/src/weights/pallet_distance.rs
with
155 additions
and
122 deletions
pallets/distance/src/lib.rs
+
2
−
2
View file @
5af631ab
...
@@ -259,7 +259,7 @@ pub mod pallet {
...
@@ -259,7 +259,7 @@ pub mod pallet {
/// Request target identity to be evaluated
/// Request target identity to be evaluated
/// only possible for unvalidated identity
/// only possible for unvalidated identity
#[pallet::call_index(
4
)]
#[pallet::call_index(
4
)]
#[pallet::weight(
<
T
as
pallet::Config
>
::WeightInfo::request_distance_evaluation())]
#[pallet::weight(
<
T
as
pallet::Config
>
::WeightInfo::request_distance_evaluation
_for
())]
pub
fn
request_distance_evaluation_for
(
pub
fn
request_distance_evaluation_for
(
origin
:
OriginFor
<
T
>
,
origin
:
OriginFor
<
T
>
,
target
:
T
::
IdtyIndex
,
target
:
T
::
IdtyIndex
,
...
@@ -317,7 +317,7 @@ pub mod pallet {
...
@@ -317,7 +317,7 @@ pub mod pallet {
/// when the evaluation completes.
/// when the evaluation completes.
/// * `status.1` is the status of the evaluation.
/// * `status.1` is the status of the evaluation.
#[pallet::call_index(
3
)]
#[pallet::call_index(
3
)]
#[pallet::weight(
<
T
as
pallet::Config
>
::WeightInfo::force_
set
_distance_status())]
#[pallet::weight(
<
T
as
pallet::Config
>
::WeightInfo::force_
valid
_distance_status())]
pub
fn
force_valid_distance_status
(
pub
fn
force_valid_distance_status
(
origin
:
OriginFor
<
T
>
,
origin
:
OriginFor
<
T
>
,
identity
:
<
T
as
pallet_identity
::
Config
>
::
IdtyIndex
,
identity
:
<
T
as
pallet_identity
::
Config
>
::
IdtyIndex
,
...
...
This diff is collapsed.
Click to expand it.
pallets/distance/src/weights.rs
+
48
−
68
View file @
5af631ab
...
@@ -20,102 +20,82 @@ use frame_support::weights::{constants::RocksDbWeight, Weight};
...
@@ -20,102 +20,82 @@ use frame_support::weights::{constants::RocksDbWeight, Weight};
pub
trait
WeightInfo
{
pub
trait
WeightInfo
{
fn
request_distance_evaluation
()
->
Weight
;
fn
request_distance_evaluation
()
->
Weight
;
fn
request_distance_evaluation_for
()
->
Weight
;
fn
update_evaluation
(
i
:
u32
)
->
Weight
;
fn
update_evaluation
(
i
:
u32
)
->
Weight
;
fn
force_update_evaluation
(
i
:
u32
)
->
Weight
;
fn
force_update_evaluation
(
i
:
u32
)
->
Weight
;
fn
force_
set
_distance_status
()
->
Weight
;
fn
force_
valid
_distance_status
()
->
Weight
;
fn
on_finalize
()
->
Weight
;
fn
on_finalize
()
->
Weight
;
}
}
// Insecure weights implementation, use it for tests only!
// Insecure weights implementation, use it for tests only!
impl
WeightInfo
for
()
{
impl
WeightInfo
for
()
{
/// Storage: Identity IdentityIndexOf (r:1 w:0)
/// Proof Skipped: Identity IdentityIndexOf (max_values: None, max_size: None, mode: Measured)
/// Storage: Distance IdentityDistanceStatus (r:1 w:1)
/// Proof Skipped: Distance IdentityDistanceStatus (max_values: None, 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: Distance EvaluationPool2 (r:1 w:1)
/// Proof Skipped: Distance EvaluationPool2 (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(121), added: 2596, mode: MaxEncodedLen)
/// Storage: Distance DistanceStatusExpireOn (r:1 w:1)
/// Proof Skipped: Distance DistanceStatusExpireOn (max_values: None, max_size: None, mode: Measured)
fn
request_distance_evaluation
()
->
Weight
{
fn
request_distance_evaluation
()
->
Weight
{
// Proof Size summary in bytes:
// Proof Size summary in bytes:
// Measured: `935`
// Measured: `1280`
// Estimated: `4400`
// Estimated: `4745`
// Minimum execution time: 28_469_000 picoseconds.
// Minimum execution time: 876_053_000 picoseconds.
Weight
::
from_parts
(
30_905_000
,
0
)
Weight
::
from_parts
(
898_445_000
,
0
)
.saturating_add
(
Weight
::
from_parts
(
0
,
4400
))
.saturating_add
(
Weight
::
from_parts
(
0
,
4745
))
.saturating_add
(
RocksDbWeight
::
get
()
.reads
(
6
))
.saturating_add
(
RocksDbWeight
::
get
()
.reads
(
8
))
.saturating_add
(
RocksDbWeight
::
get
()
.writes
(
4
))
.saturating_add
(
RocksDbWeight
::
get
()
.writes
(
3
))
}
fn
request_distance_evaluation_for
()
->
Weight
{
// Proof Size summary in bytes:
// Measured: `1485`
// Estimated: `7425`
// Minimum execution time: 1_118_982_000 picoseconds.
Weight
::
from_parts
(
1_292_782_000
,
0
)
.saturating_add
(
Weight
::
from_parts
(
0
,
7425
))
.saturating_add
(
RocksDbWeight
::
get
()
.reads
(
10
))
.saturating_add
(
RocksDbWeight
::
get
()
.writes
(
3
))
}
}
/// Storage: Distance DidUpdate (r:1 w:1)
/// Proof Skipped: Distance DidUpdate (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: Authorship Author (r:1 w:1)
/// Proof: Authorship Author (max_values: Some(1), max_size: Some(32), added: 527, mode: MaxEncodedLen)
/// Storage: System Digest (r:1 w:0)
/// Proof Skipped: System Digest (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: Distance EvaluationPool0 (r:1 w:1)
/// Proof Skipped: Distance EvaluationPool0 (max_values: Some(1), max_size: None, mode: Measured)
/// The range of component `i` is `[1, 600]`.
fn
update_evaluation
(
i
:
u32
)
->
Weight
{
fn
update_evaluation
(
i
:
u32
)
->
Weight
{
// Proof Size summary in bytes:
// Proof Size summary in bytes:
// Measured: `7
44
+ i * (10 ±0)`
// Measured: `7
73
+ i * (10 ±0)`
// Estimated: `22
28
+ i * (10 ±0)`
// Estimated: `22
56
+ i * (10 ±0)`
// Minimum execution time:
1
3_87
0
_000 picoseconds.
// Minimum execution time:
46
3_87
8
_000 picoseconds.
Weight
::
from_parts
(
17_116_7
48
,
0
)
Weight
::
from_parts
(
743_823_5
48
,
0
)
.saturating_add
(
Weight
::
from_parts
(
0
,
22
28
))
.saturating_add
(
Weight
::
from_parts
(
0
,
22
56
))
// Standard Error:
68
4
// Standard Error:
292_14
4
.saturating_add
(
Weight
::
from_parts
(
1
28_98
9
,
0
)
.saturating_mul
(
i
.into
()))
.saturating_add
(
Weight
::
from_parts
(
1
_326_63
9
,
0
)
.saturating_mul
(
i
.into
()))
.saturating_add
(
RocksDbWeight
::
get
()
.reads
(
5
))
.saturating_add
(
RocksDbWeight
::
get
()
.reads
(
6
))
.saturating_add
(
RocksDbWeight
::
get
()
.writes
(
3
))
.saturating_add
(
RocksDbWeight
::
get
()
.writes
(
3
))
.saturating_add
(
Weight
::
from_parts
(
0
,
10
)
.saturating_mul
(
i
.into
()))
.saturating_add
(
Weight
::
from_parts
(
0
,
10
)
.saturating_mul
(
i
.into
()))
}
}
/// Storage: Session CurrentIndex (r:1 w:0)
/// Proof Skipped: Session CurrentIndex (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: Distance EvaluationPool0 (r:1 w:1)
/// Proof Skipped: Distance EvaluationPool0 (max_values: Some(1), max_size: None, mode: Measured)
/// The range of component `i` is `[1, 600]`.
fn
force_update_evaluation
(
i
:
u32
)
->
Weight
{
fn
force_update_evaluation
(
i
:
u32
)
->
Weight
{
// Proof Size summary in bytes:
// Proof Size summary in bytes:
// Measured: `612 + i * (10 ±0)`
// Measured: `612 + i * (10 ±0)`
// Estimated: `209
6
+ i * (10 ±0)`
// Estimated: `209
5
+ i * (10 ±0)`
// Minimum execution time:
8_39
2_000 picoseconds.
// Minimum execution time:
208_81
2_000 picoseconds.
Weight
::
from_parts
(
10_825_908
,
0
)
Weight
::
from_parts
(
257_150_521
,
0
)
.saturating_add
(
Weight
::
from_parts
(
0
,
209
6
))
.saturating_add
(
Weight
::
from_parts
(
0
,
209
5
))
// Standard Error:
32
6
// Standard Error:
53_36
6
.saturating_add
(
Weight
::
from_parts
(
1
23_200
,
0
)
.saturating_mul
(
i
.into
()))
.saturating_add
(
Weight
::
from_parts
(
1
_841_329
,
0
)
.saturating_mul
(
i
.into
()))
.saturating_add
(
RocksDbWeight
::
get
()
.reads
(
2
))
.saturating_add
(
RocksDbWeight
::
get
()
.reads
(
2
))
.saturating_add
(
RocksDbWeight
::
get
()
.writes
(
1
))
.saturating_add
(
RocksDbWeight
::
get
()
.writes
(
1
))
.saturating_add
(
Weight
::
from_parts
(
0
,
10
)
.saturating_mul
(
i
.into
()))
.saturating_add
(
Weight
::
from_parts
(
0
,
10
)
.saturating_mul
(
i
.into
()))
}
}
/// Storage: Session CurrentIndex (r:1 w:0)
/// Proof Skipped: Session CurrentIndex (max_values: Some(1), max_size: None, mode: Measured)
fn
force_valid_distance_status
()
->
Weight
{
/// Storage: Distance DistanceStatusExpireOn (r:1 w:1)
/// Proof Skipped: Distance DistanceStatusExpireOn (max_values: None, max_size: None, mode: Measured)
/// Storage: Distance IdentityDistanceStatus (r:0 w:1)
/// Proof Skipped: Distance IdentityDistanceStatus (max_values: None, max_size: None, mode: Measured)
fn
force_set_distance_status
()
->
Weight
{
// Proof Size summary in bytes:
// Proof Size summary in bytes:
// Measured: `
586
`
// Measured: `
1181
`
// Estimated: `
405
1`
// Estimated: `
712
1`
// Minimum execution time: 8
_099
_000 picoseconds.
// Minimum execution time: 8
73_892
_000 picoseconds.
Weight
::
from_parts
(
8_786
_000
,
0
)
Weight
::
from_parts
(
1_081_510
_000
,
0
)
.saturating_add
(
Weight
::
from_parts
(
0
,
405
1
))
.saturating_add
(
Weight
::
from_parts
(
0
,
712
1
))
.saturating_add
(
RocksDbWeight
::
get
()
.reads
(
2
))
.saturating_add
(
RocksDbWeight
::
get
()
.reads
(
7
))
.saturating_add
(
RocksDbWeight
::
get
()
.writes
(
2
))
.saturating_add
(
RocksDbWeight
::
get
()
.writes
(
5
))
}
}
/// Storage: Distance DidUpdate (r:1 w:1)
/// Proof Skipped: Distance DidUpdate (max_values: Some(1), max_size: None, mode: Measured)
fn
on_finalize
()
->
Weight
{
fn
on_finalize
()
->
Weight
{
// Proof Size summary in bytes:
// Proof Size summary in bytes:
// Measured: `170`
// Measured: `170`
// Estimated: `1655`
// Estimated: `1655`
// Minimum execution time: 3_
904
_000 picoseconds.
// Minimum execution time:
9
3_
595
_000 picoseconds.
Weight
::
from_parts
(
4_132
_000
,
0
)
Weight
::
from_parts
(
109_467
_000
,
0
)
.saturating_add
(
Weight
::
from_parts
(
0
,
1655
))
.saturating_add
(
Weight
::
from_parts
(
0
,
1655
))
.saturating_add
(
RocksDbWeight
::
get
()
.reads
(
1
))
.saturating_add
(
RocksDbWeight
::
get
()
.reads
(
1
))
.saturating_add
(
RocksDbWeight
::
get
()
.writes
(
1
))
.saturating_add
(
RocksDbWeight
::
get
()
.writes
(
1
))
...
...
This diff is collapsed.
Click to expand it.
runtime/common/src/weights/pallet_distance.rs
+
105
−
52
View file @
5af631ab
// Copyright 2021-2022 Axiom-Team
//
// This file is part of Duniter-v2S.
//
// Duniter-v2S is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as published by
// the Free Software Foundation, version 3 of the License.
//
// Duniter-v2S is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Affero General Public License for more details.
//
// 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/>.
//! Autogenerated weights for `pallet_distance`
//! Autogenerated weights for `pallet_distance`
//!
//!
//! 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-1
1
-2
2
, STEPS: `
50
`, REPEAT: `
20
`, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! DATE: 2023-1
2
-2
0
, STEPS: `
8
`, REPEAT: `
4
`, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! WORST CASE MAP SIZE: `1000000`
//! WORST CASE MAP SIZE: `1000000`
//! HOSTNAME: `
bgallois-ms7d43`, CPU: `12th Gen Intel(R) Core(TM) i3-12100F
`
//! HOSTNAME: `
squirrel`, CPU: `Intel(R) Core(TM) i7-8565U CPU @ 1.80GHz
`
//! EXECUTION:
None
, WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024
//! EXECUTION:
Some(Wasm)
, WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024
// Executed Command:
// Executed Command:
// ./target/
release
/duniter
// ./target/
debug
/duniter
// benchmark
// benchmark
// pallet
// pallet
// --chain
// --chain=dev
// dev
// --steps=8
// --repeat=4
// --pallet=pallet-distance
// --extrinsic=*
// --execution=wasm
// --wasm-execution=compiled
// --wasm-execution=compiled
// --pallet
// --heap-pages=4096
// *
// --header=./file_header.txt
// --extrinsic
// --output=./runtime/common/src/weights/
// *
// --steps
// 50
// --repeat
// 20
// --output=runtime/common/src/weights/
#![cfg_attr(rustfmt,
rustfmt_skip)]
#![cfg_attr(rustfmt,
rustfmt_skip)]
#![allow(unused_parens)]
#![allow(unused_parens)]
...
@@ -37,25 +50,57 @@ pub struct WeightInfo<T>(PhantomData<T>);
...
@@ -37,25 +50,57 @@ pub struct WeightInfo<T>(PhantomData<T>);
impl
<
T
:
frame_system
::
Config
>
pallet_distance
::
WeightInfo
for
WeightInfo
<
T
>
{
impl
<
T
:
frame_system
::
Config
>
pallet_distance
::
WeightInfo
for
WeightInfo
<
T
>
{
/// Storage: Identity IdentityIndexOf (r:1 w:0)
/// Storage: Identity IdentityIndexOf (r:1 w:0)
/// Proof Skipped: Identity IdentityIndexOf (max_values: None, max_size: None, mode: Measured)
/// Proof Skipped: Identity IdentityIndexOf (max_values: None, max_size: None, mode: Measured)
/// Storage: Distance IdentityDistanceStatus (r:1 w:1)
/// Storage: Distance PendingEvaluationRequest (r:1 w:1)
/// Proof Skipped: Distance IdentityDistanceStatus (max_values: None, max_size: None, mode: Measured)
/// Proof Skipped: Distance PendingEvaluationRequest (max_values: None, max_size: None, mode: Measured)
/// Storage: Distance ValidEvaluationResult (r:1 w:0)
/// Proof Skipped: Distance ValidEvaluationResult (max_values: None, max_size: None, mode: Measured)
/// Storage: Cert StorageIdtyCertMeta (r:1 w:0)
/// Proof Skipped: Cert StorageIdtyCertMeta (max_values: None, max_size: None, mode: Measured)
/// Storage: Parameters ParametersStorage (r:1 w:0)
/// Proof Skipped: Parameters ParametersStorage (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: Session CurrentIndex (r:1 w:0)
/// Storage: Session CurrentIndex (r:1 w:0)
/// Proof Skipped: Session CurrentIndex (max_values: Some(1), max_size: None, mode: Measured)
/// Proof Skipped: Session CurrentIndex (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: Distance EvaluationPool2 (r:1 w:1)
/// Storage: Distance EvaluationPool2 (r:1 w:1)
/// Proof Skipped: Distance EvaluationPool2 (max_values: Some(1), max_size: None, mode: Measured)
/// Proof Skipped: Distance EvaluationPool2 (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: System Account (r:1 w:1)
/// Storage: System Account (r:1 w:1)
/// Proof: System Account (max_values: None, max_size: Some(126), added: 2601, mode: MaxEncodedLen)
/// Proof: System Account (max_values: None, max_size: Some(126), added: 2601, mode: MaxEncodedLen)
/// Storage: Distance DistanceStatusExpireOn (r:1 w:1)
/// Proof Skipped: Distance DistanceStatusExpireOn (max_values: None, max_size: None, mode: Measured)
fn
request_distance_evaluation
()
->
Weight
{
fn
request_distance_evaluation
()
->
Weight
{
// Proof Size summary in bytes:
// Proof Size summary in bytes:
// Measured: `940`
// Measured: `1280`
// Estimated: `4405`
// Estimated: `4745`
// Minimum execution time: 15_424_000 picoseconds.
// Minimum execution time: 876_053_000 picoseconds.
Weight
::
from_parts
(
16_307_000
,
0
)
Weight
::
from_parts
(
898_445_000
,
0
)
.saturating_add
(
Weight
::
from_parts
(
0
,
4405
))
.saturating_add
(
Weight
::
from_parts
(
0
,
4745
))
.saturating_add
(
T
::
DbWeight
::
get
()
.reads
(
6
))
.saturating_add
(
T
::
DbWeight
::
get
()
.reads
(
8
))
.saturating_add
(
T
::
DbWeight
::
get
()
.writes
(
4
))
.saturating_add
(
T
::
DbWeight
::
get
()
.writes
(
3
))
}
/// Storage: Identity IdentityIndexOf (r:1 w:0)
/// Proof Skipped: Identity IdentityIndexOf (max_values: None, max_size: None, mode: Measured)
/// Storage: Identity Identities (r:2 w:0)
/// Proof Skipped: Identity Identities (max_values: None, max_size: None, mode: Measured)
/// Storage: Distance PendingEvaluationRequest (r:1 w:1)
/// Proof Skipped: Distance PendingEvaluationRequest (max_values: None, max_size: None, mode: Measured)
/// Storage: Distance ValidEvaluationResult (r:1 w:0)
/// Proof Skipped: Distance ValidEvaluationResult (max_values: None, max_size: None, mode: Measured)
/// Storage: Cert StorageIdtyCertMeta (r:1 w:0)
/// Proof Skipped: Cert StorageIdtyCertMeta (max_values: None, max_size: None, mode: Measured)
/// Storage: Parameters ParametersStorage (r:1 w:0)
/// Proof Skipped: Parameters ParametersStorage (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: Distance EvaluationPool2 (r:1 w:1)
/// Proof Skipped: Distance EvaluationPool2 (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(126), added: 2601, mode: MaxEncodedLen)
fn
request_distance_evaluation_for
()
->
Weight
{
// Proof Size summary in bytes:
// Measured: `1485`
// Estimated: `7425`
// Minimum execution time: 1_118_982_000 picoseconds.
Weight
::
from_parts
(
1_292_782_000
,
0
)
.saturating_add
(
Weight
::
from_parts
(
0
,
7425
))
.saturating_add
(
T
::
DbWeight
::
get
()
.reads
(
10
))
.saturating_add
(
T
::
DbWeight
::
get
()
.writes
(
3
))
}
}
/// Storage: Distance DidUpdate (r:1 w:1)
/// Storage: Distance DidUpdate (r:1 w:1)
/// Proof Skipped: Distance DidUpdate (max_values: Some(1), max_size: None, mode: Measured)
/// Proof Skipped: Distance DidUpdate (max_values: Some(1), max_size: None, mode: Measured)
...
@@ -73,12 +118,12 @@ impl<T: frame_system::Config> pallet_distance::WeightInfo for WeightInfo<T> {
...
@@ -73,12 +118,12 @@ impl<T: frame_system::Config> pallet_distance::WeightInfo for WeightInfo<T> {
fn
update_evaluation
(
i
:
u32
,
)
->
Weight
{
fn
update_evaluation
(
i
:
u32
,
)
->
Weight
{
// Proof Size summary in bytes:
// Proof Size summary in bytes:
// Measured: `773 + i * (10 ±0)`
// Measured: `773 + i * (10 ±0)`
// Estimated: `225
7
+ i * (10 ±0)`
// Estimated: `225
6
+ i * (10 ±0)`
// Minimum execution time:
11_050
_000 picoseconds.
// Minimum execution time:
463_878
_000 picoseconds.
Weight
::
from_parts
(
12_621_290
,
0
)
Weight
::
from_parts
(
743_823_548
,
0
)
.saturating_add
(
Weight
::
from_parts
(
0
,
225
7
))
.saturating_add
(
Weight
::
from_parts
(
0
,
225
6
))
// Standard Error: 14
5
// Standard Error:
292_
14
4
.saturating_add
(
Weight
::
from_parts
(
59_121
,
0
)
.saturating_mul
(
i
.into
()))
.saturating_add
(
Weight
::
from_parts
(
1_326_639
,
0
)
.saturating_mul
(
i
.into
()))
.saturating_add
(
T
::
DbWeight
::
get
()
.reads
(
6
))
.saturating_add
(
T
::
DbWeight
::
get
()
.reads
(
6
))
.saturating_add
(
T
::
DbWeight
::
get
()
.writes
(
3
))
.saturating_add
(
T
::
DbWeight
::
get
()
.writes
(
3
))
.saturating_add
(
Weight
::
from_parts
(
0
,
10
)
.saturating_mul
(
i
.into
()))
.saturating_add
(
Weight
::
from_parts
(
0
,
10
)
.saturating_mul
(
i
.into
()))
...
@@ -91,31 +136,39 @@ impl<T: frame_system::Config> pallet_distance::WeightInfo for WeightInfo<T> {
...
@@ -91,31 +136,39 @@ impl<T: frame_system::Config> pallet_distance::WeightInfo for WeightInfo<T> {
fn
force_update_evaluation
(
i
:
u32
,
)
->
Weight
{
fn
force_update_evaluation
(
i
:
u32
,
)
->
Weight
{
// Proof Size summary in bytes:
// Proof Size summary in bytes:
// Measured: `612 + i * (10 ±0)`
// Measured: `612 + i * (10 ±0)`
// Estimated: `209
6
+ i * (10 ±0)`
// Estimated: `209
5
+ i * (10 ±0)`
// Minimum execution time:
5_197
_000 picoseconds.
// Minimum execution time:
208_812
_000 picoseconds.
Weight
::
from_parts
(
6_485_670
,
0
)
Weight
::
from_parts
(
257_150_521
,
0
)
.saturating_add
(
Weight
::
from_parts
(
0
,
209
6
))
.saturating_add
(
Weight
::
from_parts
(
0
,
209
5
))
// Standard Error:
119
// Standard Error:
53_366
.saturating_add
(
Weight
::
from_parts
(
58_163
,
0
)
.saturating_mul
(
i
.into
()))
.saturating_add
(
Weight
::
from_parts
(
1_841_329
,
0
)
.saturating_mul
(
i
.into
()))
.saturating_add
(
T
::
DbWeight
::
get
()
.reads
(
2
))
.saturating_add
(
T
::
DbWeight
::
get
()
.reads
(
2
))
.saturating_add
(
T
::
DbWeight
::
get
()
.writes
(
1
))
.saturating_add
(
T
::
DbWeight
::
get
()
.writes
(
1
))
.saturating_add
(
Weight
::
from_parts
(
0
,
10
)
.saturating_mul
(
i
.into
()))
.saturating_add
(
Weight
::
from_parts
(
0
,
10
)
.saturating_mul
(
i
.into
()))
}
}
/// Storage: Session CurrentIndex (r:1 w:0)
/// Storage: Session CurrentIndex (r:1 w:0)
/// Proof Skipped: Session CurrentIndex (max_values: Some(1), max_size: None, mode: Measured)
/// Proof Skipped: Session CurrentIndex (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: Distance DistanceStatusExpireOn (r:1 w:1)
/// Storage: Distance ValidEvaluationExpireOn (r:1 w:1)
/// Proof Skipped: Distance DistanceStatusExpireOn (max_values: None, max_size: None, mode: Measured)
/// Proof Skipped: Distance ValidEvaluationExpireOn (max_values: None, max_size: None, mode: Measured)
/// Storage: Distance IdentityDistanceStatus (r:0 w:1)
/// Storage: Identity Identities (r:1 w:0)
/// Proof Skipped: Distance IdentityDistanceStatus (max_values: None, max_size: None, mode: Measured)
/// Proof Skipped: Identity Identities (max_values: None, max_size: None, mode: Measured)
fn
force_set_distance_status
()
->
Weight
{
/// Storage: Membership Membership (r:1 w:1)
/// Proof Skipped: Membership Membership (max_values: None, max_size: None, mode: Measured)
/// Storage: Membership MembershipsExpireOn (r:2 w:2)
/// Proof Skipped: Membership MembershipsExpireOn (max_values: None, max_size: None, mode: Measured)
/// Storage: Parameters ParametersStorage (r:1 w:0)
/// Proof Skipped: Parameters ParametersStorage (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: Distance ValidEvaluationResult (r:0 w:1)
/// Proof Skipped: Distance ValidEvaluationResult (max_values: None, max_size: None, mode: Measured)
fn
force_valid_distance_status
()
->
Weight
{
// Proof Size summary in bytes:
// Proof Size summary in bytes:
// Measured: `
586
`
// Measured: `
1181
`
// Estimated: `
405
1`
// Estimated: `
712
1`
// Minimum execution time:
4_930
_000 picoseconds.
// Minimum execution time:
873_892
_000 picoseconds.
Weight
::
from_parts
(
5
_0
69
_000
,
0
)
Weight
::
from_parts
(
1
_0
81_510
_000
,
0
)
.saturating_add
(
Weight
::
from_parts
(
0
,
405
1
))
.saturating_add
(
Weight
::
from_parts
(
0
,
712
1
))
.saturating_add
(
T
::
DbWeight
::
get
()
.reads
(
2
))
.saturating_add
(
T
::
DbWeight
::
get
()
.reads
(
7
))
.saturating_add
(
T
::
DbWeight
::
get
()
.writes
(
2
))
.saturating_add
(
T
::
DbWeight
::
get
()
.writes
(
5
))
}
}
/// Storage: Distance DidUpdate (r:1 w:1)
/// Storage: Distance DidUpdate (r:1 w:1)
/// Proof Skipped: Distance DidUpdate (max_values: Some(1), max_size: None, mode: Measured)
/// Proof Skipped: Distance DidUpdate (max_values: Some(1), max_size: None, mode: Measured)
...
@@ -123,8 +176,8 @@ impl<T: frame_system::Config> pallet_distance::WeightInfo for WeightInfo<T> {
...
@@ -123,8 +176,8 @@ impl<T: frame_system::Config> pallet_distance::WeightInfo for WeightInfo<T> {
// Proof Size summary in bytes:
// Proof Size summary in bytes:
// Measured: `170`
// Measured: `170`
// Estimated: `1655`
// Estimated: `1655`
// Minimum execution time: 3_
156
_000 picoseconds.
// Minimum execution time:
9
3_
595
_000 picoseconds.
Weight
::
from_parts
(
3_382
_000
,
0
)
Weight
::
from_parts
(
109_467
_000
,
0
)
.saturating_add
(
Weight
::
from_parts
(
0
,
1655
))
.saturating_add
(
Weight
::
from_parts
(
0
,
1655
))
.saturating_add
(
T
::
DbWeight
::
get
()
.reads
(
1
))
.saturating_add
(
T
::
DbWeight
::
get
()
.reads
(
1
))
.saturating_add
(
T
::
DbWeight
::
get
()
.writes
(
1
))
.saturating_add
(
T
::
DbWeight
::
get
()
.writes
(
1
))
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment