caelum0x 8af85c6e28 style: format workspace to rustfmt.toml (use_small_heuristics = Max)
Bring the whole workspace into compliance with the repo's rustfmt config
(edition 2024, max_width 100, use_small_heuristics = "Max"), which had drifted
across many crates. Pure formatting — no logic changes; `cargo fmt --check` is
now clean and `cargo build --workspace` is green.
2026-08-18 16:59:40 +03:00

18 lines
579 B
Rust

use lawsynth_uncertainty::{IntervalConfig, ProfilePoint, profile_quadratic};
use std::hint::black_box;
use std::time::Instant;
fn main() {
let points: Vec<ProfilePoint> = (-100..=100)
.map(|i| {
let x = i as f64 / 20.0;
ProfilePoint { parameter: x, objective: (x - 1.25).powi(2) * 2.0 + 7.0 }
})
.collect();
let started = Instant::now();
for _ in 0..10_000 {
black_box(profile_quadratic(&points, IntervalConfig::default()).unwrap());
}
println!("10,000 quadratic profiles: {:?}", started.elapsed());
}