Skip to main content

execute_operation

Function execute_operation 

Source
pub fn execute_operation(
    op: &Operation,
    input: &str,
    iterations: usize,
) -> Result<Vec<Duration>>
Expand description

Run op iterations times against input and return the per-iteration durations.

Superseded by commands::profile::run_profiler (which additionally feeds a Profiler for report/JSON export), but kept as a lighter-weight public helper for callers that only need raw per-iteration Durations.

ยงErrors

Propagates any error that occurs during the first failing iteration.