pub struct RoutingBenchmark {
pub num_circuits: usize,
pub results: Vec<RoutingResult>,
}Expand description
Aggregated routing benchmark across many circuits.
Fields§
§num_circuits: usize§results: Vec<RoutingResult>Implementations§
Source§impl RoutingBenchmark
impl RoutingBenchmark
Sourcepub fn planner_win_rate_vs_naive(&self) -> f64
pub fn planner_win_rate_vs_naive(&self) -> f64
Percentage of circuits where the cost-model planner matches or beats the naive selector on predicted runtime.
Sourcepub fn median_speedup_vs_naive(&self) -> f64
pub fn median_speedup_vs_naive(&self) -> f64
Median speedup of planner vs naive.
Auto Trait Implementations§
impl Freeze for RoutingBenchmark
impl RefUnwindSafe for RoutingBenchmark
impl Send for RoutingBenchmark
impl Sync for RoutingBenchmark
impl Unpin for RoutingBenchmark
impl UnsafeUnpin for RoutingBenchmark
impl UnwindSafe for RoutingBenchmark
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more