Function divan::main

source ·
pub fn main()
Expand description

Runs all registered benchmarks.

Examples

#[divan::bench]
fn add() -> i32 {
    // ...
}

fn main() {
    // Run `add` benchmark:
    divan::main();
}

See #[divan::bench] for more examples.