Skip to content

Commit

Permalink
Update weights
Browse files Browse the repository at this point in the history
  • Loading branch information
Dinonard committed Feb 7, 2024
1 parent 6319c21 commit 70e1004
Show file tree
Hide file tree
Showing 3 changed files with 122 additions and 116 deletions.
76 changes: 40 additions & 36 deletions pallets/dapp-staking-migration/src/weights.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,24 +20,24 @@
//! Autogenerated weights for pallet_dapp_staking_migration
//!
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
//! DATE: 2024-02-04, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! DATE: 2024-02-07, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! WORST CASE MAP SIZE: `1000000`
//! HOSTNAME: `gh-runner-01-ovh`, CPU: `Intel(R) Xeon(R) E-2236 CPU @ 3.40GHz`
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("shiden-dev"), DB CACHE: 1024
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("astar-dev"), DB CACHE: 1024
// Executed Command:
// ./target/release/astar-collator
// benchmark
// pallet
// --chain=shiden-dev
// --chain=astar-dev
// --steps=50
// --repeat=20
// --pallet=pallet_dapp_staking_migration
// --extrinsic=*
// --execution=wasm
// --wasm-execution=compiled
// --heap-pages=4096
// --output=./benchmark-results/shiden-dev/dapp_staking_migration_weights.rs
// --output=./benchmark-results/astar-dev/dapp_staking_migration_weights.rs
// --template=./scripts/templates/weight-template.hbs

#![cfg_attr(rustfmt, rustfmt_skip)]
Expand Down Expand Up @@ -74,8 +74,8 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
// Proof Size summary in bytes:
// Measured: `558`
// Estimated: `6112`
// Minimum execution time: 48_037_000 picoseconds.
Weight::from_parts(49_209_000, 6112)
// Minimum execution time: 47_762_000 picoseconds.
Weight::from_parts(48_426_000, 6112)
.saturating_add(T::DbWeight::get().reads(6_u64))
.saturating_add(T::DbWeight::get().writes(5_u64))
}
Expand All @@ -85,8 +85,8 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `3551`
// Minimum execution time: 3_226_000 picoseconds.
Weight::from_parts(3_424_000, 3551)
// Minimum execution time: 3_150_000 picoseconds.
Weight::from_parts(3_368_000, 3551)
.saturating_add(T::DbWeight::get().reads(1_u64))
}
/// Storage: DappsStaking Ledger (r:2 w:1)
Expand All @@ -99,15 +99,17 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
/// Storage: DappStaking Ledger (r:1 w:1)
/// Proof: DappStaking Ledger (max_values: None, max_size: Some(310), added: 2785, mode: MaxEncodedLen)
/// Storage: CollatorSelection Candidates (r:1 w:0)
/// Proof Skipped: CollatorSelection Candidates (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: DappStaking CurrentEraInfo (r:1 w:1)
/// Proof: DappStaking CurrentEraInfo (max_values: Some(1), max_size: Some(112), added: 607, mode: MaxEncodedLen)
fn migrate_ledger_success() -> Weight {
// Proof Size summary in bytes:
// Measured: `1749`
// Measured: `1875`
// Estimated: `6472`
// Minimum execution time: 69_988_000 picoseconds.
Weight::from_parts(70_437_000, 6472)
.saturating_add(T::DbWeight::get().reads(7_u64))
// Minimum execution time: 70_640_000 picoseconds.
Weight::from_parts(72_730_000, 6472)
.saturating_add(T::DbWeight::get().reads(8_u64))
.saturating_add(T::DbWeight::get().writes(6_u64))
}
/// Storage: DappsStaking Ledger (r:1 w:0)
Expand All @@ -116,8 +118,8 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `3731`
// Minimum execution time: 3_019_000 picoseconds.
Weight::from_parts(3_197_000, 3731)
// Minimum execution time: 2_769_000 picoseconds.
Weight::from_parts(2_894_000, 3731)
.saturating_add(T::DbWeight::get().reads(1_u64))
}
/// Storage: DappsStaking Ledger (r:6 w:5)
Expand All @@ -127,10 +129,10 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
// Proof Size summary in bytes:
// Measured: `700 + x * (40 ±0)`
// Estimated: `3731 + x * (2741 ±0)`
// Minimum execution time: 6_873_000 picoseconds.
Weight::from_parts(6_629_732, 3731)
// Standard Error: 7_063
.saturating_add(Weight::from_parts(688_886, 0).saturating_mul(x.into()))
// Minimum execution time: 6_830_000 picoseconds.
Weight::from_parts(6_598_680, 3731)
// Standard Error: 6_203
.saturating_add(Weight::from_parts(686_141, 0).saturating_mul(x.into()))
.saturating_add(T::DbWeight::get().reads(1_u64))
.saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(x.into())))
.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(x.into())))
Expand All @@ -140,8 +142,8 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `0`
// Minimum execution time: 2_144_000 picoseconds.
Weight::from_parts(2_233_000, 0)
// Minimum execution time: 2_017_000 picoseconds.
Weight::from_parts(2_116_000, 0)
}
}

Expand All @@ -161,8 +163,8 @@ impl WeightInfo for () {
// Proof Size summary in bytes:
// Measured: `558`
// Estimated: `6112`
// Minimum execution time: 48_037_000 picoseconds.
Weight::from_parts(49_209_000, 6112)
// Minimum execution time: 47_762_000 picoseconds.
Weight::from_parts(48_426_000, 6112)
.saturating_add(RocksDbWeight::get().reads(6_u64))
.saturating_add(RocksDbWeight::get().writes(5_u64))
}
Expand All @@ -172,8 +174,8 @@ impl WeightInfo for () {
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `3551`
// Minimum execution time: 3_226_000 picoseconds.
Weight::from_parts(3_424_000, 3551)
// Minimum execution time: 3_150_000 picoseconds.
Weight::from_parts(3_368_000, 3551)
.saturating_add(RocksDbWeight::get().reads(1_u64))
}
/// Storage: DappsStaking Ledger (r:2 w:1)
Expand All @@ -186,15 +188,17 @@ impl WeightInfo for () {
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
/// Storage: DappStaking Ledger (r:1 w:1)
/// Proof: DappStaking Ledger (max_values: None, max_size: Some(310), added: 2785, mode: MaxEncodedLen)
/// Storage: CollatorSelection Candidates (r:1 w:0)
/// Proof Skipped: CollatorSelection Candidates (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: DappStaking CurrentEraInfo (r:1 w:1)
/// Proof: DappStaking CurrentEraInfo (max_values: Some(1), max_size: Some(112), added: 607, mode: MaxEncodedLen)
fn migrate_ledger_success() -> Weight {
// Proof Size summary in bytes:
// Measured: `1749`
// Measured: `1875`
// Estimated: `6472`
// Minimum execution time: 69_988_000 picoseconds.
Weight::from_parts(70_437_000, 6472)
.saturating_add(RocksDbWeight::get().reads(7_u64))
// Minimum execution time: 70_640_000 picoseconds.
Weight::from_parts(72_730_000, 6472)
.saturating_add(RocksDbWeight::get().reads(8_u64))
.saturating_add(RocksDbWeight::get().writes(6_u64))
}
/// Storage: DappsStaking Ledger (r:1 w:0)
Expand All @@ -203,8 +207,8 @@ impl WeightInfo for () {
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `3731`
// Minimum execution time: 3_019_000 picoseconds.
Weight::from_parts(3_197_000, 3731)
// Minimum execution time: 2_769_000 picoseconds.
Weight::from_parts(2_894_000, 3731)
.saturating_add(RocksDbWeight::get().reads(1_u64))
}
/// Storage: DappsStaking Ledger (r:6 w:5)
Expand All @@ -214,10 +218,10 @@ impl WeightInfo for () {
// Proof Size summary in bytes:
// Measured: `700 + x * (40 ±0)`
// Estimated: `3731 + x * (2741 ±0)`
// Minimum execution time: 6_873_000 picoseconds.
Weight::from_parts(6_629_732, 3731)
// Standard Error: 7_063
.saturating_add(Weight::from_parts(688_886, 0).saturating_mul(x.into()))
// Minimum execution time: 6_830_000 picoseconds.
Weight::from_parts(6_598_680, 3731)
// Standard Error: 6_203
.saturating_add(Weight::from_parts(686_141, 0).saturating_mul(x.into()))
.saturating_add(RocksDbWeight::get().reads(1_u64))
.saturating_add(RocksDbWeight::get().reads((1_u64).saturating_mul(x.into())))
.saturating_add(RocksDbWeight::get().writes((1_u64).saturating_mul(x.into())))
Expand All @@ -227,7 +231,7 @@ impl WeightInfo for () {
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `0`
// Minimum execution time: 2_144_000 picoseconds.
Weight::from_parts(2_233_000, 0)
// Minimum execution time: 2_017_000 picoseconds.
Weight::from_parts(2_116_000, 0)
}
}
Loading

0 comments on commit 70e1004

Please sign in to comment.