Revert back to bare metal runners for weights generation (#6762)

* Revert back to bare metal runners for weights generation

* new old weights

---------

Co-authored-by: alvicsam <alvicsam@gmail.com>
This commit is contained in:
Oleg Plakida
2023-02-23 10:50:43 +00:00
committed by GitHub
parent e5f65865fe
commit 5e7ade9037
132 changed files with 15202 additions and 7243 deletions
@@ -16,8 +16,9 @@
//! Autogenerated weights for `pallet_treasury`
//!
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
//! DATE: 2023-01-23, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! HOSTNAME: `runner-b3zmxxc-project-163-concurrent-0`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz`
//! DATE: 2023-02-22, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! WORST CASE MAP SIZE: `1000000`
//! HOSTNAME: `bm5`, CPU: `Intel(R) Core(TM) i7-7700K CPU @ 4.20GHz`
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("kusama-dev"), DB CACHE: 1024
// Executed Command:
@@ -44,64 +45,105 @@ use sp_std::marker::PhantomData;
/// Weight functions for `pallet_treasury`.
pub struct WeightInfo<T>(PhantomData<T>);
impl<T: frame_system::Config> pallet_treasury::WeightInfo for WeightInfo<T> {
// Storage: Treasury ProposalCount (r:1 w:1)
// Storage: Treasury Approvals (r:1 w:1)
// Storage: Treasury Proposals (r:0 w:1)
/// Storage: Treasury ProposalCount (r:1 w:1)
/// Proof: Treasury ProposalCount (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
/// Storage: Treasury Approvals (r:1 w:1)
/// Proof: Treasury Approvals (max_values: Some(1), max_size: Some(402), added: 897, mode: MaxEncodedLen)
/// Storage: Treasury Proposals (r:0 w:1)
/// Proof: Treasury Proposals (max_values: None, max_size: Some(108), added: 2583, mode: MaxEncodedLen)
fn spend() -> Weight {
// Minimum execution time: 18_551 nanoseconds.
Weight::from_ref_time(19_100_000)
// Proof Size summary in bytes:
// Measured: `6`
// Estimated: `1396`
// Minimum execution time: 12_816 nanoseconds.
Weight::from_ref_time(13_035_000)
.saturating_add(Weight::from_proof_size(1396))
.saturating_add(T::DbWeight::get().reads(2))
.saturating_add(T::DbWeight::get().writes(3))
}
// Storage: Treasury ProposalCount (r:1 w:1)
// Storage: Treasury Proposals (r:0 w:1)
/// Storage: Treasury ProposalCount (r:1 w:1)
/// Proof: Treasury ProposalCount (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
/// Storage: Treasury Proposals (r:0 w:1)
/// Proof: Treasury Proposals (max_values: None, max_size: Some(108), added: 2583, mode: MaxEncodedLen)
fn propose_spend() -> Weight {
// Minimum execution time: 27_449 nanoseconds.
Weight::from_ref_time(28_614_000)
// Proof Size summary in bytes:
// Measured: `139`
// Estimated: `499`
// Minimum execution time: 20_742 nanoseconds.
Weight::from_ref_time(21_323_000)
.saturating_add(Weight::from_proof_size(499))
.saturating_add(T::DbWeight::get().reads(1))
.saturating_add(T::DbWeight::get().writes(2))
}
// Storage: Treasury Proposals (r:1 w:1)
// Storage: System Account (r:1 w:1)
/// Storage: Treasury Proposals (r:1 w:1)
/// Proof: Treasury Proposals (max_values: None, max_size: Some(108), added: 2583, mode: MaxEncodedLen)
/// Storage: System Account (r:1 w:1)
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
fn reject_proposal() -> Weight {
// Minimum execution time: 41_099 nanoseconds.
Weight::from_ref_time(42_271_000)
// Proof Size summary in bytes:
// Measured: `329`
// Estimated: `5186`
// Minimum execution time: 31_487 nanoseconds.
Weight::from_ref_time(32_288_000)
.saturating_add(Weight::from_proof_size(5186))
.saturating_add(T::DbWeight::get().reads(2))
.saturating_add(T::DbWeight::get().writes(2))
}
// Storage: Treasury Proposals (r:1 w:0)
// Storage: Treasury Approvals (r:1 w:1)
/// Storage: Treasury Proposals (r:1 w:0)
/// Proof: Treasury Proposals (max_values: None, max_size: Some(108), added: 2583, mode: MaxEncodedLen)
/// Storage: Treasury Approvals (r:1 w:1)
/// Proof: Treasury Approvals (max_values: Some(1), max_size: Some(402), added: 897, mode: MaxEncodedLen)
/// The range of component `p` is `[0, 99]`.
fn approve_proposal(p: u32, ) -> Weight {
// Minimum execution time: 9_660 nanoseconds.
Weight::from_ref_time(11_986_657)
// Standard Error: 1_422
.saturating_add(Weight::from_ref_time(123_552).saturating_mul(p.into()))
// Proof Size summary in bytes:
// Measured: `464 + p * (8 ±0)`
// Estimated: `3480`
// Minimum execution time: 8_374 nanoseconds.
Weight::from_ref_time(11_219_379)
.saturating_add(Weight::from_proof_size(3480))
// Standard Error: 967
.saturating_add(Weight::from_ref_time(30_540).saturating_mul(p.into()))
.saturating_add(T::DbWeight::get().reads(2))
.saturating_add(T::DbWeight::get().writes(1))
}
// Storage: Treasury Approvals (r:1 w:1)
/// Storage: Treasury Approvals (r:1 w:1)
/// Proof: Treasury Approvals (max_values: Some(1), max_size: Some(402), added: 897, mode: MaxEncodedLen)
fn remove_approval() -> Weight {
// Minimum execution time: 7_880 nanoseconds.
Weight::from_ref_time(8_281_000)
// Proof Size summary in bytes:
// Measured: `90`
// Estimated: `897`
// Minimum execution time: 6_199 nanoseconds.
Weight::from_ref_time(6_395_000)
.saturating_add(Weight::from_proof_size(897))
.saturating_add(T::DbWeight::get().reads(1))
.saturating_add(T::DbWeight::get().writes(1))
}
// Storage: Treasury Deactivated (r:1 w:1)
// Storage: Balances InactiveIssuance (r:1 w:1)
// Storage: Treasury Approvals (r:1 w:1)
// Storage: Bounties BountyApprovals (r:1 w:1)
// Storage: System Account (r:1 w:1)
// Storage: Treasury Proposals (r:2 w:2)
/// Storage: Treasury Deactivated (r:1 w:1)
/// Proof: Treasury Deactivated (max_values: Some(1), max_size: Some(16), added: 511, mode: MaxEncodedLen)
/// Storage: Balances InactiveIssuance (r:1 w:1)
/// Proof: Balances InactiveIssuance (max_values: Some(1), max_size: Some(16), added: 511, mode: MaxEncodedLen)
/// Storage: Treasury Approvals (r:1 w:1)
/// Proof: Treasury Approvals (max_values: Some(1), max_size: Some(402), added: 897, mode: MaxEncodedLen)
/// Storage: Treasury Proposals (r:100 w:100)
/// Proof: Treasury Proposals (max_values: None, max_size: Some(108), added: 2583, mode: MaxEncodedLen)
/// Storage: System Account (r:201 w:201)
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
/// Storage: Bounties BountyApprovals (r:1 w:1)
/// Proof: Bounties BountyApprovals (max_values: Some(1), max_size: Some(402), added: 897, mode: MaxEncodedLen)
/// The range of component `p` is `[0, 100]`.
fn on_initialize_proposals(p: u32, ) -> Weight {
// Minimum execution time: 62_209 nanoseconds.
Weight::from_ref_time(70_300_386)
// Standard Error: 9_890
.saturating_add(Weight::from_ref_time(29_775_097).saturating_mul(p.into()))
// Proof Size summary in bytes:
// Measured: `326 + p * (314 ±0)`
// Estimated: `5419 + p * (7789 ±0)`
// Minimum execution time: 51_975 nanoseconds.
Weight::from_ref_time(59_018_415)
.saturating_add(Weight::from_proof_size(5419))
// Standard Error: 26_169
.saturating_add(Weight::from_ref_time(28_344_854).saturating_mul(p.into()))
.saturating_add(T::DbWeight::get().reads(5))
.saturating_add(T::DbWeight::get().reads((3_u64).saturating_mul(p.into())))
.saturating_add(T::DbWeight::get().writes(5))
.saturating_add(T::DbWeight::get().writes((3_u64).saturating_mul(p.into())))
.saturating_add(Weight::from_proof_size(7789).saturating_mul(p.into()))
}
}