[][src]Enum criterion::Throughput

pub enum Throughput {
    Bytes(u64),
    Elements(u64),
}

Enum representing different ways of measuring the throughput of benchmarked code. If the throughput setting is configured for a benchmark then the estimated throughput will be reported as well as the time per iteration.

Variants

Bytes(u64)

Measure throughput in terms of bytes/second. The value should be the number of bytes processed by one iteration of the benchmarked code. Typically, this would be the length of an input string or &[u8].

Elements(u64)

Measure throughput in terms of elements/second. The value should be the number of elements processed by one iteration of the benchmarked code. Typically, this would be the size of a collection, but could also be the number of lines of input text or the number of values to parse.

Trait Implementations

impl Clone for Throughput[src]

impl Debug for Throughput[src]

impl<'de> Deserialize<'de> for Throughput[src]

impl PartialEq<Throughput> for Throughput[src]

impl Serialize for Throughput[src]

impl StructuralPartialEq for Throughput[src]

Auto Trait Implementations

impl RefUnwindSafe for Throughput

impl Send for Throughput

impl Sync for Throughput

impl Unpin for Throughput

impl UnwindSafe for Throughput

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> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[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, 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.