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.
pub fn main()
Runs all registered benchmarks.
#[divan::bench]
fn add() -> i32 {
// ...
}
fn main() {
// Run `add` benchmark:
divan::main();
}
See #[divan::bench]
for more examples.