Skip to content

Commit 1ba4bd4

Browse files
committed
udpate tests
Signed-off-by: kerthcet <kerthcet@gmail.com>
1 parent e1ed755 commit 1ba4bd4

1 file changed

Lines changed: 10 additions & 3 deletions

File tree

sandd/benches/snapshot_bench.rs

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -99,16 +99,23 @@ fn bench_small_files(c: &mut Criterion) {
9999
/// Benchmark: Large files
100100
///
101101
/// **Purpose:** I/O throughput measurement
102-
/// **Tests:** Binary/media files (1MB, 10MB, 100MB)
102+
/// **Tests:** Binary/media files (1MB, 10MB, 20MB, 100MB)
103103
/// **Expected:** Should show MB/sec throughput (I/O bound)
104104
/// **Detects:** Buffer size issues, streaming efficiency
105105
fn bench_large_files(c: &mut Criterion) {
106106
let mut group = c.benchmark_group("large_files");
107107
group.sample_size(10);
108108
group.measurement_time(std::time::Duration::from_secs(10));
109109

110-
// Files of different sizes: 1MB, 10MB, 100MB
111-
for file_size in [1024 * 1024, 10 * 1024 * 1024, 100 * 1024 * 1024].iter() {
110+
// Files of different sizes: 1MB, 10MB, 20MB, 100MB
111+
for file_size in [
112+
1024 * 1024,
113+
10 * 1024 * 1024,
114+
20 * 1024 * 1024,
115+
100 * 1024 * 1024,
116+
]
117+
.iter()
118+
{
112119
let size_mb = file_size / (1024 * 1024);
113120
group.throughput(Throughput::Bytes(*file_size as u64));
114121

0 commit comments

Comments
 (0)