Skip to main content

Workload

Trait Workload 

Source
pub trait Workload: Send + Sync {
    // Required method
    fn run_once(&self);
}
Expand description

A workload that can be executed many times under stress.

Required Methods§

Source

fn run_once(&self)

Execute one unit of work. MUST be safe to call concurrently from multiple threads.

Implementors§