Benchmark Utility Pallet (#5384)

* Move tests

* Move around feature cfgs

* Start benchmarks

* as_multi bench

* finish

* fix tests

* Update frame/utility/src/benchmarking.rs

Co-Authored-By: Marcio Diaz <marcio.diaz@gmail.com>

* Update Cargo.toml

* fix test

Co-authored-by: Marcio Diaz <marcio.diaz@gmail.com>
This commit is contained in:
Shawn Tabrizi
2020-03-31 22:53:21 +02:00
committed by GitHub
parent 63e6f81776
commit 74b008a729
23 changed files with 653 additions and 451 deletions
+3 -1
View File
@@ -16,6 +16,8 @@
//! Vesting pallet benchmarking.
#![cfg(feature = "runtime-benchmarks")]
use super::*;
use frame_system::{RawOrigin, Module as System};
@@ -119,6 +121,6 @@ benchmarks! {
};
let _ = T::Currency::make_free_balance_be(&from, transfer_amount * 10.into());
}: _(RawOrigin::Signed(from), to_lookup, vesting_schedule)
}
-1
View File
@@ -60,7 +60,6 @@ use frame_support::traits::{
use frame_support::weights::SimpleDispatchInfo;
use frame_system::{self as system, ensure_signed};
#[cfg(feature = "runtime-benchmarks")]
mod benchmarking;
type BalanceOf<T> = <<T as Trait>::Currency as Currency<<T as frame_system::Trait>::AccountId>>::Balance;