Skip to content
Myr

Exclude entire cputime file, force basic output

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Steve Pentland · committed by David Peter · parent 1ddf729 · Browse files · 3 files+10 added−4 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

3 files+10 added−4 removed

  • other:+10 added−4 removed

3 files+10 added−4 removed

modified:src/hyperfine/benchmark.rs+4 added-4 removed
98 unmodified lines
99 shell_spawning_time: Option<TimingResult>,100) -> io::Result<(TimingResult, bool)> {101 let start = Instant::now();102103 let status = Command::new("sh")104 .arg("-c")103 let status = Command::new("cmd")104 // .arg("-c")105 .arg(shell_cmd)106 .stdin(Stdio::null())107 .stdout(Stdio::null())108 .stderr(Stdio::null())
19 unmodified lines
128129 Ok((130 TimingResult {131 time_real,132 time_user: 0,133 time_system: 0,132 time_user: 0f64,133 time_system: 0f64,134 },135 status.success(),136 ))137}
235 unmodified lines
modified:src/hyperfine/cputime.rs+2 added
1#![cfg(not(target_os = "windows"))]23use libc::{getrusage, rusage, RUSAGE_CHILDREN};45use std::mem;6
71 unmodified lines
modified:src/main.rs+4 added
145 unmodified lines
146 OutputStyleOption::Basic147 },148 };149150 if cfg!(target_os = "windows") {151 options.output_style = OutputStyleOption::Basic;152 }153154 if options.output_style == OutputStyleOption::Basic {155 colored::control::set_override(false);156 }157 if matches.is_present("ignore-failure") {
10 unmodified lines