Execute benchmark commands
(
commands: Vec<BenchmarkCommand>,
measurement_mode: Option<MeasurementMode>,
)
| 67 | |
| 68 | /// Execute benchmark commands |
| 69 | pub fn execute_benchmarks( |
| 70 | commands: Vec<BenchmarkCommand>, |
| 71 | measurement_mode: Option<MeasurementMode>, |
| 72 | ) -> Result<()> { |
| 73 | match measurement_mode { |
| 74 | Some(MeasurementMode::Walltime) | None => { |
| 75 | walltime::perform(commands)?; |
| 76 | } |
| 77 | Some(MeasurementMode::Memory) => { |
| 78 | analysis::perform(commands)?; |
| 79 | } |
| 80 | Some(MeasurementMode::Simulation) => { |
| 81 | analysis::perform_with_valgrind(commands)?; |
| 82 | } |
| 83 | } |
| 84 | |
| 85 | Ok(()) |
| 86 | } |
no test coverage detected