Skip to content

Commit 5aa22f1

Browse files
authored
wc: add bench for small file (#11526)
1 parent e104fc8 commit 5aa22f1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/uu/wc/benches/wc_bench.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ use uu_wc::uumain;
88
use uucore::benchmark::{create_test_file, run_util_function, text_data};
99

1010
/// Benchmark different file sizes for byte counting
11-
#[divan::bench(args = [500])]
11+
#[divan::bench(args = [1, 500])] //todo: add 10kb to measure splice() overhead
1212
fn wc_bytes_synthetic(bencher: Bencher, size_mb: usize) {
1313
let temp_dir = tempfile::tempdir().unwrap();
1414
let data = text_data::generate_by_size(size_mb, 80);

0 commit comments

Comments
 (0)