Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
57 commits
Select commit Hold shift + click to select a range
ede4d52
Update references
bkchr Oct 8, 2021
cf3e4be
Merge branch 'master' of github.com:paritytech/cumulus into release-s…
apopiak Oct 12, 2021
40bef59
update deps
apopiak Oct 12, 2021
7360a62
set substrate deps for pallet-asset-tx-payment
apopiak Oct 13, 2021
79809c1
add DisabledValidatorsThreshold to parachain template
apopiak Oct 13, 2021
9e9c759
add DisabledValidatorsThreshold to statemint runtimes
apopiak Oct 13, 2021
580dfcd
adjust imports
apopiak Oct 13, 2021
5cc3c13
update Cargo-lock
apopiak Oct 13, 2021
9a28018
add DisabledValidatorsThreshold to mock config
apopiak Oct 13, 2021
efd4079
cargo +nightly fmt
apopiak Oct 13, 2021
eebadf0
adjust on_disabled type
apopiak Oct 13, 2021
0f320d8
remove on_chain_votes function in ParachainHost impl
apopiak Oct 13, 2021
cf04b27
remove ScrapedOnChainVotes
apopiak Oct 13, 2021
f8e5ece
bump polkadot-collator version
apopiak Oct 13, 2021
b4ea44a
update Cargo.lock
apopiak Oct 13, 2021
d4a202a
set spec_versions to 500
apopiak Oct 14, 2021
e632c5f
Statemine cannot execute.
gavofyork Oct 14, 2021
f2941c6
disallow XCM execute on statemint
apopiak Oct 14, 2021
7667119
cargo fmt
apopiak Oct 14, 2021
4a704cc
remove unnecessary dep on node-primitives
apopiak Oct 15, 2021
ae23b3d
select parachains-common/std feature when building rococo-runtime wit…
apopiak Oct 15, 2021
0e01e63
adjust Statemint to the three digit spec_version format
apopiak Oct 15, 2021
86ed61c
Add script to generate simple changelogs (#668)
chevdor Oct 15, 2021
72b0b8b
Update weights from v4 for v5 comparison (#673)
NachoPal Oct 18, 2021
eccc2d0
Fix benchmarks after Parachain Template (#677)
NachoPal Oct 19, 2021
1bed7c6
Weights updates for Statemine v5 (#682)
NachoPal Oct 20, 2021
8ce22ec
mention Storage in construct_runtime macro for pallet-xcm (#680)
apopiak Oct 20, 2021
8ab829f
Use pallet-xcm for version wrapping (#689)
apopiak Oct 20, 2021
6c6d7a0
patch weight for batch_all from rerun
apopiak Oct 21, 2021
a0e7189
Runtime version bump to v503 (#694)
chevdor Oct 22, 2021
35e135e
adjust genesis value generation scripts to output entries array + add…
apopiak Oct 26, 2021
4f3362a
add script to generate shell spec from runtime wasm
apopiak Oct 26, 2021
537d772
Ensure a bad datastream cannot cause problems (#701)
gavofyork Oct 27, 2021
a71e04f
update Polkadot (to 0.9.11 169bab55d)
apopiak Oct 27, 2021
2f73537
bump spec versions
apopiak Oct 27, 2021
1dab315
Allow Queries and Subscriptions
gavofyork Oct 26, 2021
c3240a7
fix build
joepetrowski Oct 27, 2021
e7aa76f
make fmt happy
joepetrowski Oct 27, 2021
215c13a
statemint imports
joepetrowski Oct 27, 2021
4932deb
slight naming changes in script
apopiak Oct 28, 2021
54f59bc
add shell genesis data + wasm + chainspec
apopiak Oct 28, 2021
b933596
adjust generated shell spec with production config values
apopiak Oct 29, 2021
40e6560
Merge branch 'release-statemine-v5' of github.com:paritytech/cumulus …
apopiak Nov 3, 2021
24377a6
update Substrate and Polkadot to master
apopiak Nov 3, 2021
d2ec4ef
fix deps
apopiak Nov 3, 2021
f9cbf07
swap out bootnodes for statemint shell
apopiak Nov 4, 2021
7f74ab2
add a script for verifying the shell chain spec
apopiak Nov 4, 2021
aec894c
add sha checksum for head data
apopiak Nov 4, 2021
07f3d6b
remove verification script
apopiak Nov 4, 2021
08e9343
remove hex wasm file
apopiak Nov 4, 2021
8c3564a
pull recent master
apopiak Nov 4, 2021
ea8b9ff
Merge branch 'release-statemint-shell' of github.com:paritytech/cumul…
apopiak Nov 4, 2021
ece1243
update Substrate and Polkadot again and fix compilation
apopiak Nov 4, 2021
153ee49
Merge branch 'master' of github.com:paritytech/cumulus into apopiak/u…
apopiak Nov 4, 2021
8132b14
update and fix lock file
apopiak Nov 4, 2021
a43ad72
formatting
apopiak Nov 4, 2021
0bd6acf
remove redundant dispatch_as weight
apopiak Nov 4, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update weights from v4 for v5 comparison (#673)
* updates weights

* pallet_unique benchmarks added + weights upstream from v4
  • Loading branch information
NachoPal authored Oct 18, 2021
commit 72b0b8b1f1611e9707e41907dc47e8366baf8ecb
154 changes: 111 additions & 43 deletions polkadot-parachains/statemine/src/weights/pallet_assets.rs
Original file line number Diff line number Diff line change
@@ -1,11 +1,27 @@
//! Autogenerated weights for pallet_assets
// Copyright 2021 Parity Technologies (UK) Ltd.
// This file is part of Cumulus.

// Cumulus 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.

// Cumulus 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 Cumulus. If not, see <http://www.gnu.org/licenses/>.

//! Autogenerated weights for `pallet_assets`
//!
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 3.0.0
//! DATE: 2021-05-31, STEPS: `[50, ]`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
//! DATE: 2021-10-04, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("statemine-dev"), DB CACHE: 128

// Executed Command:
// ./target/release/statemint
// ./target/release/polkadot-collator
// benchmark
// --chain=statemine-dev
// --execution=wasm
Expand All @@ -15,8 +31,11 @@
// --steps=50
// --repeat=20
// --raw
// --output=./runtime/statemine/src/weights/
// --header=./file_header.txt
// --output=./polkadot-parachains/statemine/src/weights


#![cfg_attr(rustfmt, rustfmt_skip)]
#![allow(unused_parens)]
#![allow(unused_imports)]

Expand All @@ -26,134 +45,183 @@ use sp_std::marker::PhantomData;
/// Weight functions for pallet_assets.
pub struct WeightInfo<T>(PhantomData<T>);
impl<T: frame_system::Config> pallet_assets::WeightInfo for WeightInfo<T> {
// Storage: Assets Asset (r:1 w:1)
fn create() -> Weight {
(44_224_000 as Weight)
(42_810_000 as Weight)
.saturating_add(T::DbWeight::get().reads(1 as Weight))
.saturating_add(T::DbWeight::get().writes(1 as Weight))
}
// Storage: Assets Asset (r:1 w:1)
fn force_create() -> Weight {
(22_533_000 as Weight)
(22_161_000 as Weight)
.saturating_add(T::DbWeight::get().reads(1 as Weight))
.saturating_add(T::DbWeight::get().writes(1 as Weight))
}
fn destroy(c: u32, s: u32, a: u32) -> Weight {
// Storage: Assets Asset (r:1 w:1)
// Storage: Assets Account (r:5002 w:5001)
// Storage: System Account (r:5000 w:5000)
// Storage: Assets Metadata (r:1 w:0)
// Storage: Assets Approvals (r:501 w:500)
fn destroy(c: u32, s: u32, a: u32, ) -> Weight {
(0 as Weight)
// Standard Error: 37_000
.saturating_add((21_529_000 as Weight).saturating_mul(c as Weight))
.saturating_add((20_291_000 as Weight).saturating_mul(c as Weight))
// Standard Error: 37_000
.saturating_add((28_905_000 as Weight).saturating_mul(s as Weight))
// Standard Error: 377_000
.saturating_add((3_745_000 as Weight).saturating_mul(a as Weight))
.saturating_add(T::DbWeight::get().reads(4 as Weight))
.saturating_add((27_058_000 as Weight).saturating_mul(s as Weight))
// Standard Error: 378_000
.saturating_add((33_069_000 as Weight).saturating_mul(a as Weight))
.saturating_add(T::DbWeight::get().reads(5 as Weight))
.saturating_add(T::DbWeight::get().reads((2 as Weight).saturating_mul(c as Weight)))
.saturating_add(T::DbWeight::get().reads((2 as Weight).saturating_mul(s as Weight)))
.saturating_add(T::DbWeight::get().reads((1 as Weight).saturating_mul(a as Weight)))
.saturating_add(T::DbWeight::get().writes(2 as Weight))
.saturating_add(T::DbWeight::get().writes((2 as Weight).saturating_mul(c as Weight)))
.saturating_add(T::DbWeight::get().writes((2 as Weight).saturating_mul(s as Weight)))
.saturating_add(T::DbWeight::get().writes((1 as Weight).saturating_mul(a as Weight)))
}
// Storage: Assets Asset (r:1 w:1)
// Storage: Assets Account (r:1 w:1)
fn mint() -> Weight {
(49_078_000 as Weight)
(48_712_000 as Weight)
.saturating_add(T::DbWeight::get().reads(2 as Weight))
.saturating_add(T::DbWeight::get().writes(2 as Weight))
}
// Storage: Assets Asset (r:1 w:1)
// Storage: Assets Account (r:1 w:1)
fn burn() -> Weight {
(55_886_000 as Weight)
(55_472_000 as Weight)
.saturating_add(T::DbWeight::get().reads(2 as Weight))
.saturating_add(T::DbWeight::get().writes(2 as Weight))
}
// Storage: Assets Asset (r:1 w:1)
// Storage: Assets Account (r:2 w:2)
// Storage: System Account (r:1 w:1)
fn transfer() -> Weight {
(84_857_000 as Weight)
(84_571_000 as Weight)
.saturating_add(T::DbWeight::get().reads(4 as Weight))
.saturating_add(T::DbWeight::get().writes(4 as Weight))
}
// Storage: Assets Asset (r:1 w:1)
// Storage: Assets Account (r:2 w:2)
// Storage: System Account (r:1 w:1)
fn transfer_keep_alive() -> Weight {
(71_330_000 as Weight)
(69_636_000 as Weight)
.saturating_add(T::DbWeight::get().reads(4 as Weight))
.saturating_add(T::DbWeight::get().writes(4 as Weight))
}
// Storage: Assets Asset (r:1 w:1)
// Storage: Assets Account (r:2 w:2)
// Storage: System Account (r:1 w:1)
fn force_transfer() -> Weight {
(85_127_000 as Weight)
(84_470_000 as Weight)
.saturating_add(T::DbWeight::get().reads(4 as Weight))
.saturating_add(T::DbWeight::get().writes(4 as Weight))
}
// Storage: Assets Asset (r:1 w:0)
// Storage: Assets Account (r:1 w:1)
fn freeze() -> Weight {
(31_403_000 as Weight)
(32_969_000 as Weight)
.saturating_add(T::DbWeight::get().reads(2 as Weight))
.saturating_add(T::DbWeight::get().writes(1 as Weight))
}
// Storage: Assets Asset (r:1 w:0)
// Storage: Assets Account (r:1 w:1)
fn thaw() -> Weight {
(31_250_000 as Weight)
(32_804_000 as Weight)
.saturating_add(T::DbWeight::get().reads(2 as Weight))
.saturating_add(T::DbWeight::get().writes(1 as Weight))
}
// Storage: Assets Asset (r:1 w:1)
fn freeze_asset() -> Weight {
(22_097_000 as Weight)
(24_490_000 as Weight)
.saturating_add(T::DbWeight::get().reads(1 as Weight))
.saturating_add(T::DbWeight::get().writes(1 as Weight))
}
// Storage: Assets Asset (r:1 w:1)
fn thaw_asset() -> Weight {
(22_245_000 as Weight)
(24_614_000 as Weight)
.saturating_add(T::DbWeight::get().reads(1 as Weight))
.saturating_add(T::DbWeight::get().writes(1 as Weight))
}
// Storage: Assets Asset (r:1 w:1)
// Storage: Assets Metadata (r:1 w:0)
fn transfer_ownership() -> Weight {
(25_479_000 as Weight)
(27_181_000 as Weight)
.saturating_add(T::DbWeight::get().reads(2 as Weight))
.saturating_add(T::DbWeight::get().writes(1 as Weight))
}
// Storage: Assets Asset (r:1 w:1)
fn set_team() -> Weight {
(22_271_000 as Weight)
(24_654_000 as Weight)
.saturating_add(T::DbWeight::get().reads(1 as Weight))
.saturating_add(T::DbWeight::get().writes(1 as Weight))
}
fn set_metadata(_n: u32, s: u32) -> Weight {
(50_315_000 as Weight)
// Standard Error: 0
.saturating_add((8_000 as Weight).saturating_mul(s as Weight))
// Storage: Assets Asset (r:1 w:0)
// Storage: Assets Metadata (r:1 w:1)
fn set_metadata(_n: u32, s: u32, ) -> Weight {
(51_018_000 as Weight)
// Standard Error: 1_000
.saturating_add((11_000 as Weight).saturating_mul(s as Weight))
.saturating_add(T::DbWeight::get().reads(2 as Weight))
.saturating_add(T::DbWeight::get().writes(1 as Weight))
}
// Storage: Assets Asset (r:1 w:0)
// Storage: Assets Metadata (r:1 w:1)
fn clear_metadata() -> Weight {
(48_134_000 as Weight)
(49_589_000 as Weight)
.saturating_add(T::DbWeight::get().reads(2 as Weight))
.saturating_add(T::DbWeight::get().writes(1 as Weight))
}
fn force_set_metadata(_n: u32, s: u32) -> Weight {
(25_933_000 as Weight)
// Storage: Assets Asset (r:1 w:0)
// Storage: Assets Metadata (r:1 w:1)
fn force_set_metadata(_n: u32, s: u32, ) -> Weight {
(27_039_000 as Weight)
// Standard Error: 0
.saturating_add((7_000 as Weight).saturating_mul(s as Weight))
.saturating_add((5_000 as Weight).saturating_mul(s as Weight))
.saturating_add(T::DbWeight::get().reads(2 as Weight))
.saturating_add(T::DbWeight::get().writes(1 as Weight))
}
// Storage: Assets Asset (r:1 w:0)
// Storage: Assets Metadata (r:1 w:1)
fn force_clear_metadata() -> Weight {
(49_243_000 as Weight)
(49_270_000 as Weight)
.saturating_add(T::DbWeight::get().reads(2 as Weight))
.saturating_add(T::DbWeight::get().writes(1 as Weight))
}
// Storage: Assets Asset (r:1 w:1)
fn force_asset_status() -> Weight {
(22_305_000 as Weight)
(23_112_000 as Weight)
.saturating_add(T::DbWeight::get().reads(1 as Weight))
.saturating_add(T::DbWeight::get().writes(1 as Weight))
}
// Storage: Assets Asset (r:1 w:1)
// Storage: Assets Approvals (r:1 w:1)
fn approve_transfer() -> Weight {
(48_885_000 as Weight)
.saturating_add(T::DbWeight::get().reads(1 as Weight))
.saturating_add(T::DbWeight::get().writes(1 as Weight))
(57_750_000 as Weight)
.saturating_add(T::DbWeight::get().reads(2 as Weight))
.saturating_add(T::DbWeight::get().writes(2 as Weight))
}
// Storage: Assets Approvals (r:1 w:1)
// Storage: Assets Asset (r:1 w:1)
// Storage: Assets Account (r:2 w:2)
// Storage: System Account (r:1 w:1)
fn transfer_approved() -> Weight {
(108_026_000 as Weight)
(110_350_000 as Weight)
.saturating_add(T::DbWeight::get().reads(5 as Weight))
.saturating_add(T::DbWeight::get().writes(5 as Weight))
}
// Storage: Assets Asset (r:1 w:1)
// Storage: Assets Approvals (r:1 w:1)
fn cancel_approval() -> Weight {
(48_943_000 as Weight)
.saturating_add(T::DbWeight::get().reads(1 as Weight))
.saturating_add(T::DbWeight::get().writes(1 as Weight))
(58_045_000 as Weight)
.saturating_add(T::DbWeight::get().reads(2 as Weight))
.saturating_add(T::DbWeight::get().writes(2 as Weight))
}
// Storage: Assets Asset (r:1 w:1)
// Storage: Assets Approvals (r:1 w:1)
fn force_cancel_approval() -> Weight {
(56_914_000 as Weight)
(60_120_000 as Weight)
.saturating_add(T::DbWeight::get().reads(2 as Weight))
.saturating_add(T::DbWeight::get().writes(1 as Weight))
.saturating_add(T::DbWeight::get().writes(2 as Weight))
}
}
47 changes: 36 additions & 11 deletions polkadot-parachains/statemine/src/weights/pallet_balances.rs
Original file line number Diff line number Diff line change
@@ -1,11 +1,27 @@
//! Autogenerated weights for pallet_balances
// Copyright 2021 Parity Technologies (UK) Ltd.
// This file is part of Cumulus.

// Cumulus 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.

// Cumulus 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 Cumulus. If not, see <http://www.gnu.org/licenses/>.

//! Autogenerated weights for `pallet_balances`
//!
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 3.0.0
//! DATE: 2021-05-31, STEPS: `[50, ]`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
//! DATE: 2021-10-04, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("statemine-dev"), DB CACHE: 128

// Executed Command:
// ./target/release/statemint
// ./target/release/polkadot-collator
// benchmark
// --chain=statemine-dev
// --execution=wasm
Expand All @@ -15,8 +31,11 @@
// --steps=50
// --repeat=20
// --raw
// --output=./runtime/statemine/src/weights/
// --header=./file_header.txt
// --output=./polkadot-parachains/statemine/src/weights


#![cfg_attr(rustfmt, rustfmt_skip)]
#![allow(unused_parens)]
#![allow(unused_imports)]

Expand All @@ -26,33 +45,39 @@ use sp_std::marker::PhantomData;
/// Weight functions for pallet_balances.
pub struct WeightInfo<T>(PhantomData<T>);
impl<T: frame_system::Config> pallet_balances::WeightInfo for WeightInfo<T> {
// Storage: System Account (r:1 w:1)
fn transfer() -> Weight {
(79_381_000 as Weight)
(78_858_000 as Weight)
.saturating_add(T::DbWeight::get().reads(1 as Weight))
.saturating_add(T::DbWeight::get().writes(1 as Weight))
}
// Storage: System Account (r:1 w:1)
fn transfer_keep_alive() -> Weight {
(58_057_000 as Weight)
(58_667_000 as Weight)
.saturating_add(T::DbWeight::get().reads(1 as Weight))
.saturating_add(T::DbWeight::get().writes(1 as Weight))
}
// Storage: System Account (r:1 w:1)
fn set_balance_creating() -> Weight {
(28_834_000 as Weight)
(30_112_000 as Weight)
.saturating_add(T::DbWeight::get().reads(1 as Weight))
.saturating_add(T::DbWeight::get().writes(1 as Weight))
}
// Storage: System Account (r:1 w:1)
fn set_balance_killing() -> Weight {
(36_213_000 as Weight)
(37_745_000 as Weight)
.saturating_add(T::DbWeight::get().reads(1 as Weight))
.saturating_add(T::DbWeight::get().writes(1 as Weight))
}
// Storage: System Account (r:2 w:2)
fn force_transfer() -> Weight {
(78_526_000 as Weight)
(79_925_000 as Weight)
.saturating_add(T::DbWeight::get().reads(2 as Weight))
.saturating_add(T::DbWeight::get().writes(2 as Weight))
}
// Storage: System Account (r:1 w:1)
fn transfer_all() -> Weight {
(84_170_000 as Weight)
(73_280_000 as Weight)
.saturating_add(T::DbWeight::get().reads(1 as Weight))
.saturating_add(T::DbWeight::get().writes(1 as Weight))
}
Expand Down
Loading