Skip to content

Commit

Permalink
Add weights of new modules
Browse files Browse the repository at this point in the history
  • Loading branch information
Your Name committed Nov 1, 2024
1 parent 790906f commit 93f0663
Show file tree
Hide file tree
Showing 3 changed files with 225 additions and 143 deletions.
132 changes: 82 additions & 50 deletions zrml/combinatorial-tokens/src/weights.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,21 +19,21 @@
//! Autogenerated weights for zrml_combinatorial_tokens
//!
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
//! DATE: `2024-10-24`, STEPS: `2`, REPEAT: `0`, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! DATE: `2024-10-30`, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! WORST CASE MAP SIZE: `1000000`
//! HOSTNAME: `blackbird`, CPU: `<UNKNOWN>`
//! HOSTNAME: `ztg-benchmark`, CPU: `AMD EPYC 7601 32-Core Processor`
//! EXECUTION: ``, WASM-EXECUTION: `Compiled`, CHAIN: `Some("dev")`, DB CACHE: `1024`
// Executed Command:
// ./target/release/zeitgeist
// ./target/production/zeitgeist
// benchmark
// pallet
// --chain=dev
// --steps=2
// --repeat=0
// --steps=50
// --repeat=20
// --pallet=zrml_combinatorial_tokens
// --extrinsic=*
// --execution=native
// --execution=wasm
// --wasm-execution=compiled
// --heap-pages=4096
// --template=./misc/weight_template.hbs
Expand Down Expand Up @@ -71,14 +71,19 @@ impl<T: frame_system::Config> WeightInfoZeitgeist for WeightInfo<T> {
/// Storage: `Tokens::TotalIssuance` (r:32 w:32)
/// Proof: `Tokens::TotalIssuance` (`max_values`: None, `max_size`: Some(57), added: 2532, mode: `MaxEncodedLen`)
/// The range of component `n` is `[2, 32]`.
fn split_position_vertical_sans_parent(_n: u32) -> Weight {
fn split_position_vertical_sans_parent(n: u32) -> Weight {
// Proof Size summary in bytes:
// Measured: `441`
// Estimated: `84574`
// Minimum execution time: 1_923_000 nanoseconds.
Weight::from_parts(29_365_000_000, 84574)
.saturating_add(T::DbWeight::get().reads(66))
.saturating_add(T::DbWeight::get().writes(65))
// Estimated: `4173 + n * (2612 ±0)`
// Minimum execution time: 6_978_416 nanoseconds.
Weight::from_parts(102_072_603, 4173)
// Standard Error: 4_544_660
.saturating_add(Weight::from_parts(3_565_520_352, 0).saturating_mul(n.into()))
.saturating_add(T::DbWeight::get().reads(2))
.saturating_add(T::DbWeight::get().reads((2_u64).saturating_mul(n.into())))
.saturating_add(T::DbWeight::get().writes(1))
.saturating_add(T::DbWeight::get().writes((2_u64).saturating_mul(n.into())))
.saturating_add(Weight::from_parts(0, 2612).saturating_mul(n.into()))
}
/// Storage: `MarketCommons::Markets` (r:1 w:0)
/// Proof: `MarketCommons::Markets` (`max_values`: None, `max_size`: Some(708), added: 3183, mode: `MaxEncodedLen`)
Expand All @@ -87,14 +92,19 @@ impl<T: frame_system::Config> WeightInfoZeitgeist for WeightInfo<T> {
/// Storage: `Tokens::TotalIssuance` (r:33 w:33)
/// Proof: `Tokens::TotalIssuance` (`max_values`: None, `max_size`: Some(57), added: 2532, mode: `MaxEncodedLen`)
/// The range of component `n` is `[2, 32]`.
fn split_position_vertical_with_parent(_n: u32) -> Weight {
fn split_position_vertical_with_parent(n: u32) -> Weight {
// Proof Size summary in bytes:
// Measured: `671`
// Estimated: `87186`
// Minimum execution time: 2_353_000 nanoseconds.
Weight::from_parts(37_193_000_000, 87186)
.saturating_add(T::DbWeight::get().reads(67))
.saturating_add(T::DbWeight::get().writes(66))
// Estimated: `4173 + n * (2612 ±0)`
// Minimum execution time: 8_316_377 nanoseconds.
Weight::from_parts(2_605_489, 4173)
// Standard Error: 3_965_121
.saturating_add(Weight::from_parts(4_222_525_574, 0).saturating_mul(n.into()))
.saturating_add(T::DbWeight::get().reads(3))
.saturating_add(T::DbWeight::get().reads((2_u64).saturating_mul(n.into())))
.saturating_add(T::DbWeight::get().writes(2))
.saturating_add(T::DbWeight::get().writes((2_u64).saturating_mul(n.into())))
.saturating_add(Weight::from_parts(0, 2612).saturating_mul(n.into()))
}
/// Storage: `MarketCommons::Markets` (r:1 w:0)
/// Proof: `MarketCommons::Markets` (`max_values`: None, `max_size`: Some(708), added: 3183, mode: `MaxEncodedLen`)
Expand All @@ -103,14 +113,19 @@ impl<T: frame_system::Config> WeightInfoZeitgeist for WeightInfo<T> {
/// Storage: `Tokens::TotalIssuance` (r:33 w:33)
/// Proof: `Tokens::TotalIssuance` (`max_values`: None, `max_size`: Some(57), added: 2532, mode: `MaxEncodedLen`)
/// The range of component `n` is `[2, 32]`.
fn split_position_horizontal(_n: u32) -> Weight {
fn split_position_horizontal(n: u32) -> Weight {
// Proof Size summary in bytes:
// Measured: `633`
// Estimated: `87186`
// Minimum execution time: 2_773_000 nanoseconds.
Weight::from_parts(30_303_000_000, 87186)
.saturating_add(T::DbWeight::get().reads(67))
.saturating_add(T::DbWeight::get().writes(66))
// Estimated: `4173 + n * (2612 ±0)`
// Minimum execution time: 10_369_759 nanoseconds.
Weight::from_parts(3_384_663_612, 4173)
// Standard Error: 3_858_637
.saturating_add(Weight::from_parts(3_549_879_971, 0).saturating_mul(n.into()))
.saturating_add(T::DbWeight::get().reads(3))
.saturating_add(T::DbWeight::get().reads((2_u64).saturating_mul(n.into())))
.saturating_add(T::DbWeight::get().writes(2))
.saturating_add(T::DbWeight::get().writes((2_u64).saturating_mul(n.into())))
.saturating_add(Weight::from_parts(0, 2612).saturating_mul(n.into()))
}
/// Storage: `MarketCommons::Markets` (r:1 w:0)
/// Proof: `MarketCommons::Markets` (`max_values`: None, `max_size`: Some(708), added: 3183, mode: `MaxEncodedLen`)
Expand All @@ -121,14 +136,19 @@ impl<T: frame_system::Config> WeightInfoZeitgeist for WeightInfo<T> {
/// Storage: `System::Account` (r:1 w:1)
/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(132), added: 2607, mode: `MaxEncodedLen`)
/// The range of component `n` is `[2, 32]`.
fn merge_position_vertical_sans_parent(_n: u32) -> Weight {
fn merge_position_vertical_sans_parent(n: u32) -> Weight {
// Proof Size summary in bytes:
// Measured: `624 + n * (160 ±0)`
// Estimated: `84574`
// Minimum execution time: 1_889_000 nanoseconds.
Weight::from_parts(29_394_000_000, 84574)
.saturating_add(T::DbWeight::get().reads(66))
.saturating_add(T::DbWeight::get().writes(65))
// Measured: `623 + n * (159 ±0)`
// Estimated: `4173 + n * (2612 ±0)`
// Minimum execution time: 6_950_049 nanoseconds.
Weight::from_parts(7_032_940_000, 4173)
// Standard Error: 8_128_230
.saturating_add(Weight::from_parts(3_221_583_105, 0).saturating_mul(n.into()))
.saturating_add(T::DbWeight::get().reads(2))
.saturating_add(T::DbWeight::get().reads((2_u64).saturating_mul(n.into())))
.saturating_add(T::DbWeight::get().writes(1))
.saturating_add(T::DbWeight::get().writes((2_u64).saturating_mul(n.into())))
.saturating_add(Weight::from_parts(0, 2612).saturating_mul(n.into()))
}
/// Storage: `MarketCommons::Markets` (r:1 w:0)
/// Proof: `MarketCommons::Markets` (`max_values`: None, `max_size`: Some(708), added: 3183, mode: `MaxEncodedLen`)
Expand All @@ -137,14 +157,19 @@ impl<T: frame_system::Config> WeightInfoZeitgeist for WeightInfo<T> {
/// Storage: `Tokens::TotalIssuance` (r:33 w:33)
/// Proof: `Tokens::TotalIssuance` (`max_values`: None, `max_size`: Some(57), added: 2532, mode: `MaxEncodedLen`)
/// The range of component `n` is `[2, 32]`.
fn merge_position_vertical_with_parent(_n: u32) -> Weight {
fn merge_position_vertical_with_parent(n: u32) -> Weight {
// Proof Size summary in bytes:
// Measured: `518 + n * (160 ±0)`
// Estimated: `87186`
// Minimum execution time: 2_376_000 nanoseconds.
Weight::from_parts(37_564_000_000, 87186)
.saturating_add(T::DbWeight::get().reads(67))
.saturating_add(T::DbWeight::get().writes(66))
// Measured: `515 + n * (160 ±0)`
// Estimated: `4173 + n * (2612 ±0)`
// Minimum execution time: 8_233_017 nanoseconds.
Weight::from_parts(8_273_928_000, 4173)
// Standard Error: 9_495_570
.saturating_add(Weight::from_parts(3_810_340_613, 0).saturating_mul(n.into()))
.saturating_add(T::DbWeight::get().reads(3))
.saturating_add(T::DbWeight::get().reads((2_u64).saturating_mul(n.into())))
.saturating_add(T::DbWeight::get().writes(2))
.saturating_add(T::DbWeight::get().writes((2_u64).saturating_mul(n.into())))
.saturating_add(Weight::from_parts(0, 2612).saturating_mul(n.into()))
}
/// Storage: `MarketCommons::Markets` (r:1 w:0)
/// Proof: `MarketCommons::Markets` (`max_values`: None, `max_size`: Some(708), added: 3183, mode: `MaxEncodedLen`)
Expand All @@ -153,14 +178,19 @@ impl<T: frame_system::Config> WeightInfoZeitgeist for WeightInfo<T> {
/// Storage: `Tokens::TotalIssuance` (r:33 w:33)
/// Proof: `Tokens::TotalIssuance` (`max_values`: None, `max_size`: Some(57), added: 2532, mode: `MaxEncodedLen`)
/// The range of component `n` is `[2, 32]`.
fn merge_position_horizontal(_n: u32) -> Weight {
fn merge_position_horizontal(n: u32) -> Weight {
// Proof Size summary in bytes:
// Measured: `480 + n * (160 ±0)`
// Estimated: `87186`
// Minimum execution time: 2_760_000 nanoseconds.
Weight::from_parts(30_589_000_000, 87186)
.saturating_add(T::DbWeight::get().reads(67))
.saturating_add(T::DbWeight::get().writes(66))
// Measured: `478 + n * (160 ±0)`
// Estimated: `4173 + n * (2612 ±0)`
// Minimum execution time: 10_361_313 nanoseconds.
Weight::from_parts(3_250_658_133, 4173)
// Standard Error: 4_095_907
.saturating_add(Weight::from_parts(3_565_909_886, 0).saturating_mul(n.into()))
.saturating_add(T::DbWeight::get().reads(3))
.saturating_add(T::DbWeight::get().reads((2_u64).saturating_mul(n.into())))
.saturating_add(T::DbWeight::get().writes(2))
.saturating_add(T::DbWeight::get().writes((2_u64).saturating_mul(n.into())))
.saturating_add(Weight::from_parts(0, 2612).saturating_mul(n.into()))
}
/// Storage: `MarketCommons::Markets` (r:1 w:0)
/// Proof: `MarketCommons::Markets` (`max_values`: None, `max_size`: Some(708), added: 3183, mode: `MaxEncodedLen`)
Expand All @@ -171,12 +201,14 @@ impl<T: frame_system::Config> WeightInfoZeitgeist for WeightInfo<T> {
/// Storage: `System::Account` (r:1 w:1)
/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(132), added: 2607, mode: `MaxEncodedLen`)
/// The range of component `n` is `[2, 32]`.
fn redeem_position_sans_parent(_n: u32) -> Weight {
fn redeem_position_sans_parent(n: u32) -> Weight {
// Proof Size summary in bytes:
// Measured: `780`
// Estimated: `4173`
// Minimum execution time: 979_000 nanoseconds.
Weight::from_parts(986_000_000, 4173)
// Minimum execution time: 3_501_697 nanoseconds.
Weight::from_parts(3_567_968_354, 4173)
// Standard Error: 114_392
.saturating_add(Weight::from_parts(159_826, 0).saturating_mul(n.into()))
.saturating_add(T::DbWeight::get().reads(4))
.saturating_add(T::DbWeight::get().writes(3))
}
Expand All @@ -191,8 +223,8 @@ impl<T: frame_system::Config> WeightInfoZeitgeist for WeightInfo<T> {
// Proof Size summary in bytes:
// Measured: `674`
// Estimated: `6214`
// Minimum execution time: 1_193_000 nanoseconds.
Weight::from_parts(1_215_000_000, 6214)
// Minimum execution time: 4_123_619 nanoseconds.
Weight::from_parts(4_201_426_623, 6214)
.saturating_add(T::DbWeight::get().reads(5))
.saturating_add(T::DbWeight::get().writes(4))
}
Expand Down
26 changes: 13 additions & 13 deletions zrml/futarchy/src/weights.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,21 +19,21 @@
//! Autogenerated weights for zrml_futarchy
//!
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
//! DATE: `2024-10-20`, STEPS: `2`, REPEAT: `0`, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! DATE: `2024-10-30`, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! WORST CASE MAP SIZE: `1000000`
//! HOSTNAME: `blackbird`, CPU: `<UNKNOWN>`
//! HOSTNAME: `ztg-benchmark`, CPU: `AMD EPYC 7601 32-Core Processor`
//! EXECUTION: ``, WASM-EXECUTION: `Compiled`, CHAIN: `Some("dev")`, DB CACHE: `1024`
// Executed Command:
// ./target/release/zeitgeist
// ./target/production/zeitgeist
// benchmark
// pallet
// --chain=dev
// --steps=2
// --repeat=0
// --steps=50
// --repeat=20
// --pallet=zrml_futarchy
// --extrinsic=*
// --execution=native
// --execution=wasm
// --wasm-execution=compiled
// --heap-pages=4096
// --template=./misc/weight_template.hbs
Expand Down Expand Up @@ -62,21 +62,21 @@ impl<T: frame_system::Config> WeightInfoZeitgeist for WeightInfo<T> {
// Proof Size summary in bytes:
// Measured: `41`
// Estimated: `7026`
// Minimum execution time: 13_000 nanoseconds.
Weight::from_parts(13_000_000, 7026)
// Minimum execution time: 18_200 nanoseconds.
Weight::from_parts(18_871_000, 7026)
.saturating_add(T::DbWeight::get().reads(1))
.saturating_add(T::DbWeight::get().writes(1))
}
/// Storage: `NeoSwaps::Pools` (r:1 w:0)
/// Proof: `NeoSwaps::Pools` (`max_values`: None, `max_size`: Some(146552), added: 149027, mode: `MaxEncodedLen`)
/// Proof: `NeoSwaps::Pools` (`max_values`: None, `max_size`: Some(152829), added: 155304, mode: `MaxEncodedLen`)
/// Storage: `Scheduler::Agenda` (r:1 w:1)
/// Proof: `Scheduler::Agenda` (`max_values`: None, `max_size`: Some(109074), added: 111549, mode: `MaxEncodedLen`)
fn maybe_schedule_proposal() -> Weight {
// Proof Size summary in bytes:
// Measured: `368`
// Estimated: `150017`
// Minimum execution time: 55_000 nanoseconds.
Weight::from_parts(55_000_000, 150017)
// Measured: `480`
// Estimated: `156294`
// Minimum execution time: 98_532 nanoseconds.
Weight::from_parts(100_052_000, 156294)
.saturating_add(T::DbWeight::get().reads(2))
.saturating_add(T::DbWeight::get().writes(1))
}
Expand Down
Loading

0 comments on commit 93f0663

Please sign in to comment.