Update src/template/runner.rs
Co-authored-by: Matt Clarke <mattjclarke94@gmail.com>
This commit is contained in:
parent
83ab2d76e4
commit
16f80de467
1 changed files with 1 additions and 1 deletions
|
@ -63,7 +63,7 @@ fn bench<I: Copy, T>(func: impl Fn(I) -> T, input: I, base_time: &Duration) -> (
|
||||||
|
|
||||||
for _ in 0..bench_iterations {
|
for _ in 0..bench_iterations {
|
||||||
let timer = Instant::now();
|
let timer = Instant::now();
|
||||||
black_box(func(black_box(cloned)));
|
black_box(func(black_box(input)));
|
||||||
timers.push(timer.elapsed());
|
timers.push(timer.elapsed());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue