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§
- bench
- Run a function repeatably. Print the measurement result.
- bench_
enabled - Test if a benchmark is enabled.
- elapsed
- Measure the best wall clock time.