Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions .maintain/frame-weight-template.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
#![allow(missing_docs)]
#![allow(dead_code)]

use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}};
use frame_support::{traits::Get, weights::{Weight, constants::ParityDbWeight}};
use core::marker::PhantomData;

/// Weight functions needed for `{{pallet}}`.
Expand Down Expand Up @@ -103,16 +103,16 @@ impl WeightInfo for () {
.saturating_add(Weight::from_parts({{underscore cw.slope}}, 0).saturating_mul({{cw.name}}.into()))
{{/each}}
{{#if (ne benchmark.base_reads "0")}}
.saturating_add(RocksDbWeight::get().reads({{benchmark.base_reads}}_u64))
.saturating_add(ParityDbWeight::get().reads({{benchmark.base_reads}}_u64))
{{/if}}
{{#each benchmark.component_reads as |cr|}}
.saturating_add(RocksDbWeight::get().reads(({{cr.slope}}_u64).saturating_mul({{cr.name}}.into())))
.saturating_add(ParityDbWeight::get().reads(({{cr.slope}}_u64).saturating_mul({{cr.name}}.into())))
{{/each}}
{{#if (ne benchmark.base_writes "0")}}
.saturating_add(RocksDbWeight::get().writes({{benchmark.base_writes}}_u64))
.saturating_add(ParityDbWeight::get().writes({{benchmark.base_writes}}_u64))
{{/if}}
{{#each benchmark.component_writes as |cw|}}
.saturating_add(RocksDbWeight::get().writes(({{cw.slope}}_u64).saturating_mul({{cw.name}}.into())))
.saturating_add(ParityDbWeight::get().writes(({{cw.slope}}_u64).saturating_mul({{cw.name}}.into())))
{{/each}}
{{#each benchmark.component_calculated_proof_size as |cp|}}
.saturating_add(Weight::from_parts(0, {{cp.slope}}).saturating_mul({{cp.name}}.into()))
Expand Down
192 changes: 96 additions & 96 deletions pallets/admin-utils/src/weights.rs

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions pallets/commitments/src/weights.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
#![allow(unused_imports)]
#![allow(missing_docs)]

use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}};
use frame_support::{traits::Get, weights::{Weight, constants::ParityDbWeight}};
use core::marker::PhantomData;

/// Weight functions needed for `pallet_commitments`.
Expand All @@ -51,11 +51,11 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
impl WeightInfo for () {
fn set_commitment() -> Weight {
Weight::from_parts(33_480_000, 0)
.saturating_add(RocksDbWeight::get().reads(5_u64))
.saturating_add(RocksDbWeight::get().writes(4_u64))
.saturating_add(ParityDbWeight::get().reads(5_u64))
.saturating_add(ParityDbWeight::get().writes(4_u64))
}
fn set_max_space() -> Weight {
Weight::from_parts(2_856_000, 0)
.saturating_add(RocksDbWeight::get().writes(1_u64))
.saturating_add(ParityDbWeight::get().writes(1_u64))
}
}
44 changes: 22 additions & 22 deletions pallets/crowdloan/src/weights.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
#![allow(missing_docs)]
#![allow(dead_code)]

use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}};
use frame_support::{traits::Get, weights::{Weight, constants::ParityDbWeight}};
use core::marker::PhantomData;

/// Weight functions needed for `pallet_crowdloan`.
Expand Down Expand Up @@ -224,8 +224,8 @@ impl WeightInfo for () {
// Estimated: `6148`
// Minimum execution time: 58_307_000 picoseconds.
Weight::from_parts(59_829_000, 6148)
.saturating_add(RocksDbWeight::get().reads(3_u64))
.saturating_add(RocksDbWeight::get().writes(5_u64))
.saturating_add(ParityDbWeight::get().reads(3_u64))
.saturating_add(ParityDbWeight::get().writes(5_u64))
}
/// Storage: `Crowdloan::Crowdloans` (r:1 w:1)
/// Proof: `Crowdloan::Crowdloans` (`max_values`: None, `max_size`: Some(282), added: 2757, mode: `MaxEncodedLen`)
Expand All @@ -241,8 +241,8 @@ impl WeightInfo for () {
// Estimated: `6148`
// Minimum execution time: 65_557_000 picoseconds.
Weight::from_parts(66_609_000, 6148)
.saturating_add(RocksDbWeight::get().reads(5_u64))
.saturating_add(RocksDbWeight::get().writes(4_u64))
.saturating_add(ParityDbWeight::get().reads(5_u64))
.saturating_add(ParityDbWeight::get().writes(4_u64))
}
/// Storage: `Crowdloan::Crowdloans` (r:1 w:1)
/// Proof: `Crowdloan::Crowdloans` (`max_values`: None, `max_size`: Some(282), added: 2757, mode: `MaxEncodedLen`)
Expand All @@ -256,8 +256,8 @@ impl WeightInfo for () {
// Estimated: `6148`
// Minimum execution time: 59_438_000 picoseconds.
Weight::from_parts(60_259_000, 6148)
.saturating_add(RocksDbWeight::get().reads(4_u64))
.saturating_add(RocksDbWeight::get().writes(4_u64))
.saturating_add(ParityDbWeight::get().reads(4_u64))
.saturating_add(ParityDbWeight::get().writes(4_u64))
}
/// Storage: `Crowdloan::Crowdloans` (r:1 w:1)
/// Proof: `Crowdloan::Crowdloans` (`max_values`: None, `max_size`: Some(282), added: 2757, mode: `MaxEncodedLen`)
Expand All @@ -275,8 +275,8 @@ impl WeightInfo for () {
// Estimated: `4197809`
// Minimum execution time: 30_264_000 picoseconds.
Weight::from_parts(31_507_000, 4197809)
.saturating_add(RocksDbWeight::get().reads(4_u64))
.saturating_add(RocksDbWeight::get().writes(2_u64))
.saturating_add(ParityDbWeight::get().reads(4_u64))
.saturating_add(ParityDbWeight::get().writes(2_u64))
}
/// Storage: `Crowdloan::Crowdloans` (r:1 w:1)
/// Proof: `Crowdloan::Crowdloans` (`max_values`: None, `max_size`: Some(282), added: 2757, mode: `MaxEncodedLen`)
Expand All @@ -293,9 +293,9 @@ impl WeightInfo for () {
Weight::from_parts(110_703_000, 3747)
// Standard Error: 96_515
.saturating_add(Weight::from_parts(39_503_253, 0).saturating_mul(k.into()))
.saturating_add(RocksDbWeight::get().reads(2_u64))
.saturating_add(RocksDbWeight::get().reads((2_u64).saturating_mul(k.into())))
.saturating_add(RocksDbWeight::get().writes((2_u64).saturating_mul(k.into())))
.saturating_add(ParityDbWeight::get().reads(2_u64))
.saturating_add(ParityDbWeight::get().reads((2_u64).saturating_mul(k.into())))
.saturating_add(ParityDbWeight::get().writes((2_u64).saturating_mul(k.into())))
.saturating_add(Weight::from_parts(0, 2579).saturating_mul(k.into()))
}
/// Storage: `Crowdloan::Crowdloans` (r:1 w:1)
Expand All @@ -312,8 +312,8 @@ impl WeightInfo for () {
// Estimated: `6148`
// Minimum execution time: 66_138_000 picoseconds.
Weight::from_parts(66_939_000, 6148)
.saturating_add(RocksDbWeight::get().reads(4_u64))
.saturating_add(RocksDbWeight::get().writes(5_u64))
.saturating_add(ParityDbWeight::get().reads(4_u64))
.saturating_add(ParityDbWeight::get().writes(5_u64))
}
/// Storage: `Crowdloan::Crowdloans` (r:1 w:1)
/// Proof: `Crowdloan::Crowdloans` (`max_values`: None, `max_size`: Some(282), added: 2757, mode: `MaxEncodedLen`)
Expand All @@ -325,8 +325,8 @@ impl WeightInfo for () {
// Estimated: `3747`
// Minimum execution time: 12_639_000 picoseconds.
Weight::from_parts(13_259_000, 3747)
.saturating_add(RocksDbWeight::get().reads(2_u64))
.saturating_add(RocksDbWeight::get().writes(1_u64))
.saturating_add(ParityDbWeight::get().reads(2_u64))
.saturating_add(ParityDbWeight::get().writes(1_u64))
}
/// Storage: `Crowdloan::Crowdloans` (r:1 w:1)
/// Proof: `Crowdloan::Crowdloans` (`max_values`: None, `max_size`: Some(282), added: 2757, mode: `MaxEncodedLen`)
Expand All @@ -336,8 +336,8 @@ impl WeightInfo for () {
// Estimated: `3747`
// Minimum execution time: 11_637_000 picoseconds.
Weight::from_parts(12_048_000, 3747)
.saturating_add(RocksDbWeight::get().reads(1_u64))
.saturating_add(RocksDbWeight::get().writes(1_u64))
.saturating_add(ParityDbWeight::get().reads(1_u64))
.saturating_add(ParityDbWeight::get().writes(1_u64))
}
/// Storage: `Crowdloan::Crowdloans` (r:1 w:1)
/// Proof: `Crowdloan::Crowdloans` (`max_values`: None, `max_size`: Some(282), added: 2757, mode: `MaxEncodedLen`)
Expand All @@ -347,8 +347,8 @@ impl WeightInfo for () {
// Estimated: `3747`
// Minimum execution time: 11_026_000 picoseconds.
Weight::from_parts(11_357_000, 3747)
.saturating_add(RocksDbWeight::get().reads(1_u64))
.saturating_add(RocksDbWeight::get().writes(1_u64))
.saturating_add(ParityDbWeight::get().reads(1_u64))
.saturating_add(ParityDbWeight::get().writes(1_u64))
}
/// Storage: `Crowdloan::Crowdloans` (r:1 w:0)
/// Proof: `Crowdloan::Crowdloans` (`max_values`: None, `max_size`: Some(282), added: 2757, mode: `MaxEncodedLen`)
Expand All @@ -362,7 +362,7 @@ impl WeightInfo for () {
// Estimated: `3747`
// Minimum execution time: 15_263_000 picoseconds.
Weight::from_parts(16_024_000, 3747)
.saturating_add(RocksDbWeight::get().reads(2_u64))
.saturating_add(RocksDbWeight::get().writes(1_u64))
.saturating_add(ParityDbWeight::get().reads(2_u64))
.saturating_add(ParityDbWeight::get().writes(1_u64))
}
}
10 changes: 5 additions & 5 deletions pallets/drand/src/weights.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
#![allow(missing_docs)]
#![allow(dead_code)]

use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}};
use frame_support::{traits::Get, weights::{Weight, constants::ParityDbWeight}};
use core::marker::PhantomData;

/// Weight functions needed for `pallet_drand`.
Expand Down Expand Up @@ -42,15 +42,15 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
impl WeightInfo for () {
fn set_beacon_config() -> Weight {
Weight::from_parts(8_766_000, 0)
.saturating_add(RocksDbWeight::get().writes(2_u64))
.saturating_add(ParityDbWeight::get().writes(2_u64))
}
fn write_pulse() -> Weight {
Weight::from_parts(4_294_000_000, 0)
.saturating_add(RocksDbWeight::get().reads(3_u64))
.saturating_add(RocksDbWeight::get().writes(4_u64))
.saturating_add(ParityDbWeight::get().reads(3_u64))
.saturating_add(ParityDbWeight::get().writes(4_u64))
}
fn set_oldest_stored_round() -> Weight {
Weight::from_parts(5_370_000, 0)
.saturating_add(RocksDbWeight::get().writes(1_u64))
.saturating_add(ParityDbWeight::get().writes(1_u64))
}
}
50 changes: 25 additions & 25 deletions pallets/proxy/src/weights.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
#![allow(missing_docs)]
#![allow(dead_code)]

use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}};
use frame_support::{traits::Get, weights::{Weight, constants::ParityDbWeight}};
use core::marker::PhantomData;

/// Weight functions needed for `pallet_subtensor_proxy`.
Expand Down Expand Up @@ -286,8 +286,8 @@ impl WeightInfo for () {
Weight::from_parts(24_151_161, 4254)
// Standard Error: 3_337
.saturating_add(Weight::from_parts(96_756, 0).saturating_mul(p.into()))
.saturating_add(RocksDbWeight::get().reads(3_u64))
.saturating_add(RocksDbWeight::get().writes(1_u64))
.saturating_add(ParityDbWeight::get().reads(3_u64))
.saturating_add(ParityDbWeight::get().writes(1_u64))
.saturating_add(Weight::from_parts(0, 37).saturating_mul(p.into()))
}
/// Storage: `Proxy::Proxies` (r:1 w:0)
Expand All @@ -314,8 +314,8 @@ impl WeightInfo for () {
.saturating_add(Weight::from_parts(261_812, 0).saturating_mul(a.into()))
// Standard Error: 5_727
.saturating_add(Weight::from_parts(54_276, 0).saturating_mul(p.into()))
.saturating_add(RocksDbWeight::get().reads(5_u64))
.saturating_add(RocksDbWeight::get().writes(3_u64))
.saturating_add(ParityDbWeight::get().reads(5_u64))
.saturating_add(ParityDbWeight::get().writes(3_u64))
.saturating_add(Weight::from_parts(0, 68).saturating_mul(a.into()))
.saturating_add(Weight::from_parts(0, 37).saturating_mul(p.into()))
}
Expand All @@ -335,8 +335,8 @@ impl WeightInfo for () {
.saturating_add(Weight::from_parts(211_445, 0).saturating_mul(a.into()))
// Standard Error: 3_552
.saturating_add(Weight::from_parts(20_637, 0).saturating_mul(p.into()))
.saturating_add(RocksDbWeight::get().reads(2_u64))
.saturating_add(RocksDbWeight::get().writes(2_u64))
.saturating_add(ParityDbWeight::get().reads(2_u64))
.saturating_add(ParityDbWeight::get().writes(2_u64))
}
/// Storage: `Proxy::Announcements` (r:1 w:1)
/// Proof: `Proxy::Announcements` (`max_values`: None, `max_size`: Some(5150), added: 7625, mode: `MaxEncodedLen`)
Expand All @@ -354,8 +354,8 @@ impl WeightInfo for () {
.saturating_add(Weight::from_parts(211_311, 0).saturating_mul(a.into()))
// Standard Error: 3_572
.saturating_add(Weight::from_parts(19_850, 0).saturating_mul(p.into()))
.saturating_add(RocksDbWeight::get().reads(2_u64))
.saturating_add(RocksDbWeight::get().writes(2_u64))
.saturating_add(ParityDbWeight::get().reads(2_u64))
.saturating_add(ParityDbWeight::get().writes(2_u64))
}
/// Storage: `Proxy::Proxies` (r:1 w:0)
/// Proof: `Proxy::Proxies` (`max_values`: None, `max_size`: Some(789), added: 3264, mode: `MaxEncodedLen`)
Expand All @@ -375,8 +375,8 @@ impl WeightInfo for () {
.saturating_add(Weight::from_parts(245_681, 0).saturating_mul(a.into()))
// Standard Error: 10_638
.saturating_add(Weight::from_parts(108_442, 0).saturating_mul(p.into()))
.saturating_add(RocksDbWeight::get().reads(3_u64))
.saturating_add(RocksDbWeight::get().writes(2_u64))
.saturating_add(ParityDbWeight::get().reads(3_u64))
.saturating_add(ParityDbWeight::get().writes(2_u64))
}
/// Storage: `Proxy::Proxies` (r:1 w:1)
/// Proof: `Proxy::Proxies` (`max_values`: None, `max_size`: Some(789), added: 3264, mode: `MaxEncodedLen`)
Expand All @@ -389,8 +389,8 @@ impl WeightInfo for () {
Weight::from_parts(23_099_598, 4254)
// Standard Error: 1_922
.saturating_add(Weight::from_parts(76_038, 0).saturating_mul(p.into()))
.saturating_add(RocksDbWeight::get().reads(1_u64))
.saturating_add(RocksDbWeight::get().writes(1_u64))
.saturating_add(ParityDbWeight::get().reads(1_u64))
.saturating_add(ParityDbWeight::get().writes(1_u64))
}
/// Storage: `Proxy::Proxies` (r:1 w:1)
/// Proof: `Proxy::Proxies` (`max_values`: None, `max_size`: Some(789), added: 3264, mode: `MaxEncodedLen`)
Expand All @@ -405,8 +405,8 @@ impl WeightInfo for () {
Weight::from_parts(24_761_635, 4254)
// Standard Error: 2_310
.saturating_add(Weight::from_parts(58_413, 0).saturating_mul(p.into()))
.saturating_add(RocksDbWeight::get().reads(1_u64))
.saturating_add(RocksDbWeight::get().writes(2_u64))
.saturating_add(ParityDbWeight::get().reads(1_u64))
.saturating_add(ParityDbWeight::get().writes(2_u64))
}
/// Storage: `Proxy::Proxies` (r:1 w:1)
/// Proof: `Proxy::Proxies` (`max_values`: None, `max_size`: Some(789), added: 3264, mode: `MaxEncodedLen`)
Expand All @@ -419,8 +419,8 @@ impl WeightInfo for () {
Weight::from_parts(24_632_652, 4254)
// Standard Error: 2_253
.saturating_add(Weight::from_parts(48_858, 0).saturating_mul(p.into()))
.saturating_add(RocksDbWeight::get().reads(1_u64))
.saturating_add(RocksDbWeight::get().writes(1_u64))
.saturating_add(ParityDbWeight::get().reads(1_u64))
.saturating_add(ParityDbWeight::get().writes(1_u64))
}
/// Storage: `Proxy::Proxies` (r:1 w:1)
/// Proof: `Proxy::Proxies` (`max_values`: None, `max_size`: Some(789), added: 3264, mode: `MaxEncodedLen`)
Expand All @@ -433,8 +433,8 @@ impl WeightInfo for () {
Weight::from_parts(24_892_331, 4254)
// Standard Error: 2_007
.saturating_add(Weight::from_parts(21_649, 0).saturating_mul(p.into()))
.saturating_add(RocksDbWeight::get().reads(1_u64))
.saturating_add(RocksDbWeight::get().writes(1_u64))
.saturating_add(ParityDbWeight::get().reads(1_u64))
.saturating_add(ParityDbWeight::get().writes(1_u64))
}
/// Storage: `Proxy::Proxies` (r:1 w:1)
/// Proof: `Proxy::Proxies` (`max_values`: None, `max_size`: Some(789), added: 3264, mode: `MaxEncodedLen`)
Expand All @@ -447,8 +447,8 @@ impl WeightInfo for () {
Weight::from_parts(23_802_763, 4254)
// Standard Error: 2_166
.saturating_add(Weight::from_parts(41_019, 0).saturating_mul(p.into()))
.saturating_add(RocksDbWeight::get().reads(1_u64))
.saturating_add(RocksDbWeight::get().writes(1_u64))
.saturating_add(ParityDbWeight::get().reads(1_u64))
.saturating_add(ParityDbWeight::get().writes(1_u64))
}
/// Storage: `Proxy::Proxies` (r:1 w:1)
/// Proof: `Proxy::Proxies` (`max_values`: None, `max_size`: Some(789), added: 3264, mode: `MaxEncodedLen`)
Expand All @@ -462,8 +462,8 @@ impl WeightInfo for () {
// Estimated: `8615`
// Minimum execution time: 42_413_000 picoseconds.
Weight::from_parts(43_264_000, 8615)
.saturating_add(RocksDbWeight::get().reads(3_u64))
.saturating_add(RocksDbWeight::get().writes(3_u64))
.saturating_add(ParityDbWeight::get().reads(3_u64))
.saturating_add(ParityDbWeight::get().writes(3_u64))
}
/// Storage: `Proxy::Proxies` (r:1 w:0)
/// Proof: `Proxy::Proxies` (`max_values`: None, `max_size`: Some(789), added: 3264, mode: `MaxEncodedLen`)
Expand All @@ -478,7 +478,7 @@ impl WeightInfo for () {
Weight::from_parts(12_050_045, 4254)
// Standard Error: 1_620
.saturating_add(Weight::from_parts(45_828, 0).saturating_mul(p.into()))
.saturating_add(RocksDbWeight::get().reads(1_u64))
.saturating_add(RocksDbWeight::get().writes(1_u64))
.saturating_add(ParityDbWeight::get().reads(1_u64))
.saturating_add(ParityDbWeight::get().writes(1_u64))
}
}
10 changes: 5 additions & 5 deletions pallets/registry/src/weights.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
#![allow(missing_docs)]
#![allow(dead_code)]

use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}};
use frame_support::{traits::Get, weights::{Weight, constants::ParityDbWeight}};
use core::marker::PhantomData;

/// Weight functions needed for `pallet_registry`.
Expand Down Expand Up @@ -88,8 +88,8 @@ impl WeightInfo for () {
// Estimated: `3564`
// Minimum execution time: 50_534_000 picoseconds.
Weight::from_parts(51_626_000, 3564)
.saturating_add(RocksDbWeight::get().reads(2_u64))
.saturating_add(RocksDbWeight::get().writes(2_u64))
.saturating_add(ParityDbWeight::get().reads(2_u64))
.saturating_add(ParityDbWeight::get().writes(2_u64))
}
/// Storage: `Registry::IdentityOf` (r:1 w:1)
/// Proof: `Registry::IdentityOf` (`max_values`: None, `max_size`: None, mode: `Measured`)
Expand All @@ -101,7 +101,7 @@ impl WeightInfo for () {
// Estimated: `3847`
// Minimum execution time: 42_379_000 picoseconds.
Weight::from_parts(43_501_000, 3847)
.saturating_add(RocksDbWeight::get().reads(2_u64))
.saturating_add(RocksDbWeight::get().writes(2_u64))
.saturating_add(ParityDbWeight::get().reads(2_u64))
.saturating_add(ParityDbWeight::get().writes(2_u64))
}
}
Loading
Loading