MCPcopy Create free account
hub / github.com/CodSpeedHQ/codspeed / execute_benchmarks

Function execute_benchmarks

crates/exec-harness/src/lib.rs:69–86  ·  view source on GitHub ↗

Execute benchmark commands

(
    commands: Vec<BenchmarkCommand>,
    measurement_mode: Option<MeasurementMode>,
)

Source from the content-addressed store, hash-verified

67
68/// Execute benchmark commands
69pub 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}

Callers 1

mainFunction · 0.85

Calls 2

perform_with_valgrindFunction · 0.85
performFunction · 0.50

Tested by

no test coverage detected