Fixed bench tests
This commit is contained in:
parent
dbdefd6dbf
commit
a0ae950d03
|
@ -21,7 +21,8 @@ fn criterion_benchmark(c: &mut Criterion) {
|
|||
c.bench_function("Merge several large arrays", |b| {
|
||||
let mut buffer = DynamicBuffer::new();
|
||||
|
||||
for _n in 1..=100 {
|
||||
// 5 here is fine, because it is sampled a lot with criterion
|
||||
for _n in 1..=5 {
|
||||
buffer.add(black_box(vec![0u8; 1024 * 1024]), black_box(1024 * 1024));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue