mirror of
https://github.com/sharkdp/hyperfine.git
synced 2026-11-01 08:50:19 +00:00
Unify TimingResult/TimerResult/Measurement
This commit is contained in:
1 parent
f9aa299c0f
commit
42e75c1737
8 files changed
+272
-261
No files matched your search
+120
-120
@@ -31,25 +31,25 @@ fn test_markup_export_auto_ms() {
|
||||
command: String::from("sleep 0.1"),
|
||||
measurements: Measurements::new(vec![
|
||||
Measurement {
|
||||
wall_clock_time: Second::new(0.09),
|
||||
user_time: Second::new(0.09),
|
||||
system_time: Second::zero(),
|
||||
memory_usage_byte: Byte::new(1024),
|
||||
exit_code: Some(0),
|
||||
time_wall_clock: Second::new(0.09),
|
||||
time_user: Second::new(0.09),
|
||||
time_system: Second::zero(),
|
||||
peak_memory_usage: Byte::new(1024),
|
||||
exit_status: ExitStatus::default(),
|
||||
},
|
||||
Measurement {
|
||||
wall_clock_time: Second::new(0.10),
|
||||
user_time: Second::new(0.10),
|
||||
system_time: Second::zero(),
|
||||
memory_usage_byte: Byte::new(1024),
|
||||
exit_code: Some(0),
|
||||
time_wall_clock: Second::new(0.10),
|
||||
time_user: Second::new(0.10),
|
||||
time_system: Second::zero(),
|
||||
peak_memory_usage: Byte::new(1024),
|
||||
exit_status: ExitStatus::default(),
|
||||
},
|
||||
Measurement {
|
||||
wall_clock_time: Second::new(0.14),
|
||||
user_time: Second::new(0.14),
|
||||
system_time: Second::zero(),
|
||||
memory_usage_byte: Byte::new(1024),
|
||||
exit_code: Some(0),
|
||||
time_wall_clock: Second::new(0.14),
|
||||
time_user: Second::new(0.14),
|
||||
time_system: Second::zero(),
|
||||
peak_memory_usage: Byte::new(1024),
|
||||
exit_status: ExitStatus::default(),
|
||||
},
|
||||
]),
|
||||
parameters: BTreeMap::new(),
|
||||
@@ -58,25 +58,25 @@ fn test_markup_export_auto_ms() {
|
||||
command: String::from("sleep 2"),
|
||||
measurements: Measurements::new(vec![
|
||||
Measurement {
|
||||
wall_clock_time: Second::new(2.0),
|
||||
user_time: Second::new(2.0),
|
||||
system_time: Second::zero(),
|
||||
memory_usage_byte: Byte::new(1024),
|
||||
exit_code: Some(0),
|
||||
time_wall_clock: Second::new(2.0),
|
||||
time_user: Second::new(2.0),
|
||||
time_system: Second::zero(),
|
||||
peak_memory_usage: Byte::new(1024),
|
||||
exit_status: ExitStatus::default(),
|
||||
},
|
||||
Measurement {
|
||||
wall_clock_time: Second::new(3.0),
|
||||
user_time: Second::new(3.0),
|
||||
system_time: Second::zero(),
|
||||
memory_usage_byte: Byte::new(1024),
|
||||
exit_code: Some(0),
|
||||
time_wall_clock: Second::new(3.0),
|
||||
time_user: Second::new(3.0),
|
||||
time_system: Second::zero(),
|
||||
peak_memory_usage: Byte::new(1024),
|
||||
exit_status: ExitStatus::default(),
|
||||
},
|
||||
Measurement {
|
||||
wall_clock_time: Second::new(4.0),
|
||||
user_time: Second::new(4.0),
|
||||
system_time: Second::zero(),
|
||||
memory_usage_byte: Byte::new(1024),
|
||||
exit_code: Some(0),
|
||||
time_wall_clock: Second::new(4.0),
|
||||
time_user: Second::new(4.0),
|
||||
time_system: Second::zero(),
|
||||
peak_memory_usage: Byte::new(1024),
|
||||
exit_status: ExitStatus::default(),
|
||||
},
|
||||
]),
|
||||
parameters: BTreeMap::new(),
|
||||
@@ -130,25 +130,25 @@ fn test_markup_export_auto_s() {
|
||||
command: String::from("sleep 2"),
|
||||
measurements: Measurements::new(vec![
|
||||
Measurement {
|
||||
wall_clock_time: Second::new(2.1),
|
||||
user_time: Second::new(2.1),
|
||||
system_time: Second::zero(),
|
||||
memory_usage_byte: Byte::new(1024),
|
||||
exit_code: Some(0),
|
||||
time_wall_clock: Second::new(2.1),
|
||||
time_user: Second::new(2.1),
|
||||
time_system: Second::zero(),
|
||||
peak_memory_usage: Byte::new(1024),
|
||||
exit_status: ExitStatus::default(),
|
||||
},
|
||||
Measurement {
|
||||
wall_clock_time: Second::new(2.2),
|
||||
user_time: Second::new(2.2),
|
||||
system_time: Second::zero(),
|
||||
memory_usage_byte: Byte::new(1024),
|
||||
exit_code: Some(0),
|
||||
time_wall_clock: Second::new(2.2),
|
||||
time_user: Second::new(2.2),
|
||||
time_system: Second::zero(),
|
||||
peak_memory_usage: Byte::new(1024),
|
||||
exit_status: ExitStatus::default(),
|
||||
},
|
||||
Measurement {
|
||||
wall_clock_time: Second::new(2.3),
|
||||
user_time: Second::new(2.3),
|
||||
system_time: Second::zero(),
|
||||
memory_usage_byte: Byte::new(1024),
|
||||
exit_code: Some(0),
|
||||
time_wall_clock: Second::new(2.3),
|
||||
time_user: Second::new(2.3),
|
||||
time_system: Second::zero(),
|
||||
peak_memory_usage: Byte::new(1024),
|
||||
exit_status: ExitStatus::default(),
|
||||
},
|
||||
]),
|
||||
parameters: BTreeMap::new(),
|
||||
@@ -157,25 +157,25 @@ fn test_markup_export_auto_s() {
|
||||
command: String::from("sleep 0.1"),
|
||||
measurements: Measurements::new(vec![
|
||||
Measurement {
|
||||
wall_clock_time: Second::new(0.1),
|
||||
user_time: Second::new(0.1),
|
||||
system_time: Second::zero(),
|
||||
memory_usage_byte: Byte::new(1024),
|
||||
exit_code: Some(0),
|
||||
time_wall_clock: Second::new(0.1),
|
||||
time_user: Second::new(0.1),
|
||||
time_system: Second::zero(),
|
||||
peak_memory_usage: Byte::new(1024),
|
||||
exit_status: ExitStatus::default(),
|
||||
},
|
||||
Measurement {
|
||||
wall_clock_time: Second::new(0.2),
|
||||
user_time: Second::new(0.2),
|
||||
system_time: Second::zero(),
|
||||
memory_usage_byte: Byte::new(1024),
|
||||
exit_code: Some(0),
|
||||
time_wall_clock: Second::new(0.2),
|
||||
time_user: Second::new(0.2),
|
||||
time_system: Second::zero(),
|
||||
peak_memory_usage: Byte::new(1024),
|
||||
exit_status: ExitStatus::default(),
|
||||
},
|
||||
Measurement {
|
||||
wall_clock_time: Second::new(0.3),
|
||||
user_time: Second::new(0.3),
|
||||
system_time: Second::zero(),
|
||||
memory_usage_byte: Byte::new(1024),
|
||||
exit_code: Some(0),
|
||||
time_wall_clock: Second::new(0.3),
|
||||
time_user: Second::new(0.3),
|
||||
time_system: Second::zero(),
|
||||
peak_memory_usage: Byte::new(1024),
|
||||
exit_status: ExitStatus::default(),
|
||||
},
|
||||
]),
|
||||
parameters: BTreeMap::new(),
|
||||
@@ -229,25 +229,25 @@ fn test_markup_export_manual_ms() {
|
||||
command: String::from("sleep 2"),
|
||||
measurements: Measurements::new(vec![
|
||||
Measurement {
|
||||
wall_clock_time: Second::new(2.1),
|
||||
user_time: Second::new(2.1),
|
||||
system_time: Second::zero(),
|
||||
memory_usage_byte: Byte::new(1024),
|
||||
exit_code: Some(0),
|
||||
time_wall_clock: Second::new(2.1),
|
||||
time_user: Second::new(2.1),
|
||||
time_system: Second::zero(),
|
||||
peak_memory_usage: Byte::new(1024),
|
||||
exit_status: ExitStatus::default(),
|
||||
},
|
||||
Measurement {
|
||||
wall_clock_time: Second::new(2.2),
|
||||
user_time: Second::new(2.2),
|
||||
system_time: Second::zero(),
|
||||
memory_usage_byte: Byte::new(1024),
|
||||
exit_code: Some(0),
|
||||
time_wall_clock: Second::new(2.2),
|
||||
time_user: Second::new(2.2),
|
||||
time_system: Second::zero(),
|
||||
peak_memory_usage: Byte::new(1024),
|
||||
exit_status: ExitStatus::default(),
|
||||
},
|
||||
Measurement {
|
||||
wall_clock_time: Second::new(2.3),
|
||||
user_time: Second::new(2.3),
|
||||
system_time: Second::zero(),
|
||||
memory_usage_byte: Byte::new(1024),
|
||||
exit_code: Some(0),
|
||||
time_wall_clock: Second::new(2.3),
|
||||
time_user: Second::new(2.3),
|
||||
time_system: Second::zero(),
|
||||
peak_memory_usage: Byte::new(1024),
|
||||
exit_status: ExitStatus::default(),
|
||||
},
|
||||
]),
|
||||
parameters: BTreeMap::new(),
|
||||
@@ -256,25 +256,25 @@ fn test_markup_export_manual_ms() {
|
||||
command: String::from("sleep 0.1"),
|
||||
measurements: Measurements::new(vec![
|
||||
Measurement {
|
||||
wall_clock_time: Second::new(0.1),
|
||||
user_time: Second::new(0.1),
|
||||
system_time: Second::zero(),
|
||||
memory_usage_byte: Byte::new(1024),
|
||||
exit_code: Some(0),
|
||||
time_wall_clock: Second::new(0.1),
|
||||
time_user: Second::new(0.1),
|
||||
time_system: Second::zero(),
|
||||
peak_memory_usage: Byte::new(1024),
|
||||
exit_status: ExitStatus::default(),
|
||||
},
|
||||
Measurement {
|
||||
wall_clock_time: Second::new(0.2),
|
||||
user_time: Second::new(0.2),
|
||||
system_time: Second::zero(),
|
||||
memory_usage_byte: Byte::new(1024),
|
||||
exit_code: Some(0),
|
||||
time_wall_clock: Second::new(0.2),
|
||||
time_user: Second::new(0.2),
|
||||
time_system: Second::zero(),
|
||||
peak_memory_usage: Byte::new(1024),
|
||||
exit_status: ExitStatus::default(),
|
||||
},
|
||||
Measurement {
|
||||
wall_clock_time: Second::new(0.3),
|
||||
user_time: Second::new(0.3),
|
||||
system_time: Second::zero(),
|
||||
memory_usage_byte: Byte::new(1024),
|
||||
exit_code: Some(0),
|
||||
time_wall_clock: Second::new(0.3),
|
||||
time_user: Second::new(0.3),
|
||||
time_system: Second::zero(),
|
||||
peak_memory_usage: Byte::new(1024),
|
||||
exit_status: ExitStatus::default(),
|
||||
},
|
||||
]),
|
||||
parameters: BTreeMap::new(),
|
||||
@@ -327,25 +327,25 @@ fn test_markup_export_manual_s() {
|
||||
command: String::from("sleep 2"),
|
||||
measurements: Measurements::new(vec![
|
||||
Measurement {
|
||||
wall_clock_time: Second::new(2.01),
|
||||
user_time: Second::new(2.01),
|
||||
system_time: Second::zero(),
|
||||
memory_usage_byte: Byte::new(1024),
|
||||
exit_code: Some(0),
|
||||
time_wall_clock: Second::new(2.01),
|
||||
time_user: Second::new(2.01),
|
||||
time_system: Second::zero(),
|
||||
peak_memory_usage: Byte::new(1024),
|
||||
exit_status: ExitStatus::default(),
|
||||
},
|
||||
Measurement {
|
||||
wall_clock_time: Second::new(2.02),
|
||||
user_time: Second::new(2.02),
|
||||
system_time: Second::zero(),
|
||||
memory_usage_byte: Byte::new(1024),
|
||||
exit_code: Some(0),
|
||||
time_wall_clock: Second::new(2.02),
|
||||
time_user: Second::new(2.02),
|
||||
time_system: Second::zero(),
|
||||
peak_memory_usage: Byte::new(1024),
|
||||
exit_status: ExitStatus::default(),
|
||||
},
|
||||
Measurement {
|
||||
wall_clock_time: Second::new(2.03),
|
||||
user_time: Second::new(2.03),
|
||||
system_time: Second::zero(),
|
||||
memory_usage_byte: Byte::new(1024),
|
||||
exit_code: Some(0),
|
||||
time_wall_clock: Second::new(2.03),
|
||||
time_user: Second::new(2.03),
|
||||
time_system: Second::zero(),
|
||||
peak_memory_usage: Byte::new(1024),
|
||||
exit_status: ExitStatus::default(),
|
||||
},
|
||||
]),
|
||||
parameters: BTreeMap::new(),
|
||||
@@ -354,25 +354,25 @@ fn test_markup_export_manual_s() {
|
||||
command: String::from("sleep 0.1"),
|
||||
measurements: Measurements::new(vec![
|
||||
Measurement {
|
||||
wall_clock_time: Second::new(0.11),
|
||||
user_time: Second::new(0.11),
|
||||
system_time: Second::zero(),
|
||||
memory_usage_byte: Byte::new(1024),
|
||||
exit_code: Some(0),
|
||||
time_wall_clock: Second::new(0.11),
|
||||
time_user: Second::new(0.11),
|
||||
time_system: Second::zero(),
|
||||
peak_memory_usage: Byte::new(1024),
|
||||
exit_status: ExitStatus::default(),
|
||||
},
|
||||
Measurement {
|
||||
wall_clock_time: Second::new(0.12),
|
||||
user_time: Second::new(0.12),
|
||||
system_time: Second::zero(),
|
||||
memory_usage_byte: Byte::new(1024),
|
||||
exit_code: Some(0),
|
||||
time_wall_clock: Second::new(0.12),
|
||||
time_user: Second::new(0.12),
|
||||
time_system: Second::zero(),
|
||||
peak_memory_usage: Byte::new(1024),
|
||||
exit_status: ExitStatus::default(),
|
||||
},
|
||||
Measurement {
|
||||
wall_clock_time: Second::new(0.13),
|
||||
user_time: Second::new(0.13),
|
||||
system_time: Second::zero(),
|
||||
memory_usage_byte: Byte::new(1024),
|
||||
exit_code: Some(0),
|
||||
time_wall_clock: Second::new(0.13),
|
||||
time_user: Second::new(0.13),
|
||||
time_system: Second::zero(),
|
||||
peak_memory_usage: Byte::new(1024),
|
||||
exit_status: ExitStatus::default(),
|
||||
},
|
||||
]),
|
||||
parameters: BTreeMap::new(),
|
||||
|
||||
Reference in new issue
Block a user