mirror of
https://github.com/sharkdp/hyperfine.git
synced 2026-10-28 16:18:57 +00:00
Add min, max to output. They were missed
This commit is contained in:
1 parent
7c7277777a
commit
ce79d81bd2
2 files changed
+17
-1
No files matched your search
@@ -300,5 +300,7 @@ pub fn run_benchmark(
|
||||
t_stddev,
|
||||
user_mean,
|
||||
system_mean,
|
||||
t_min,
|
||||
t_max,
|
||||
))
|
||||
}
|
||||
@@ -20,17 +20,31 @@ pub struct ExportEntry {
|
||||
user: Second,
|
||||
/// Time spent in system space
|
||||
system: Second,
|
||||
/// Min time measured
|
||||
min: Second,
|
||||
/// Max time measured
|
||||
max: Second,
|
||||
}
|
||||
|
||||
impl ExportEntry {
|
||||
/// Create a new ExportEntry with the given values
|
||||
pub fn new(command: String, mean: f64, stddev: f64, user: f64, system: f64) -> Self {
|
||||
pub fn new(
|
||||
command: String,
|
||||
mean: Second,
|
||||
stddev: Second,
|
||||
user: Second,
|
||||
system: Second,
|
||||
min: Second,
|
||||
max: Second,
|
||||
) -> Self {
|
||||
ExportEntry {
|
||||
command,
|
||||
mean,
|
||||
stddev,
|
||||
user,
|
||||
system,
|
||||
min,
|
||||
max,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user