mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-30 02:21:04 +00:00
Add Benchmarking Instance to Pallets (#12026)
* benchmark instance * add benchmark instance to conviction voting * instance on bags list * fmt
This commit is contained in:
@@ -25,7 +25,7 @@ use frame_support::{assert_ok, traits::Get};
|
||||
use frame_system::RawOrigin as SystemOrigin;
|
||||
use sp_runtime::traits::One;
|
||||
|
||||
frame_benchmarking::benchmarks! {
|
||||
frame_benchmarking::benchmarks_instance_pallet! {
|
||||
rebag_non_terminal {
|
||||
// An expensive case for rebag-ing (rebag a non-terminal node):
|
||||
//
|
||||
@@ -97,7 +97,7 @@ frame_benchmarking::benchmarks! {
|
||||
|
||||
// clear any pre-existing storage.
|
||||
// NOTE: safe to call outside block production
|
||||
List::<T>::unsafe_clear();
|
||||
List::<T, I>::unsafe_clear();
|
||||
|
||||
// define our origin and destination thresholds.
|
||||
let origin_bag_thresh = T::BagThresholds::get()[0];
|
||||
@@ -146,7 +146,7 @@ frame_benchmarking::benchmarks! {
|
||||
|
||||
// clear any pre-existing storage.
|
||||
// NOTE: safe to call outside block production
|
||||
List::<T>::unsafe_clear();
|
||||
List::<T, I>::unsafe_clear();
|
||||
|
||||
let bag_thresh = T::BagThresholds::get()[0];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user