crates/autonom/examples/nornir-bench.rs
//! The `nornir-bench` harness entrypoint for autonom (feature `bench`).
//!
//! Collects every `register_bench!`'d bencher (here: `bench::ScanFold`), runs
//! them, and prints one JSON `BenchRun` on stdout — with host cores + peak memory
//! telemetry stamped by the harness. Run it with:
//!
//! ```text
//! cargo run --release -p autonom --features bench --example nornir-bench
//! ```
//!
//! Referencing `autonom` links the crate (compiled with `bench`), so its
//! `inventory`-registered benchers are discovered at link time.
fn main() -> anyhow::Result<()> {
// Touch the crate so the linker keeps its `inventory` bencher registrations.
let _ = autonom::bench::ScanFold::default();
nornir_bench::api::run_main_json()
}