Skip to main content

Benchmark

Trait Benchmark 

Source
pub trait Benchmark: Send + Sync {
    // Required methods
    fn name(&self) -> &str;
    fn description(&self) -> &str;
    fn run(&self, db_path: &str) -> Result<BenchmarkResult, Box<dyn Error>>;
}
Expand description

A benchmark that can be run against an Engram database

Required Methods§

Source

fn name(&self) -> &str

Source

fn description(&self) -> &str

Source

fn run(&self, db_path: &str) -> Result<BenchmarkResult, Box<dyn Error>>

Implementors§