mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-09 21:21:11 +00:00
* pallet-preimage: fix crate doc Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * cargo run --quiet --release --features=runtime-benchmarks --manifest-path=bin/node/cli/Cargo.toml -- benchmark --chain=dev --steps=50 --repeat=20 --pallet=pallet_lottery --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./frame/lottery/src/weights.rs --template=./.maintain/frame-weight-template.hbs Co-authored-by: Parity Bot <admin@parity.io>
This commit is contained in:
committed by
GitHub
parent
b630f1b0e6
commit
1f28f72790
@@ -1,6 +1,6 @@
|
||||
// This file is part of Substrate.
|
||||
|
||||
// Copyright (C) 2021-2022 Parity Technologies (UK) Ltd.
|
||||
// Copyright (C) 2022 Parity Technologies (UK) Ltd.
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
@@ -18,7 +18,7 @@
|
||||
//! Autogenerated weights for pallet_lottery
|
||||
//!
|
||||
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
|
||||
//! DATE: 2021-08-07, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
||||
//! DATE: 2022-01-11, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
||||
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 128
|
||||
|
||||
// Executed Command:
|
||||
@@ -35,7 +35,6 @@
|
||||
// --output=./frame/lottery/src/weights.rs
|
||||
// --template=./.maintain/frame-weight-template.hbs
|
||||
|
||||
|
||||
#![cfg_attr(rustfmt, rustfmt_skip)]
|
||||
#![allow(unused_parens)]
|
||||
#![allow(unused_imports)]
|
||||
@@ -64,28 +63,28 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Storage: System Account (r:1 w:1)
|
||||
// Storage: Lottery Tickets (r:0 w:1)
|
||||
fn buy_ticket() -> Weight {
|
||||
(70_034_000 as Weight)
|
||||
(52_219_000 as Weight)
|
||||
.saturating_add(T::DbWeight::get().reads(6 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(4 as Weight))
|
||||
}
|
||||
// Storage: Lottery CallIndices (r:0 w:1)
|
||||
fn set_calls(n: u32, ) -> Weight {
|
||||
(15_243_000 as Weight)
|
||||
// Standard Error: 8_000
|
||||
.saturating_add((312_000 as Weight).saturating_mul(n as Weight))
|
||||
(13_249_000 as Weight)
|
||||
// Standard Error: 7_000
|
||||
.saturating_add((378_000 as Weight).saturating_mul(n as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
||||
}
|
||||
// Storage: Lottery Lottery (r:1 w:1)
|
||||
// Storage: Lottery LotteryIndex (r:1 w:1)
|
||||
// Storage: System Account (r:1 w:1)
|
||||
fn start_lottery() -> Weight {
|
||||
(57_312_000 as Weight)
|
||||
(44_636_000 as Weight)
|
||||
.saturating_add(T::DbWeight::get().reads(3 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(3 as Weight))
|
||||
}
|
||||
// Storage: Lottery Lottery (r:1 w:1)
|
||||
fn stop_repeat() -> Weight {
|
||||
(6_964_000 as Weight)
|
||||
(5_654_000 as Weight)
|
||||
.saturating_add(T::DbWeight::get().reads(1 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
||||
}
|
||||
@@ -95,7 +94,7 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Storage: Lottery TicketsCount (r:1 w:1)
|
||||
// Storage: Lottery Tickets (r:1 w:0)
|
||||
fn on_initialize_end() -> Weight {
|
||||
(110_470_000 as Weight)
|
||||
(72_990_000 as Weight)
|
||||
.saturating_add(T::DbWeight::get().reads(6 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(4 as Weight))
|
||||
}
|
||||
@@ -106,7 +105,7 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Storage: Lottery Tickets (r:1 w:0)
|
||||
// Storage: Lottery LotteryIndex (r:1 w:1)
|
||||
fn on_initialize_repeat() -> Weight {
|
||||
(114_794_000 as Weight)
|
||||
(75_323_000 as Weight)
|
||||
.saturating_add(T::DbWeight::get().reads(7 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(5 as Weight))
|
||||
}
|
||||
@@ -122,28 +121,28 @@ impl WeightInfo for () {
|
||||
// Storage: System Account (r:1 w:1)
|
||||
// Storage: Lottery Tickets (r:0 w:1)
|
||||
fn buy_ticket() -> Weight {
|
||||
(70_034_000 as Weight)
|
||||
(52_219_000 as Weight)
|
||||
.saturating_add(RocksDbWeight::get().reads(6 as Weight))
|
||||
.saturating_add(RocksDbWeight::get().writes(4 as Weight))
|
||||
}
|
||||
// Storage: Lottery CallIndices (r:0 w:1)
|
||||
fn set_calls(n: u32, ) -> Weight {
|
||||
(15_243_000 as Weight)
|
||||
// Standard Error: 8_000
|
||||
.saturating_add((312_000 as Weight).saturating_mul(n as Weight))
|
||||
(13_249_000 as Weight)
|
||||
// Standard Error: 7_000
|
||||
.saturating_add((378_000 as Weight).saturating_mul(n as Weight))
|
||||
.saturating_add(RocksDbWeight::get().writes(1 as Weight))
|
||||
}
|
||||
// Storage: Lottery Lottery (r:1 w:1)
|
||||
// Storage: Lottery LotteryIndex (r:1 w:1)
|
||||
// Storage: System Account (r:1 w:1)
|
||||
fn start_lottery() -> Weight {
|
||||
(57_312_000 as Weight)
|
||||
(44_636_000 as Weight)
|
||||
.saturating_add(RocksDbWeight::get().reads(3 as Weight))
|
||||
.saturating_add(RocksDbWeight::get().writes(3 as Weight))
|
||||
}
|
||||
// Storage: Lottery Lottery (r:1 w:1)
|
||||
fn stop_repeat() -> Weight {
|
||||
(6_964_000 as Weight)
|
||||
(5_654_000 as Weight)
|
||||
.saturating_add(RocksDbWeight::get().reads(1 as Weight))
|
||||
.saturating_add(RocksDbWeight::get().writes(1 as Weight))
|
||||
}
|
||||
@@ -153,7 +152,7 @@ impl WeightInfo for () {
|
||||
// Storage: Lottery TicketsCount (r:1 w:1)
|
||||
// Storage: Lottery Tickets (r:1 w:0)
|
||||
fn on_initialize_end() -> Weight {
|
||||
(110_470_000 as Weight)
|
||||
(72_990_000 as Weight)
|
||||
.saturating_add(RocksDbWeight::get().reads(6 as Weight))
|
||||
.saturating_add(RocksDbWeight::get().writes(4 as Weight))
|
||||
}
|
||||
@@ -164,7 +163,7 @@ impl WeightInfo for () {
|
||||
// Storage: Lottery Tickets (r:1 w:0)
|
||||
// Storage: Lottery LotteryIndex (r:1 w:1)
|
||||
fn on_initialize_repeat() -> Weight {
|
||||
(114_794_000 as Weight)
|
||||
(75_323_000 as Weight)
|
||||
.saturating_add(RocksDbWeight::get().reads(7 as Weight))
|
||||
.saturating_add(RocksDbWeight::get().writes(5 as Weight))
|
||||
}
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
//! ## Overview
|
||||
//!
|
||||
//! The Preimage pallet allows for the users and the runtime to store the preimage
|
||||
//! of a hash on chain. This can be used by other pallets where storing and managing
|
||||
//! of a hash on chain. This can be used by other pallets for storing and managing
|
||||
//! large byte-blobs.
|
||||
|
||||
#![cfg_attr(not(feature = "std"), no_std)]
|
||||
|
||||
Reference in New Issue
Block a user