|
| 1 | +// This file is part of Bifrost. |
| 2 | + |
| 3 | +// Copyright (C) 2019-2021 Liebi Technologies (UK) Ltd. |
| 4 | +// SPDX-License-Identifier: GPL-3.0-or-later WITH Classpath-exception-2.0 |
| 5 | + |
| 6 | +// This program is free software: you can redistribute it and/or modify |
| 7 | +// it under the terms of the GNU General Public License as published by |
| 8 | +// the Free Software Foundation, either version 3 of the License, or |
| 9 | +// (at your option) any later version. |
| 10 | + |
| 11 | +// This program is distributed in the hope that it will be useful, |
| 12 | +// but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 13 | +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 14 | +// GNU General Public License for more details. |
| 15 | + |
| 16 | +// You should have received a copy of the GNU General Public License |
| 17 | +// along with this program. If not, see <https://www.gnu.org/licenses/>. |
| 18 | + |
| 19 | +//! Autogenerated weights for frame_system |
| 20 | +//! |
| 21 | +//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 3.0.0 |
| 22 | +//! DATE: 2021-08-18, STEPS: `[50, ]`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` |
| 23 | +//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("bifrost-genesis"), DB CACHE: 128 |
| 24 | +
|
| 25 | +// Executed Command: |
| 26 | +// target/debug/bifrost |
| 27 | +// benchmark |
| 28 | +// --chain=bifrost-genesis |
| 29 | +// --steps=50 |
| 30 | +// --repeat=20 |
| 31 | +// --pallet=frame_system |
| 32 | +// --extrinsic=* |
| 33 | +// --execution=wasm |
| 34 | +// --wasm-execution=compiled |
| 35 | +// --heap-pages=4096 |
| 36 | +// --header=./HEADER-GPL3 |
| 37 | +// --output=./runtime/bifrost/src/weights/ |
| 38 | + |
| 39 | +#![allow(unused_parens)] |
| 40 | +#![allow(unused_imports)] |
| 41 | + |
| 42 | +use frame_support::{traits::Get, weights::Weight}; |
| 43 | +use sp_std::marker::PhantomData; |
| 44 | + |
| 45 | +/// Weight functions for frame_system. |
| 46 | +pub struct WeightInfo<T>(PhantomData<T>); |
| 47 | +impl<T: frame_system::Config> frame_system::WeightInfo for WeightInfo<T> { |
| 48 | + fn remark(_b: u32) -> Weight { |
| 49 | + (51_052_000 as Weight) |
| 50 | + } |
| 51 | + fn remark_with_event(b: u32) -> Weight { |
| 52 | + (1_623_480_000 as Weight) |
| 53 | + // Standard Error: 0 |
| 54 | + .saturating_add((2_000 as Weight).saturating_mul(b as Weight)) |
| 55 | + .saturating_add(T::DbWeight::get().reads(4 as Weight)) |
| 56 | + .saturating_add(T::DbWeight::get().writes(2 as Weight)) |
| 57 | + } |
| 58 | + fn set_heap_pages() -> Weight { |
| 59 | + (73_328_000 as Weight).saturating_add(T::DbWeight::get().writes(1 as Weight)) |
| 60 | + } |
| 61 | + fn set_changes_trie_config() -> Weight { |
| 62 | + (373_044_000 as Weight) |
| 63 | + .saturating_add(T::DbWeight::get().reads(1 as Weight)) |
| 64 | + .saturating_add(T::DbWeight::get().writes(2 as Weight)) |
| 65 | + } |
| 66 | + fn set_storage(i: u32) -> Weight { |
| 67 | + (358_763_000 as Weight) |
| 68 | + // Standard Error: 311_000 |
| 69 | + .saturating_add((27_904_000 as Weight).saturating_mul(i as Weight)) |
| 70 | + .saturating_add(T::DbWeight::get().writes((1 as Weight).saturating_mul(i as Weight))) |
| 71 | + } |
| 72 | + fn kill_storage(i: u32) -> Weight { |
| 73 | + (0 as Weight) |
| 74 | + // Standard Error: 242_000 |
| 75 | + .saturating_add((24_201_000 as Weight).saturating_mul(i as Weight)) |
| 76 | + .saturating_add(T::DbWeight::get().writes((1 as Weight).saturating_mul(i as Weight))) |
| 77 | + } |
| 78 | + fn kill_prefix(p: u32) -> Weight { |
| 79 | + (1_234_472_000 as Weight) |
| 80 | + // Standard Error: 531_000 |
| 81 | + .saturating_add((45_655_000 as Weight).saturating_mul(p as Weight)) |
| 82 | + .saturating_add(T::DbWeight::get().writes((1 as Weight).saturating_mul(p as Weight))) |
| 83 | + } |
| 84 | +} |
0 commit comments