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.
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.
Formats the value using the given formatter. Read more
Performs copy-assignment from source
. Read more