New Weights for All Pallets (#12325)

* new weights for everything

* fix

* fmt

* new batch

* fmt

* new batch

* Update run_all_benchmarks.sh

* add headers

* update weights

* Update lib.rs

* block and extrinsic weight
This commit is contained in:
Shawn Tabrizi
2022-11-08 14:50:28 -04:00
committed by GitHub
parent e4c341e023
commit 78cddd7631
43 changed files with 4169 additions and 3264 deletions
@@ -7,7 +7,7 @@
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
@@ -18,7 +18,8 @@
//! Autogenerated weights for pallet_state_trie_migration
//!
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
//! DATE: 2022-05-24, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! DATE: 2022-11-07, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! HOSTNAME: `bm2`, CPU: `Intel(R) Core(TM) i7-7700K CPU @ 4.20GHz`
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024
// Executed Command:
@@ -32,8 +33,10 @@
// --extrinsic=*
// --execution=wasm
// --wasm-execution=compiled
// --template=./.maintain/frame-weight-template.hbs
// --heap-pages=4096
// --output=./frame/state-trie-migration/src/weights.rs
// --header=./HEADER-APACHE2
// --template=./.maintain/frame-weight-template.hbs
#![cfg_attr(rustfmt, rustfmt_skip)]
#![allow(unused_parens)]
@@ -59,38 +62,46 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
// Storage: StateTrieMigration SignedMigrationMaxLimits (r:1 w:0)
// Storage: StateTrieMigration MigrationProcess (r:1 w:1)
fn continue_migrate() -> Weight {
Weight::from_ref_time(19_019_000 as u64)
// Minimum execution time: 23_874 nanoseconds.
Weight::from_ref_time(24_127_000 as u64)
.saturating_add(T::DbWeight::get().reads(2 as u64))
.saturating_add(T::DbWeight::get().writes(1 as u64))
}
// Storage: StateTrieMigration SignedMigrationMaxLimits (r:1 w:0)
fn continue_migrate_wrong_witness() -> Weight {
Weight::from_ref_time(1_874_000 as u64)
// Minimum execution time: 6_119 nanoseconds.
Weight::from_ref_time(6_325_000 as u64)
.saturating_add(T::DbWeight::get().reads(1 as u64))
}
fn migrate_custom_top_success() -> Weight {
Weight::from_ref_time(16_381_000 as u64)
// Minimum execution time: 20_365 nanoseconds.
Weight::from_ref_time(20_790_000 as u64)
}
// Storage: unknown [0x666f6f] (r:1 w:1)
fn migrate_custom_top_fail() -> Weight {
Weight::from_ref_time(25_966_000 as u64)
// Minimum execution time: 38_979 nanoseconds.
Weight::from_ref_time(40_271_000 as u64)
.saturating_add(T::DbWeight::get().reads(1 as u64))
.saturating_add(T::DbWeight::get().writes(1 as u64))
}
fn migrate_custom_child_success() -> Weight {
Weight::from_ref_time(16_712_000 as u64)
// Minimum execution time: 21_217 nanoseconds.
Weight::from_ref_time(21_526_000 as u64)
}
// Storage: unknown [0x666f6f] (r:1 w:1)
fn migrate_custom_child_fail() -> Weight {
Weight::from_ref_time(29_885_000 as u64)
// Minimum execution time: 43_853 nanoseconds.
Weight::from_ref_time(44_693_000 as u64)
.saturating_add(T::DbWeight::get().reads(1 as u64))
.saturating_add(T::DbWeight::get().writes(1 as u64))
}
// Storage: unknown [0x6b6579] (r:1 w:1)
/// The range of component `v` is `[1, 4194304]`.
fn process_top_key(v: u32, ) -> Weight {
Weight::from_ref_time(0 as u64)
// Standard Error: 0
.saturating_add(Weight::from_ref_time(2_000 as u64).saturating_mul(v as u64))
// Minimum execution time: 5_575 nanoseconds.
Weight::from_ref_time(5_719_000 as u64)
// Standard Error: 3
.saturating_add(Weight::from_ref_time(1_404 as u64).saturating_mul(v as u64))
.saturating_add(T::DbWeight::get().reads(1 as u64))
.saturating_add(T::DbWeight::get().writes(1 as u64))
}
@@ -101,38 +112,46 @@ impl WeightInfo for () {
// Storage: StateTrieMigration SignedMigrationMaxLimits (r:1 w:0)
// Storage: StateTrieMigration MigrationProcess (r:1 w:1)
fn continue_migrate() -> Weight {
Weight::from_ref_time(19_019_000 as u64)
// Minimum execution time: 23_874 nanoseconds.
Weight::from_ref_time(24_127_000 as u64)
.saturating_add(RocksDbWeight::get().reads(2 as u64))
.saturating_add(RocksDbWeight::get().writes(1 as u64))
}
// Storage: StateTrieMigration SignedMigrationMaxLimits (r:1 w:0)
fn continue_migrate_wrong_witness() -> Weight {
Weight::from_ref_time(1_874_000 as u64)
// Minimum execution time: 6_119 nanoseconds.
Weight::from_ref_time(6_325_000 as u64)
.saturating_add(RocksDbWeight::get().reads(1 as u64))
}
fn migrate_custom_top_success() -> Weight {
Weight::from_ref_time(16_381_000 as u64)
// Minimum execution time: 20_365 nanoseconds.
Weight::from_ref_time(20_790_000 as u64)
}
// Storage: unknown [0x666f6f] (r:1 w:1)
fn migrate_custom_top_fail() -> Weight {
Weight::from_ref_time(25_966_000 as u64)
// Minimum execution time: 38_979 nanoseconds.
Weight::from_ref_time(40_271_000 as u64)
.saturating_add(RocksDbWeight::get().reads(1 as u64))
.saturating_add(RocksDbWeight::get().writes(1 as u64))
}
fn migrate_custom_child_success() -> Weight {
Weight::from_ref_time(16_712_000 as u64)
// Minimum execution time: 21_217 nanoseconds.
Weight::from_ref_time(21_526_000 as u64)
}
// Storage: unknown [0x666f6f] (r:1 w:1)
fn migrate_custom_child_fail() -> Weight {
Weight::from_ref_time(29_885_000 as u64)
// Minimum execution time: 43_853 nanoseconds.
Weight::from_ref_time(44_693_000 as u64)
.saturating_add(RocksDbWeight::get().reads(1 as u64))
.saturating_add(RocksDbWeight::get().writes(1 as u64))
}
// Storage: unknown [0x6b6579] (r:1 w:1)
/// The range of component `v` is `[1, 4194304]`.
fn process_top_key(v: u32, ) -> Weight {
Weight::from_ref_time(0 as u64)
// Standard Error: 0
.saturating_add(Weight::from_ref_time(2_000 as u64).saturating_mul(v as u64))
// Minimum execution time: 5_575 nanoseconds.
Weight::from_ref_time(5_719_000 as u64)
// Standard Error: 3
.saturating_add(Weight::from_ref_time(1_404 as u64).saturating_mul(v as u64))
.saturating_add(RocksDbWeight::get().reads(1 as u64))
.saturating_add(RocksDbWeight::get().writes(1 as u64))
}