performance-metrics: add restore latency performance metric

This patch calculates the recovery latency from the start of
recovery program to the end of restore.

Signed-off-by: Songqian Li <sionli@tencent.com>
This commit is contained in:
Songqian Li
2024-07-19 10:49:22 +08:00
committed by Rob Bradford
parent 59185050d5
commit e18d32bac2
3 changed files with 183 additions and 2 deletions
+11 -1
View File
@@ -274,7 +274,7 @@ mod adjuster {
}
}
const TEST_LIST: [PerformanceTest; 29] = [
const TEST_LIST: [PerformanceTest; 30] = [
PerformanceTest {
name: "boot_time_ms",
func_ptr: performance_boot_time,
@@ -306,6 +306,16 @@ const TEST_LIST: [PerformanceTest; 29] = [
},
unit_adjuster: adjuster::s_to_ms,
},
PerformanceTest {
name: "restore_latency_time_ms",
func_ptr: performance_restore_latency,
control: PerformanceTestControl {
test_timeout: 2,
test_iterations: 10,
..PerformanceTestControl::default()
},
unit_adjuster: adjuster::identity,
},
PerformanceTest {
name: "boot_time_16_vcpus_pmem_ms",
func_ptr: performance_boot_time_pmem,