Struct scaling::Scaling[][src]

pub struct Scaling {
    pub power: usize,
    pub exponential: usize,
    pub ns_per_scale: f64,
}

The timing and scaling results (without statistics) for a benchmark.

Fields

power: usize

The scaling power If this is 2, for instance, you have an O(N²) algorithm.

exponential: usize

An exponetial behavior, i.e. 2ᴺ

ns_per_scale: f64

The 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 Clone for Scaling[src]

impl Debug for Scaling[src]

impl Display for Scaling[src]

impl PartialEq<Scaling> for Scaling[src]

impl StructuralPartialEq for Scaling[src]

Auto Trait Implementations

impl RefUnwindSafe for Scaling

impl Send for Scaling

impl Sync for Scaling

impl Unpin for Scaling

impl UnwindSafe for Scaling

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.