Skip to content

Commit

Permalink
add calamari weights
Browse files Browse the repository at this point in the history
Signed-off-by: Charles Ferrell <[email protected]>
  • Loading branch information
ferrell-code committed May 20, 2024
1 parent 181a648 commit ec5bdec
Show file tree
Hide file tree
Showing 25 changed files with 4,527 additions and 4,286 deletions.
142 changes: 71 additions & 71 deletions runtime/calamari/src/weights/calamari_vesting.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
//! Autogenerated weights for calamari_vesting
//!
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
//! DATE: 2023-12-21, STEPS: `50`, REPEAT: 40, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("/home/aye/actions-runner/_worker/Manta/Manta/tests/data/fork.json"), DB CACHE: 1024
//! DATE: 2024-05-20, STEPS: `50`, REPEAT: 40, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! EXECUTION: , WASM-EXECUTION: Compiled, CHAIN: Some("/home/aye/actions-runner/_worker/Manta/Manta/tests/data/fork.json"), DB CACHE: 1024

// Executed Command:
// ./target/production/manta
Expand Down Expand Up @@ -53,118 +53,118 @@ pub trait WeightInfo {
/// Weights for calamari_vesting using the Substrate node and recommended hardware.
pub struct SubstrateWeight<T>(PhantomData<T>);
impl<T: frame_system::Config> calamari_vesting::WeightInfo for SubstrateWeight<T> {
/// Storage: CalamariVesting VestingSchedule (r:1 w:1)
/// Proof Skipped: CalamariVesting VestingSchedule (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: Timestamp Now (r:1 w:0)
/// Proof: Timestamp Now (max_values: Some(1), max_size: Some(8), added: 503, mode: MaxEncodedLen)
/// Storage: `CalamariVesting::VestingSchedule` (r:1 w:1)
/// Proof: `CalamariVesting::VestingSchedule` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// Storage: `Timestamp::Now` (r:1 w:0)
/// Proof: `Timestamp::Now` (`max_values`: Some(1), `max_size`: Some(8), added: 503, mode: `MaxEncodedLen`)
fn update_vesting_schedule() -> Weight {
// Proof Size summary in bytes:
// Measured: `118`
// Estimated: `1603`
// Minimum execution time: 14_378_000 picoseconds.
Weight::from_parts(14_809_000, 1603)
// Minimum execution time: 10_498_000 picoseconds.
Weight::from_parts(10_860_000, 1603)
.saturating_add(T::DbWeight::get().reads(2_u64))
.saturating_add(T::DbWeight::get().writes(1_u64))
}
/// Storage: Timestamp Now (r:1 w:0)
/// Proof: Timestamp Now (max_values: Some(1), max_size: Some(8), added: 503, mode: MaxEncodedLen)
/// Storage: CalamariVesting VestingSchedule (r:1 w:0)
/// Proof Skipped: CalamariVesting VestingSchedule (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: CalamariVesting VestingBalances (r:1 w:1)
/// Proof Skipped: CalamariVesting VestingBalances (max_values: None, max_size: None, mode: Measured)
/// Storage: Balances Locks (r:1 w:1)
/// Proof: Balances Locks (max_values: None, max_size: Some(1299), added: 3774, mode: MaxEncodedLen)
/// Storage: Balances Freezes (r:1 w:0)
/// Proof: Balances Freezes (max_values: None, max_size: Some(49), added: 2524, mode: MaxEncodedLen)
/// Storage: System Account (r:1 w:1)
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
/// Storage: `Timestamp::Now` (r:1 w:0)
/// Proof: `Timestamp::Now` (`max_values`: Some(1), `max_size`: Some(8), added: 503, mode: `MaxEncodedLen`)
/// Storage: `CalamariVesting::VestingSchedule` (r:1 w:0)
/// Proof: `CalamariVesting::VestingSchedule` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// Storage: `CalamariVesting::VestingBalances` (r:1 w:1)
/// Proof: `CalamariVesting::VestingBalances` (`max_values`: None, `max_size`: None, mode: `Measured`)
/// Storage: `Balances::Locks` (r:1 w:1)
/// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1299), added: 3774, mode: `MaxEncodedLen`)
/// Storage: `Balances::Freezes` (r:1 w:0)
/// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(49), added: 2524, mode: `MaxEncodedLen`)
/// Storage: `System::Account` (r:1 w:1)
/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
fn vest() -> Weight {
// Proof Size summary in bytes:
// Measured: `462`
// Estimated: `4764`
// Minimum execution time: 46_572_000 picoseconds.
Weight::from_parts(47_606_000, 4764)
// Minimum execution time: 38_271_000 picoseconds.
Weight::from_parts(39_097_000, 4764)
.saturating_add(T::DbWeight::get().reads(6_u64))
.saturating_add(T::DbWeight::get().writes(3_u64))
}
/// Storage: CalamariVesting VestingBalances (r:1 w:1)
/// Proof Skipped: CalamariVesting VestingBalances (max_values: None, max_size: None, mode: Measured)
/// Storage: System Account (r:1 w:1)
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
/// Storage: Timestamp Now (r:1 w:0)
/// Proof: Timestamp Now (max_values: Some(1), max_size: Some(8), added: 503, mode: MaxEncodedLen)
/// Storage: CalamariVesting VestingSchedule (r:1 w:0)
/// Proof Skipped: CalamariVesting VestingSchedule (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: Balances Locks (r:1 w:1)
/// Proof: Balances Locks (max_values: None, max_size: Some(1299), added: 3774, mode: MaxEncodedLen)
/// Storage: Balances Freezes (r:1 w:0)
/// Proof: Balances Freezes (max_values: None, max_size: Some(49), added: 2524, mode: MaxEncodedLen)
/// Storage: `CalamariVesting::VestingBalances` (r:1 w:1)
/// Proof: `CalamariVesting::VestingBalances` (`max_values`: None, `max_size`: None, mode: `Measured`)
/// Storage: `System::Account` (r:1 w:1)
/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
/// Storage: `Timestamp::Now` (r:1 w:0)
/// Proof: `Timestamp::Now` (`max_values`: Some(1), `max_size`: Some(8), added: 503, mode: `MaxEncodedLen`)
/// Storage: `CalamariVesting::VestingSchedule` (r:1 w:0)
/// Proof: `CalamariVesting::VestingSchedule` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// Storage: `Balances::Locks` (r:1 w:1)
/// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1299), added: 3774, mode: `MaxEncodedLen`)
/// Storage: `Balances::Freezes` (r:1 w:0)
/// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(49), added: 2524, mode: `MaxEncodedLen`)
fn vested_transfer() -> Weight {
// Proof Size summary in bytes:
// Measured: `232`
// Estimated: `4764`
// Minimum execution time: 84_231_000 picoseconds.
Weight::from_parts(85_418_000, 4764)
// Minimum execution time: 71_124_000 picoseconds.
Weight::from_parts(72_435_000, 4764)
.saturating_add(T::DbWeight::get().reads(6_u64))
.saturating_add(T::DbWeight::get().writes(3_u64))
}
}

// For backwards compatibility and tests
impl WeightInfo for () {
/// Storage: CalamariVesting VestingSchedule (r:1 w:1)
/// Proof Skipped: CalamariVesting VestingSchedule (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: Timestamp Now (r:1 w:0)
/// Proof: Timestamp Now (max_values: Some(1), max_size: Some(8), added: 503, mode: MaxEncodedLen)
/// Storage: `CalamariVesting::VestingSchedule` (r:1 w:1)
/// Proof: `CalamariVesting::VestingSchedule` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// Storage: `Timestamp::Now` (r:1 w:0)
/// Proof: `Timestamp::Now` (`max_values`: Some(1), `max_size`: Some(8), added: 503, mode: `MaxEncodedLen`)
fn update_vesting_schedule() -> Weight {
// Proof Size summary in bytes:
// Measured: `118`
// Estimated: `1603`
// Minimum execution time: 14_378_000 picoseconds.
Weight::from_parts(14_809_000, 1603)
// Minimum execution time: 10_498_000 picoseconds.
Weight::from_parts(10_860_000, 1603)
.saturating_add(RocksDbWeight::get().reads(2_u64))
.saturating_add(RocksDbWeight::get().writes(1_u64))
}
/// Storage: Timestamp Now (r:1 w:0)
/// Proof: Timestamp Now (max_values: Some(1), max_size: Some(8), added: 503, mode: MaxEncodedLen)
/// Storage: CalamariVesting VestingSchedule (r:1 w:0)
/// Proof Skipped: CalamariVesting VestingSchedule (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: CalamariVesting VestingBalances (r:1 w:1)
/// Proof Skipped: CalamariVesting VestingBalances (max_values: None, max_size: None, mode: Measured)
/// Storage: Balances Locks (r:1 w:1)
/// Proof: Balances Locks (max_values: None, max_size: Some(1299), added: 3774, mode: MaxEncodedLen)
/// Storage: Balances Freezes (r:1 w:0)
/// Proof: Balances Freezes (max_values: None, max_size: Some(49), added: 2524, mode: MaxEncodedLen)
/// Storage: System Account (r:1 w:1)
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
/// Storage: `Timestamp::Now` (r:1 w:0)
/// Proof: `Timestamp::Now` (`max_values`: Some(1), `max_size`: Some(8), added: 503, mode: `MaxEncodedLen`)
/// Storage: `CalamariVesting::VestingSchedule` (r:1 w:0)
/// Proof: `CalamariVesting::VestingSchedule` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// Storage: `CalamariVesting::VestingBalances` (r:1 w:1)
/// Proof: `CalamariVesting::VestingBalances` (`max_values`: None, `max_size`: None, mode: `Measured`)
/// Storage: `Balances::Locks` (r:1 w:1)
/// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1299), added: 3774, mode: `MaxEncodedLen`)
/// Storage: `Balances::Freezes` (r:1 w:0)
/// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(49), added: 2524, mode: `MaxEncodedLen`)
/// Storage: `System::Account` (r:1 w:1)
/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
fn vest() -> Weight {
// Proof Size summary in bytes:
// Measured: `462`
// Estimated: `4764`
// Minimum execution time: 46_572_000 picoseconds.
Weight::from_parts(47_606_000, 4764)
// Minimum execution time: 38_271_000 picoseconds.
Weight::from_parts(39_097_000, 4764)
.saturating_add(RocksDbWeight::get().reads(6_u64))
.saturating_add(RocksDbWeight::get().writes(3_u64))
}
/// Storage: CalamariVesting VestingBalances (r:1 w:1)
/// Proof Skipped: CalamariVesting VestingBalances (max_values: None, max_size: None, mode: Measured)
/// Storage: System Account (r:1 w:1)
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
/// Storage: Timestamp Now (r:1 w:0)
/// Proof: Timestamp Now (max_values: Some(1), max_size: Some(8), added: 503, mode: MaxEncodedLen)
/// Storage: CalamariVesting VestingSchedule (r:1 w:0)
/// Proof Skipped: CalamariVesting VestingSchedule (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: Balances Locks (r:1 w:1)
/// Proof: Balances Locks (max_values: None, max_size: Some(1299), added: 3774, mode: MaxEncodedLen)
/// Storage: Balances Freezes (r:1 w:0)
/// Proof: Balances Freezes (max_values: None, max_size: Some(49), added: 2524, mode: MaxEncodedLen)
/// Storage: `CalamariVesting::VestingBalances` (r:1 w:1)
/// Proof: `CalamariVesting::VestingBalances` (`max_values`: None, `max_size`: None, mode: `Measured`)
/// Storage: `System::Account` (r:1 w:1)
/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
/// Storage: `Timestamp::Now` (r:1 w:0)
/// Proof: `Timestamp::Now` (`max_values`: Some(1), `max_size`: Some(8), added: 503, mode: `MaxEncodedLen`)
/// Storage: `CalamariVesting::VestingSchedule` (r:1 w:0)
/// Proof: `CalamariVesting::VestingSchedule` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// Storage: `Balances::Locks` (r:1 w:1)
/// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1299), added: 3774, mode: `MaxEncodedLen`)
/// Storage: `Balances::Freezes` (r:1 w:0)
/// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(49), added: 2524, mode: `MaxEncodedLen`)
fn vested_transfer() -> Weight {
// Proof Size summary in bytes:
// Measured: `232`
// Estimated: `4764`
// Minimum execution time: 84_231_000 picoseconds.
Weight::from_parts(85_418_000, 4764)
// Minimum execution time: 71_124_000 picoseconds.
Weight::from_parts(72_435_000, 4764)
.saturating_add(RocksDbWeight::get().reads(6_u64))
.saturating_add(RocksDbWeight::get().writes(3_u64))
}
}
}
Loading

0 comments on commit ec5bdec

Please sign in to comment.