-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
74523df
commit 1032fb7
Showing
10 changed files
with
76 additions
and
21 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
// This file is part of Darwinia. | ||
// | ||
// Copyright (C) 2018-2021 Darwinia Network | ||
// SPDX-License-Identifier: GPL-3.0 | ||
// | ||
// Darwinia is free software: you can redistribute it and/or modify | ||
// it under the terms of the GNU General Public License as published by | ||
// the Free Software Foundation, either version 3 of the License, or | ||
// (at your option) any later version. | ||
// | ||
// Darwinia is distributed in the hope that it will be useful, | ||
// but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
// GNU General Public License for more details. | ||
// | ||
// You should have received a copy of the GNU General Public License | ||
// along with Darwinia. If not, see <https://www.gnu.org/licenses/>. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,40 +1,81 @@ | ||
// Copyright 2017-2021 Parity Technologies (UK) Ltd. | ||
// This file is part of Polkadot. | ||
|
||
// Polkadot is free software: you can redistribute it and/or modify | ||
// it under the terms of the GNU General Public License as published by | ||
// the Free Software Foundation, either version 3 of the License, or | ||
// (at your option) any later version. | ||
|
||
// Polkadot is distributed in the hope that it will be useful, | ||
// but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
// GNU General Public License for more details. | ||
|
||
// You should have received a copy of the GNU General Public License | ||
|
||
//! Autogenerated weights for frame_system | ||
//! | ||
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 3.0.0 | ||
//! DATE: 2021-08-06, STEPS: `[50, ]`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` | ||
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("crab-dev"), DB CACHE: 128 | ||
|
||
// Executed Command: | ||
// ./target/release/darwinia | ||
// benchmark | ||
// --chain=crab-dev | ||
// --steps=50 | ||
// --repeat=20 | ||
// --pallet=frame_system | ||
// --extrinsic=* | ||
// --execution=wasm | ||
// --wasm-execution=compiled | ||
// --heap-pages=4096 | ||
// --header=./file_header.txt | ||
// --output=./runtime/crab/src/weights/ | ||
|
||
#![allow(unused_parens)] | ||
#![allow(unused_imports)] | ||
|
||
use frame_support::{traits::Get, weights::Weight}; | ||
use sp_std::marker::PhantomData; | ||
|
||
/// Weight functions for frame_system. | ||
pub struct WeightInfo<T>(PhantomData<T>); | ||
impl<T: frame_system::Config> frame_system::WeightInfo for WeightInfo<T> { | ||
fn remark(_b: u32) -> Weight { | ||
(1_815_000 as Weight) | ||
(1_058_000 as Weight) | ||
} | ||
fn remark_with_event(b: u32) -> Weight { | ||
(9_697_000 as Weight) | ||
(0 as Weight) | ||
// Standard Error: 0 | ||
.saturating_add((1_000 as Weight).saturating_mul(b as Weight)) | ||
.saturating_add(T::DbWeight::get().reads(4 as Weight)) | ||
.saturating_add(T::DbWeight::get().writes(2 as Weight)) | ||
} | ||
fn set_heap_pages() -> Weight { | ||
(2_463_000 as Weight).saturating_add(T::DbWeight::get().writes(1 as Weight)) | ||
(1_724_000 as Weight).saturating_add(T::DbWeight::get().writes(1 as Weight)) | ||
} | ||
fn set_changes_trie_config() -> Weight { | ||
(11_280_000 as Weight) | ||
(9_478_000 as Weight) | ||
.saturating_add(T::DbWeight::get().reads(1 as Weight)) | ||
.saturating_add(T::DbWeight::get().writes(2 as Weight)) | ||
} | ||
fn set_storage(i: u32) -> Weight { | ||
(0 as Weight) | ||
.saturating_add((821_000 as Weight).saturating_mul(i as Weight)) | ||
// Standard Error: 1_000 | ||
.saturating_add((669_000 as Weight).saturating_mul(i as Weight)) | ||
.saturating_add(T::DbWeight::get().writes((1 as Weight).saturating_mul(i as Weight))) | ||
} | ||
fn kill_storage(i: u32) -> Weight { | ||
(0 as Weight) | ||
.saturating_add((549_000 as Weight).saturating_mul(i as Weight)) | ||
// Standard Error: 1_000 | ||
.saturating_add((481_000 as Weight).saturating_mul(i as Weight)) | ||
.saturating_add(T::DbWeight::get().writes((1 as Weight).saturating_mul(i as Weight))) | ||
} | ||
fn kill_prefix(p: u32) -> Weight { | ||
(0 as Weight) | ||
.saturating_add((872_000 as Weight).saturating_mul(p as Weight)) | ||
// Standard Error: 9_000 | ||
.saturating_add((1_019_000 as Weight).saturating_mul(p as Weight)) | ||
.saturating_add(T::DbWeight::get().writes((1 as Weight).saturating_mul(p as Weight))) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters