This commit is contained in:
Robert Jördens 2020-12-11 17:08:16 +01:00
parent a709ab171e
commit 5cd93d3318
1 changed files with 1 additions and 3 deletions

View File

@ -2,9 +2,7 @@ use criterion::{black_box, criterion_group, criterion_main, Criterion};
use dsp::trig::cossin; use dsp::trig::cossin;
fn cossin_bench(c: &mut Criterion) { fn cossin_bench(c: &mut Criterion) {
c.bench_function("cossin(0)", |b| { c.bench_function("cossin(0)", |b| b.iter(|| cossin(black_box(0))));
b.iter(|| cossin(black_box(0)))
});
} }
criterion_group!(benches, cossin_bench); criterion_group!(benches, cossin_bench);