mirror of
https://github.com/sharkdp/hyperfine.git
synced 2026-11-01 08:50:19 +00:00
Move user and system time
This commit is contained in:
1 parent
14d773998a
commit
50232feb22
6 files changed
+106
-42
No files matched your search
@@ -490,12 +490,13 @@ impl<'a> Benchmark<'a> {
|
||||
Ok(BenchmarkResult {
|
||||
command: self.command.get_name(),
|
||||
command_with_unused_parameters: self.command.get_name_with_unused_parameters(),
|
||||
user: user_mean,
|
||||
system: system_mean,
|
||||
runs: times_real
|
||||
.iter()
|
||||
.map(|t| BenchmarkRun {
|
||||
wall_clock_time: *t,
|
||||
.zip(times_user.iter().zip(times_system.iter()))
|
||||
.map(|(wall_clock_time, (user_time, system_time))| BenchmarkRun {
|
||||
wall_clock_time: *wall_clock_time,
|
||||
user_time: *user_time,
|
||||
system_time: *system_time,
|
||||
})
|
||||
.collect(),
|
||||
memory_usage_byte: Some(memory_usage_byte),
|
||||
|
||||
Reference in new issue
Block a user