(c: &mut Criterion)
| 48 | } |
| 49 | |
| 50 | fn add_benchmark(c: &mut Criterion) { |
| 51 | let v1 = create_string_array::<i32>(1024, 0.0); |
| 52 | let v2 = create_slices(1024); |
| 53 | c.bench_function("mutable str 1024", |b| b.iter(|| bench(&v1, &v2))); |
| 54 | |
| 55 | let v1 = create_string_array::<i32>(1024, 0.5); |
| 56 | let v2 = create_slices(1024); |
| 57 | c.bench_function("mutable str nulls 1024", |b| b.iter(|| bench(&v1, &v2))); |
| 58 | } |
| 59 | |
| 60 | criterion_group!(benches, add_benchmark); |
| 61 | criterion_main!(benches); |
nothing calls this directly
no test coverage detected