Crate minibench

source ·
Expand description

Run function repetitively and prints out aggregated result.

Differences from other benchmark library:

  • Do not enforce measuring “wall time”. It could be changed to “CPU time”, “memory usage”, etc.
  • Do not run only the benchmark part repetitively. For example, a benchmark needs some complex setup that cannot be reused across runs. That setup cost needs to be excluded from benchmark result cleanly.
  • Minimalism. Without fancy features.

Re-exports

pub use measure::Measure;

Modules

Functions

Run a function repeatably. Print the measurement result.
Measure the best wall clock time.