We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 02f00b3 commit d155daaCopy full SHA for d155daa
crates/examples/bench/src/lib.rs
@@ -26,6 +26,10 @@ pub struct Output {
26
pub average_ms: u128,
27
}
28
29
+/// Run a benchmark.
30
+///
31
+/// # Panics
32
+/// If the command fails to execute.
33
pub fn run(count: u32, command_builder: fn(u32) -> Command) -> Output {
34
let mut units = Vec::with_capacity(count as usize);
35
for _ in 0..count {
0 commit comments