Trait frame_benchmarking::Benchmark
source · [−]pub trait Benchmark<Block: BlockT>: Core<Block> {
fn dispatch_benchmark(
&self,
__runtime_api_at_param__: &BlockId<Block>,
config: BenchmarkConfig
) -> Result<Result<Vec<BenchmarkBatch>, RuntimeString>, Self::Error> { ... }
fn dispatch_benchmark_with_context(
&self,
__runtime_api_at_param__: &BlockId<Block>,
context: ExecutionContext,
config: BenchmarkConfig
) -> Result<Result<Vec<BenchmarkBatch>, RuntimeString>, Self::Error> { ... }
}
Expand description
Runtime api for benchmarking a FRAME runtime.
Provided methods
fn dispatch_benchmark(
&self,
__runtime_api_at_param__: &BlockId<Block>,
config: BenchmarkConfig
) -> Result<Result<Vec<BenchmarkBatch>, RuntimeString>, Self::Error>
fn dispatch_benchmark(
&self,
__runtime_api_at_param__: &BlockId<Block>,
config: BenchmarkConfig
) -> Result<Result<Vec<BenchmarkBatch>, RuntimeString>, Self::Error>
Dispatch the given benchmark.
fn dispatch_benchmark_with_context(
&self,
__runtime_api_at_param__: &BlockId<Block>,
context: ExecutionContext,
config: BenchmarkConfig
) -> Result<Result<Vec<BenchmarkBatch>, RuntimeString>, Self::Error>
fn dispatch_benchmark_with_context(
&self,
__runtime_api_at_param__: &BlockId<Block>,
context: ExecutionContext,
config: BenchmarkConfig
) -> Result<Result<Vec<BenchmarkBatch>, RuntimeString>, Self::Error>
Dispatch the given benchmark.