//! Measure the per-call cost of opening + closing a `Stream` on M4 Max.
useacpu::streaming::Stream;usestd::time::Instant;fnmain(){if!acpu::probe::scan().has_sme {eprintln!("skip: FEAT_SME not present");return;}let n =100_000usize;let t0 =Instant::now();for_in0..n {let s =Stream::new().unwrap();std::hint::black_box(&s);drop(s);}let dt = t0.elapsed();println!("Stream open+close: {} iters in {:?} => {:.0} ns/call",
n,
dt,
dt.as_secs_f64()* 1e9 / n asf64);}