⚠️ VeridianOS Kernel Documentation - This is low-level kernel code. All functions are unsafe unless explicitly marked otherwise. no_std

Benchmark

Trait Benchmark 

Source
pub trait Benchmark {
    // Required methods
    fn run(&mut self) -> BenchmarkResult;
    fn name(&self) -> &str;
}
Expand description

Trait for benchmarkable operations

Required Methods§

Source

fn run(&mut self) -> BenchmarkResult

Run the benchmark and return the result

Source

fn name(&self) -> &str

Get the name of this benchmark

Implementors§