Function execute_runs

Source
pub fn execute_runs<P: Payload, const BATCH_SIZE: u64>(
    c: &mut Criterion,
    work_distributions: &[WorkDistribution],
)
Expand description

Executes a number of benchmark runs for a specific payload type, using the specified work distribution modes.

BATCH_SIZE indicates the maximum number of iterations that can be prepared at the same time. It is optimal to prepare all iterations at once, to get the most consistent and noise-free results. However, there is only a limited amount of memory available, making that impractical. Assign the highest value that is low enough for this many payloads to fit in memory at the same time on every worker thread. The benchmark infrastructure may also limit this value, so this is merely an upper bound.