Skip to main content

benchmark

Function benchmark 

Source
pub async fn benchmark(
    label: impl Into<String>,
    target: Arc<dyn BenchmarkTarget>,
    plan: BenchmarkPlan,
) -> Result<ProviderBenchmarkReport, ProviderBenchmarkError>
Expand description

Runs warmup and measured invocations against one framework-neutral target.

ยงErrors

Returns ProviderBenchmarkError when label is blank.