From fb1067a5506608aefaa9cfbd904438a561b0134c Mon Sep 17 00:00:00 2001 From: oech3 <79379754+oech3@users.noreply.github.com> Date: Sat, 28 Mar 2026 04:50:15 +0900 Subject: [PATCH] wc: add bench for small file --- src/uu/wc/benches/wc_bench.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/uu/wc/benches/wc_bench.rs b/src/uu/wc/benches/wc_bench.rs index 67523f0bb67..79f8fbd2fea 100644 --- a/src/uu/wc/benches/wc_bench.rs +++ b/src/uu/wc/benches/wc_bench.rs @@ -8,7 +8,7 @@ use uu_wc::uumain; use uucore::benchmark::{create_test_file, run_util_function, text_data}; /// Benchmark different file sizes for byte counting -#[divan::bench(args = [500])] +#[divan::bench(args = [1, 500])] //todo: add 10kb to measure splice() overhead fn wc_bytes_synthetic(bencher: Bencher, size_mb: usize) { let temp_dir = tempfile::tempdir().unwrap(); let data = text_data::generate_by_size(size_mb, 80);