pub struct CyclesPerByte;
Expand description

CyclesPerByte measures clock cycles using the x86 or x86_64 rdtsc instruction. cpb is the preferred measurement for cryptographic algorithms.

Trait Implementations§

This type represents an intermediate value for the measurements. It will be produced by the start function and passed to the end function. An example might be the wall-clock time as of the start call. Read more
This type is the measured value. An example might be the elapsed wall-clock time between the start and end calls. Read more
Criterion.rs will call this before iterating the benchmark.
Criterion.rs will call this after iterating the benchmark to get the measured value.
Combine two values. Criterion.rs sometimes needs to perform measurements in multiple batches of iterations, so the value from one batch must be added to the sum of the previous batches. Read more
Return a “zero” value for the Value type which can be added to another value.
Converts the measured value to f64 so that it can be used in statistical analysis.
Return a trait-object reference to the value formatter for this measurement.

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The alignment of pointer.
The type for initializers.
Initializes a with the given initializer. Read more
Dereferences the given pointer. Read more
Mutably dereferences the given pointer. Read more
Drops the object pointed to by the given pointer. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.