pub trait Benchmark {
// Required method
fn benchmarked_code(&self);
}
Expand description
Trait for simple benchmarks
This supports simple benchmarks that don’t require any input. Note: global setup can be done
in the new()
method for the struct.
Required Methods§
sourcefn benchmarked_code(&self)
fn benchmarked_code(&self)
Perform the operations that we’re benchmarking.