|
| 1 | +// Copyright 2017-2021 Parity Technologies (UK) Ltd. |
| 2 | +// This file is part of Polkadot. |
| 3 | + |
| 4 | +// Polkadot is free software: you can redistribute it and/or modify |
| 5 | +// it under the terms of the GNU General Public License as published by |
| 6 | +// the Free Software Foundation, either version 3 of the License, or |
| 7 | +// (at your option) any later version. |
| 8 | + |
| 9 | +// Polkadot is distributed in the hope that it will be useful, |
| 10 | +// but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 11 | +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 12 | +// GNU General Public License for more details. |
| 13 | + |
| 14 | +// You should have received a copy of the GNU General Public License |
| 15 | + |
| 16 | +//! Autogenerated weights for frame_system |
| 17 | +//! |
| 18 | +//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 3.0.0 |
| 19 | +//! DATE: 2021-08-06, STEPS: `[50, ]`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` |
| 20 | +//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("crab-dev"), DB CACHE: 128 |
| 21 | +
|
| 22 | +// Executed Command: |
| 23 | +// ./target/release/darwinia |
| 24 | +// benchmark |
| 25 | +// --chain=crab-dev |
| 26 | +// --steps=50 |
| 27 | +// --repeat=20 |
| 28 | +// --pallet=frame_system |
| 29 | +// --extrinsic=* |
| 30 | +// --execution=wasm |
| 31 | +// --wasm-execution=compiled |
| 32 | +// --heap-pages=4096 |
| 33 | +// --header=./file_header.txt |
| 34 | +// --output=./runtime/crab/src/weights/ |
| 35 | + |
1 | 36 | #![allow(unused_parens)]
|
2 | 37 | #![allow(unused_imports)]
|
3 | 38 |
|
4 | 39 | use frame_support::{traits::Get, weights::Weight};
|
5 | 40 | use sp_std::marker::PhantomData;
|
6 | 41 |
|
| 42 | +/// Weight functions for frame_system. |
7 | 43 | pub struct WeightInfo<T>(PhantomData<T>);
|
8 | 44 | impl<T: frame_system::Config> frame_system::WeightInfo for WeightInfo<T> {
|
9 | 45 | fn remark(_b: u32) -> Weight {
|
10 |
| - (1_815_000 as Weight) |
| 46 | + (1_058_000 as Weight) |
11 | 47 | }
|
12 | 48 | fn remark_with_event(b: u32) -> Weight {
|
13 |
| - (9_697_000 as Weight) |
| 49 | + (0 as Weight) |
14 | 50 | // Standard Error: 0
|
15 | 51 | .saturating_add((1_000 as Weight).saturating_mul(b as Weight))
|
| 52 | + .saturating_add(T::DbWeight::get().reads(4 as Weight)) |
| 53 | + .saturating_add(T::DbWeight::get().writes(2 as Weight)) |
16 | 54 | }
|
17 | 55 | fn set_heap_pages() -> Weight {
|
18 |
| - (2_463_000 as Weight).saturating_add(T::DbWeight::get().writes(1 as Weight)) |
| 56 | + (1_724_000 as Weight).saturating_add(T::DbWeight::get().writes(1 as Weight)) |
19 | 57 | }
|
20 | 58 | fn set_changes_trie_config() -> Weight {
|
21 |
| - (11_280_000 as Weight) |
| 59 | + (9_478_000 as Weight) |
22 | 60 | .saturating_add(T::DbWeight::get().reads(1 as Weight))
|
23 | 61 | .saturating_add(T::DbWeight::get().writes(2 as Weight))
|
24 | 62 | }
|
25 | 63 | fn set_storage(i: u32) -> Weight {
|
26 | 64 | (0 as Weight)
|
27 |
| - .saturating_add((821_000 as Weight).saturating_mul(i as Weight)) |
| 65 | + // Standard Error: 1_000 |
| 66 | + .saturating_add((669_000 as Weight).saturating_mul(i as Weight)) |
28 | 67 | .saturating_add(T::DbWeight::get().writes((1 as Weight).saturating_mul(i as Weight)))
|
29 | 68 | }
|
30 | 69 | fn kill_storage(i: u32) -> Weight {
|
31 | 70 | (0 as Weight)
|
32 |
| - .saturating_add((549_000 as Weight).saturating_mul(i as Weight)) |
| 71 | + // Standard Error: 1_000 |
| 72 | + .saturating_add((481_000 as Weight).saturating_mul(i as Weight)) |
33 | 73 | .saturating_add(T::DbWeight::get().writes((1 as Weight).saturating_mul(i as Weight)))
|
34 | 74 | }
|
35 | 75 | fn kill_prefix(p: u32) -> Weight {
|
36 | 76 | (0 as Weight)
|
37 |
| - .saturating_add((872_000 as Weight).saturating_mul(p as Weight)) |
| 77 | + // Standard Error: 9_000 |
| 78 | + .saturating_add((1_019_000 as Weight).saturating_mul(p as Weight)) |
38 | 79 | .saturating_add(T::DbWeight::get().writes((1 as Weight).saturating_mul(p as Weight)))
|
39 | 80 | }
|
40 | 81 | }
|
0 commit comments