From 5aa22f1e61ff33b03d2f8a0d4ffe43cff82e110f Mon Sep 17 00:00:00 2001 From: oech3 <79379754+oech3@users.noreply.github.com> Date: Sat, 28 Mar 2026 05:25:13 +0900 Subject: [PATCH] wc: add bench for small file (#11526) --- 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 67523f0bb..79f8fbd2f 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);