Update src/template/runner.rs

Co-authored-by: Matt Clarke <mattjclarke94@gmail.com>
This commit is contained in:
Abdul-Rahman Sibahi 2024-12-03 00:29:23 +03:00 committed by GitHub
parent 83ab2d76e4
commit 16f80de467
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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());
} }