Skip to content
Snippets Groups Projects
Commit 8292e6df authored by Russel Arbore's avatar Russel Arbore
Browse files

Fix bench

parent 62d760d7
No related branches found
No related tags found
1 merge request!191Edge refactor
Pipeline #201774 passed
......@@ -64,10 +64,12 @@ fn edge_detection_bench(c: &mut Criterion) {
let mut r = runner!(edge_detection);
let frames: Vec<_> = (0..num_frames).map(|_| load_frame(&mut video)).collect();
group.bench_function("edge detection bench", |b| {
b.iter(|| {
for i in 0..num_frames {
let frame = load_frame(&mut video);
let frame = &frames[i];
let ptr = frame.ptr_def().unwrap() as *const f32;
assert!(frame.rows() as usize == height);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment