use criterion::{criterion_group, criterion_main, Criterion}; include!("../assets/simple_nlopt.rs"); // Include the `simple_nlopt.rs` file /// Benchmark function for the `nlopt` example. /// /// This function measures the performance of the `example` function from the `simple_nlopt` module. /// /// # Arguments /// /// * `c` - A mutable reference to a `Criterion` object for benchmarking. fn nlopt_benchmark(c: &mut Criterion) { c.bench_function("NLOpt Simple Example", |b| b.iter(|| example())); // Use the `example` from simple_nlopt.rs } criterion_group!(benches, nlopt_benchmark); criterion_main!(benches);