mirror of
https://github.com/sharkdp/hyperfine.git
synced 2026-11-02 09:01:25 +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,
|
t_stddev,
|
||||||
user_mean,
|
user_mean,
|
||||||
system_mean,
|
system_mean,
|
||||||
|
t_min,
|
||||||
|
t_max,
|
||||||
))
|
))
|
||||||
}
|
}
|
||||||
@@ -20,17 +20,31 @@ pub struct ExportEntry {
|
|||||||
user: Second,
|
user: Second,
|
||||||
/// Time spent in system space
|
/// Time spent in system space
|
||||||
system: Second,
|
system: Second,
|
||||||
|
/// Min time measured
|
||||||
|
min: Second,
|
||||||
|
/// Max time measured
|
||||||
|
max: Second,
|
||||||
}
|
}
|
||||||
|
|
||||||
impl ExportEntry {
|
impl ExportEntry {
|
||||||
/// Create a new ExportEntry with the given values
|
/// 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 {
|
ExportEntry {
|
||||||
command,
|
command,
|
||||||
mean,
|
mean,
|
||||||
stddev,
|
stddev,
|
||||||
user,
|
user,
|
||||||
system,
|
system,
|
||||||
|
min,
|
||||||
|
max,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user