Enum criterion::Throughput[][src]

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

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

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].

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 Debug for Throughput
[src]

Formats the value using the given formatter. Read more

impl Clone for Throughput
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Auto Trait Implementations

impl Send for Throughput

impl Sync for Throughput