mirror of
https://github.com/uutils/coreutils.git
synced 2026-06-10 15:48:22 -07:00
wc: add bench for small file (#11526)
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user