use criterion::{criterion_group, criterion_main, Criterion}; use p3_baby_bear::BabyBear; use p3_field::extension::BinomialExtensionField; use p3_field_testing::bench_func::{benchmark_inv, benchmark_mul, benchmark_square}; type EF4 = BinomialExtensionField; type EF5 = BinomialExtensionField; fn bench_quartic_extension(c: &mut Criterion) { let name = "BinomialExtensionField"; benchmark_square::(c, name); benchmark_inv::(c, name); benchmark_mul::(c, name); } fn bench_qunitic_extension(c: &mut Criterion) { let name = "BinomialExtensionField"; benchmark_square::(c, name); benchmark_inv::(c, name); benchmark_mul::(c, name); } criterion_group!( bench_babybear_ef, bench_quartic_extension, bench_qunitic_extension ); criterion_main!(bench_babybear_ef);