performance-metrics: Add QCOW2 backing file performance test

Add sequential and random read performance tests for QCOW2 overlays
with QCOW2 backing files.

Signed-off-by: Anatol Belski <anbelski@linux.microsoft.com>
This commit is contained in:
Anatol Belski
2025-12-15 20:14:50 +01:00
committed by Bo Chen
parent d696cea024
commit d75bd1675c
2 changed files with 47 additions and 1 deletions
+31 -1
View File
@@ -319,7 +319,7 @@ mod adjuster {
}
}
const TEST_LIST: [PerformanceTest; 30] = [
const TEST_LIST: [PerformanceTest; 32] = [
PerformanceTest {
name: "boot_time_ms",
func_ptr: performance_boot_time,
@@ -710,6 +710,36 @@ const TEST_LIST: [PerformanceTest; 30] = [
},
unit_adjuster: adjuster::identity,
},
PerformanceTest {
name: "block_qcow2_backing_qcow2_read_MiBps",
func_ptr: performance_block_io,
control: PerformanceTestControl {
num_queues: Some(1),
queue_size: Some(128),
block_control: Some(BlockControl {
fio_ops: FioOps::Read,
bandwidth: true,
test_file: OVERLAY_WITH_QCOW2_BACKING,
}),
..PerformanceTestControl::default()
},
unit_adjuster: adjuster::Bps_to_MiBps,
},
PerformanceTest {
name: "block_qcow2_backing_qcow2_random_read_MiBps",
func_ptr: performance_block_io,
control: PerformanceTestControl {
num_queues: Some(1),
queue_size: Some(128),
block_control: Some(BlockControl {
fio_ops: FioOps::RandomRead,
bandwidth: true,
test_file: OVERLAY_WITH_QCOW2_BACKING,
}),
..PerformanceTestControl::default()
},
unit_adjuster: adjuster::Bps_to_MiBps,
},
];
fn run_test_with_timeout(