Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[benchmarking bot] Update generated weights files #648

Merged
merged 1 commit into from
Jun 15, 2022
Merged
Changes from all commits
Commits
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
43 changes: 19 additions & 24 deletions runtime/litmus/src/weights/pallet_asset_manager.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,30 +14,27 @@
// You should have received a copy of the GNU General Public License
// along with Litentry. If not, see <https://www.gnu.org/licenses/>.

//! Autogenerated weights for pallet_asset_manager
//! Autogenerated weights for `pallet_asset_manager`
//!
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
//! DATE: 2022-06-15, STEPS: `20`, REPEAT: 50, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("litmus-dev"), DB CACHE: 1024
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("litmus-dev"), DB CACHE: 20

// Executed Command:
// ./target/release/litentry-collator
// ./litentry-collator
// benchmark
// pallet
// --chain=litmus-dev
// --execution=wasm
// --db-cache=20
// --wasm-execution=compiled
// --pallet=pallet_asset_manager
// --extrinsic=*
// --heap-pages=4096
// --steps
// 20
// --repeat
// 50
// --steps=20
// --repeat=50
// --header=./LICENSE_HEADER
// --template=./templates/benchmark/pallet-weight-template.hbs
// --output
// ./pallets/xcm-asset-manager/src/weights.rs
// --output=./runtime/litmus/src/weights/pallet_asset_manager.rs

#![cfg_attr(rustfmt, rustfmt_skip)]
#![allow(unused_parens)]
Expand All @@ -49,43 +46,41 @@ use sp_std::marker::PhantomData;
/// Weight functions for `pallet_asset_manager`.
pub struct WeightInfo<T>(PhantomData<T>);
impl<T: frame_system::Config> pallet_asset_manager::WeightInfo for WeightInfo<T> {
// Storage: unknown [0x3a7472616e73616374696f6e5f6c6576656c3a] (r:1 w:1)
// Storage: AssetManager ForeignAssetTracker (r:1 w:1)
// Storage: AssetManager AssetTypeId (r:1 w:1)
// Storage: AssetManager ForeignAssetTracker (r:1 w:1)
// Storage: AssetManager AssetIdType (r:0 w:1)
// Storage: AssetManager AssetIdMetadata (r:0 w:1)
fn register_foreign_asset_type() -> Weight {
(32_800_000 as Weight)
.saturating_add(T::DbWeight::get().reads(3 as Weight))
.saturating_add(T::DbWeight::get().writes(5 as Weight))
(26_367_000 as Weight)
.saturating_add(T::DbWeight::get().reads(2 as Weight))
.saturating_add(T::DbWeight::get().writes(4 as Weight))
}
// Storage: AssetManager AssetIdType (r:1 w:0)
// Storage: AssetManager AssetIdMetadata (r:0 w:1)
fn update_foreign_asset_metadata() -> Weight {
(17_100_000 as Weight)
(17_102_000 as Weight)
.saturating_add(T::DbWeight::get().reads(1 as Weight))
.saturating_add(T::DbWeight::get().writes(1 as Weight))
}
// Storage: AssetManager AssetIdType (r:1 w:0)
// Storage: AssetManager AssetIdUnitsPerSecond (r:0 w:1)
fn set_asset_units_per_second() -> Weight {
(16_300_000 as Weight)
(16_512_000 as Weight)
.saturating_add(T::DbWeight::get().reads(1 as Weight))
.saturating_add(T::DbWeight::get().writes(1 as Weight))
}
// Storage: AssetManager AssetIdType (r:1 w:1)
// Storage: AssetManager AssetTypeId (r:1 w:1)
fn add_asset_type() -> Weight {
(21_500_000 as Weight)
(21_569_000 as Weight)
.saturating_add(T::DbWeight::get().reads(2 as Weight))
.saturating_add(T::DbWeight::get().writes(2 as Weight))
}
// Storage: unknown [0x3a7472616e73616374696f6e5f6c6576656c3a] (r:1 w:1)
// Storage: AssetManager AssetIdType (r:1 w:1)
// Storage: AssetManager AssetTypeId (r:2 w:1)
// Storage: AssetManager AssetIdType (r:0 w:1)
fn remove_asset_type() -> Weight {
(31_800_000 as Weight)
.saturating_add(T::DbWeight::get().reads(4 as Weight))
.saturating_add(T::DbWeight::get().writes(3 as Weight))
(31_380_000 as Weight)
.saturating_add(T::DbWeight::get().reads(2 as Weight))
.saturating_add(T::DbWeight::get().writes(2 as Weight))
}
}
}