Skip to main content

run_benchmark

Function run_benchmark 

Source
pub fn run_benchmark(
    source: &InputSource,
    result: &GenerationResult,
    targets: &[TargetSpec],
) -> Result<()>
Expand description

Run a Python timing harness comparing the original Python function against the generated Rust extension. Prints a speedup table to stdout.

Requires: maturin develop already run (extension importable), Python on PATH.