pub struct Suite { /* private fields */ }Expand description
Collection of benches that will be emitted as a single RunReport.
Implementations§
Source§impl Suite
impl Suite
pub fn new(service: impl Into<String>) -> Self
Sourcepub fn run<F: FnMut()>(&mut self, name: &str, opts: Options, file: &str, fn_: F)
pub fn run<F: FnMut()>(&mut self, name: &str, opts: Options, file: &str, fn_: F)
Run fn_ under the bench harness and accumulate the result.
Sourcepub fn emit_stdout(self)
pub fn emit_stdout(self)
Finalise and emit the report as a JSON RunReport on stdout.
Use this from your runner’s main() so aatxe run --lang rust can
ingest the output.
pub fn into_report(self) -> RunReport
Auto Trait Implementations§
impl Freeze for Suite
impl RefUnwindSafe for Suite
impl Send for Suite
impl Sync for Suite
impl Unpin for Suite
impl UnsafeUnpin for Suite
impl UnwindSafe for Suite
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more