(c: &mut Criterion)
| 13 | } |
| 14 | |
| 15 | fn bench_compute(c: &mut Criterion) { |
| 16 | let function_name = SmallString::new("foo"); |
| 17 | let function_params = SmallString::new("foo"); |
| 18 | |
| 19 | c.bench_function("compute", |b| { |
| 20 | b.iter(|| { |
| 21 | let mut s_avx = unsafe { |
| 22 | rust_enjoyer::sponges_avx::SpongesAvx::new(&function_name, 0, &function_params) |
| 23 | }; |
| 24 | black_box(unsafe { s_avx.compute_selectors() }); |
| 25 | }) |
| 26 | }); |
| 27 | } |
| 28 | |
| 29 | criterion_group!(benches, bench_theta, bench_compute); |
| 30 | criterion_main!(benches); |
nothing calls this directly
no test coverage detected