use criterion::{black_box, criterion_group, criterion_main, Criterion};
use pdfmake_rust::benchmark_fixtures::build_pages_100_document;
use pdfmake_rust::PdfMake;

fn bench_pages_100(c: &mut Criterion) {
    let doc = build_pages_100_document(100);
    c.bench_function("pages_100", |b| {
        b.iter(|| PdfMake::new().render(black_box(&doc)).expect("render should succeed"));
    });
}

criterion_group!(benches, bench_pages_100);
criterion_main!(benches);
