Skip to content
Snippets Groups Projects
Unverified Commit c4c9a660 authored by wangjj9219's avatar wangjj9219 Committed by GitHub
Browse files

fix benchmarks (#294)

parent 6f44b2c1
No related branches found
No related tags found
No related merge requests found
......@@ -6,8 +6,8 @@
mod tests;
pub use frame_benchmarking::{
benchmarking, BenchmarkBatch, BenchmarkParameter, BenchmarkResults, Benchmarking, BenchmarkingSetup,
TrackedStorageKey,
benchmarking, BenchmarkBatch, BenchmarkConfig, BenchmarkParameter, BenchmarkResults, Benchmarking,
BenchmarkingSetup, TrackedStorageKey,
};
#[cfg(feature = "std")]
pub use frame_benchmarking::{Analysis, BenchmarkSelector};
......@@ -992,7 +992,7 @@ macro_rules! add_benchmark {
} = config;
if &pallet[..] == &name_string[..] || &pallet[..] == &b"*"[..] {
if &pallet[..] == &b"*"[..] || &benchmark[..] == &b"*"[..] {
for benchmark in $( $location )*::benchmarks(*extra).into_iter() {
for benchmark in $( $location )*::Benchmark::benchmarks(*extra).into_iter() {
$batches.push($crate::BenchmarkBatch {
results: $( $location )*::Benchmark::run_benchmark(
benchmark,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment