pub struct SimpleBench {
pub name: &'static str,
pub module: &'static str,
pub func: fn(),
}Expand description
A registered benchmark function.
This struct is used by the inventory crate for compile-time benchmark registration.
The #[bench] macro from simplebench-macros generates these registrations automatically.
Fields§
§name: &'static strName of the benchmark function
module: &'static strModule path where the benchmark is defined
func: fn()The benchmark function to execute