Function test::bench::benchmark

source ·
pub fn benchmark<F>(
    id: TestId,
    desc: TestDesc,
    monitor_ch: Sender<CompletedTest>,
    nocapture: bool,
    f: F
)where
    F: FnMut(&mut Bencher) -> Result<(), String>,
🔬This is a nightly-only experimental API. (test)