use adaptivegrain_rs::mask::*;
use criterion::{Criterion, black_box, criterion_group, criterion_main};

fn mask_value(c: &mut Criterion) {
    black_box(FLOAT_RANGE.iter().count());
    let ls = black_box(calc_luma_scaling(0.412323, 10.0));
    c.bench_function("mask value y=0.412", |b| {
        b.iter(|| {
            FLOAT_RANGE.iter().for_each(|&x| {
                black_box(get_mask_value(black_box(x), ls));
            });
        })
    });
}

criterion_group!(mask, mask_value);
criterion_main!(mask);
