This repository was archived by the owner on Nov 15, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Update Polkadot Weights for Substrate 2.0 #1761
Merged
Merged
Changes from all commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
910d456
Update benchmark list
shawntabrizi a42f131
copy weights from substrate
shawntabrizi 364f682
Run benchmarks on Polkadot
shawntabrizi ed59b9e
Update kusama benchmark list
shawntabrizi a0bb00e
update westend benchmark list
shawntabrizi 17e46ed
Run benchmarks on Kusama
shawntabrizi 29af1f0
update payout staking weights
shawntabrizi 9d9ffa2
cargo update -p sp-io
shawntabrizi 4e167fa
remove babe and grandpa from benchmark list
shawntabrizi c97e2d9
remove babe and grandpa weights
shawntabrizi be25280
re-run staking weights
shawntabrizi 74b03a6
update staking weights
shawntabrizi f4530c9
copy weights from Polkadot into Westend
shawntabrizi f012b14
Merge branch 'master' into shawntabrizi-new-weights
shawntabrizi af648c4
Update Cargo.lock
shawntabrizi File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 hidden or 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 hidden or 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 hidden or 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,58 +1,59 @@ | ||
| // This file is part of Substrate. | ||
| // Copyright 2017-2020 Parity Technologies (UK) Ltd. | ||
| // This file is part of Polkadot. | ||
|
|
||
| // Copyright (C) 2017-2020 Parity Technologies (UK) Ltd. | ||
| // SPDX-License-Identifier: Apache-2.0 | ||
| // 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. | ||
|
|
||
| // Licensed under the Apache License, Version 2.0 (the "License"); | ||
| // 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 | ||
| // | ||
| // Unless required by applicable law or agreed to in writing, software | ||
| // distributed under the License is distributed on an "AS IS" BASIS, | ||
| // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| // See the License for the specific language governing permissions and | ||
| // limitations under the License. | ||
| // 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. | ||
|
|
||
| //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 2.0.0-rc5 | ||
| // You should have received a copy of the GNU General Public License | ||
| // along with Polkadot. If not, see <http://www.gnu.org/licenses/>. | ||
| //! Weights for frame_system | ||
| //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 2.0.0 | ||
| //! DATE: 2020-09-28, STEPS: [50], REPEAT: 20, LOW RANGE: [], HIGH RANGE: [] | ||
|
|
||
| #![allow(unused_parens)] | ||
| #![allow(unused_imports)] | ||
|
|
||
| use frame_support::weights::{Weight, constants::RocksDbWeight as DbWeight}; | ||
| use frame_support::{traits::Get, weights::Weight}; | ||
| use sp_std::marker::PhantomData; | ||
|
|
||
| pub struct WeightInfo; | ||
| impl frame_system::WeightInfo for WeightInfo { | ||
| pub struct WeightInfo<T>(PhantomData<T>); | ||
| impl<T: frame_system::Trait> frame_system::WeightInfo for WeightInfo<T> { | ||
| // WARNING! Some components were not used: ["b"] | ||
| fn remark() -> Weight { | ||
| (1305000 as Weight) | ||
| (1_861_000 as Weight) | ||
| } | ||
| fn set_heap_pages() -> Weight { | ||
| (2023000 as Weight) | ||
| .saturating_add(DbWeight::get().writes(1 as Weight)) | ||
| (2_431_000 as Weight) | ||
| .saturating_add(T::DbWeight::get().writes(1 as Weight)) | ||
| } | ||
| // WARNING! Some components were not used: ["d"] | ||
| fn set_changes_trie_config() -> Weight { | ||
| (10026000 as Weight) | ||
| .saturating_add(DbWeight::get().reads(1 as Weight)) | ||
| .saturating_add(DbWeight::get().writes(2 as Weight)) | ||
| (9_680_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((656000 as Weight).saturating_mul(i as Weight)) | ||
| .saturating_add(DbWeight::get().writes((1 as Weight).saturating_mul(i as Weight))) | ||
| .saturating_add((793_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 { | ||
| (4327000 as Weight) | ||
| .saturating_add((478000 as Weight).saturating_mul(i as Weight)) | ||
| .saturating_add(DbWeight::get().writes((1 as Weight).saturating_mul(i as Weight))) | ||
| (0 as Weight) | ||
| .saturating_add((552_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 { | ||
| (8349000 as Weight) | ||
| .saturating_add((838000 as Weight).saturating_mul(p as Weight)) | ||
| .saturating_add(DbWeight::get().writes((1 as Weight).saturating_mul(p as Weight))) | ||
| (0 as Weight) | ||
| .saturating_add((865_000 as Weight).saturating_mul(p as Weight)) | ||
| .saturating_add(T::DbWeight::get().writes((1 as Weight).saturating_mul(p as Weight))) | ||
| } | ||
| fn suicide() -> Weight { | ||
| (29247000 as Weight) | ||
| (35_363_000 as Weight) | ||
| } | ||
| } | ||
This file contains hidden or 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,30 +1,34 @@ | ||
| // Copyright 2019-2020 Parity Technologies (UK) Ltd. | ||
| // This file is part of Polkadot. | ||
| // Copyright (C) 2020 Parity Technologies (UK) Ltd. | ||
| // SPDX-License-Identifier: Apache-2.0 | ||
|
|
||
| // 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. | ||
| // Licensed under the Apache License, Version 2.0 (the "License"); | ||
| // 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 | ||
| // | ||
| // Unless required by applicable law or agreed to in writing, software | ||
| // distributed under the License is distributed on an "AS IS" BASIS, | ||
| // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| // See the License for the specific language governing permissions and | ||
| // limitations under the License. | ||
|
|
||
| // 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 | ||
| // along with Polkadot. If not, see <http://www.gnu.org/licenses/>. | ||
|
|
||
| /// A collection of weight modules used for pallets in the runtime. | ||
| //! A list of the different weight modules for our runtime. | ||
|
|
||
| pub mod frame_system; | ||
| pub mod pallet_balances; | ||
| pub mod pallet_collective; | ||
| pub mod pallet_democracy; | ||
| pub mod pallet_elections_phragmen; | ||
| pub mod pallet_identity; | ||
| pub mod pallet_im_online; | ||
| pub mod pallet_indices; | ||
| pub mod pallet_multisig; | ||
| pub mod pallet_proxy; | ||
| pub mod pallet_scheduler; | ||
| pub mod pallet_session; | ||
| pub mod pallet_staking; | ||
| pub mod pallet_timestamp; | ||
| pub mod pallet_treasury; | ||
| pub mod pallet_utility; | ||
| pub mod pallet_vesting; | ||
| pub mod pallet_elections_phragmen; |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.