use sukker::Matrix; use criterion::{black_box, criterion_group, criterion_main, Criterion}; // Benchmark for matrix multiplication fn matmul_bench(c: &mut Criterion) { let x = black_box(Matrix::::randomize((99, 100))); let y = black_box(Matrix::::randomize((100, 99))); c.bench_function("MxN @ NxP dense matmul", |b| { b.iter(|| x.matmul(&y).unwrap()) }); } criterion_group!(benches, matmul_bench); criterion_main!(benches);