suggest::benchmarks

Trait Benchmark

source
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§

source

fn benchmarked_code(&self)

Perform the operations that we’re benchmarking.

Implementors§