Skip to content

Commit d155daa

Browse files
committed
build: add bench
1 parent 02f00b3 commit d155daa

File tree

1 file changed

+4
-0
lines changed
  • crates/examples/bench/src

1 file changed

+4
-0
lines changed

crates/examples/bench/src/lib.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,10 @@ pub struct Output {
2626
pub average_ms: u128,
2727
}
2828

29+
/// Run a benchmark.
30+
///
31+
/// # Panics
32+
/// If the command fails to execute.
2933
pub fn run(count: u32, command_builder: fn(u32) -> Command) -> Output {
3034
let mut units = Vec::with_capacity(count as usize);
3135
for _ in 0..count {

0 commit comments

Comments
 (0)