pub struct Scaling {
pub power: usize,
pub exponential: usize,
pub ns_per_scale: f64,
}Expand description
The timing and scaling results (without statistics) for a benchmark.
Fields§
§power: usizeThe scaling power If this is 2, for instance, you have an O(N²) algorithm.
exponential: usizeAn exponetial behavior, i.e. 2ᴺ
ns_per_scale: f64The time, in nanoseconds, per scaled size of the problem. If the problem scales as O(N²) for instance, this is the number of nanoseconds per N².
Trait Implementations§
impl StructuralPartialEq for Scaling
Auto Trait Implementations§
impl Freeze for Scaling
impl RefUnwindSafe for Scaling
impl Send for Scaling
impl Sync for Scaling
impl Unpin for Scaling
impl UnwindSafe for Scaling
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