MCPcopy Create free account
hub / github.com/Vectorized/function-selector-miner / bench_compute

Function bench_compute

benches/avx_benchmark.rs:15–27  ·  view source on GitHub ↗
(c: &mut Criterion)

Source from the content-addressed store, hash-verified

13}
14
15fn 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
29criterion_group!(benches, bench_theta, bench_compute);
30criterion_main!(benches);

Callers

nothing calls this directly

Calls 1

compute_selectorsMethod · 0.45

Tested by

no test coverage detected