Skip to content

Commit e575a84

Browse files
oech3xtqqczze
andauthored
cat: remove hardcoded var from bench
Co-authored-by: xtqqczze <45661989+xtqqczze@users.noreply.github.com>
1 parent bd7d158 commit e575a84

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/uu/cat/benches/cat_bench.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ use divan::{Bencher, black_box};
22
use uu_cat::uumain;
33
use uucore::benchmark::{run_util_function, setup_test_file};
44

5-
#[divan::bench]
6-
fn bench_cat_15kib(bencher: Bencher) {
5+
#[divan::bench(args = [10_000])]
6+
fn cat_default(bencher: Bencher, size_bytes: usize) {
77
let size = 15 * 1024;
88
let data = vec![b'a'; size];
99

0 commit comments

Comments
 (0)