performance-metrics: Add RAW backing file performance tests

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

Signed-off-by: Anatol Belski <anbelski@linux.microsoft.com>
This commit is contained in:
Anatol Belski
2025-12-15 23:13:43 +01:00
committed by Rob Bradford
parent b3922dbd2c
commit 10394da0c4
2 changed files with 47 additions and 1 deletions
+31 -1
View File
@@ -319,7 +319,7 @@ mod adjuster {
}
}
const TEST_LIST: [PerformanceTest; 32] = [
const TEST_LIST: [PerformanceTest; 34] = [
PerformanceTest {
name: "boot_time_ms",
func_ptr: performance_boot_time,
@@ -740,6 +740,36 @@ const TEST_LIST: [PerformanceTest; 32] = [
},
unit_adjuster: adjuster::Bps_to_MiBps,
},
PerformanceTest {
name: "block_qcow2_backing_raw_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_RAW_BACKING,
}),
..PerformanceTestControl::default()
},
unit_adjuster: adjuster::Bps_to_MiBps,
},
PerformanceTest {
name: "block_qcow2_backing_raw_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_RAW_BACKING,
}),
..PerformanceTestControl::default()
},
unit_adjuster: adjuster::Bps_to_MiBps,
},
];
fn run_test_with_timeout(