Skip to content
Snippets Groups Projects
Commit 41be4f79 authored by rarbore2's avatar rarbore2
Browse files

fix bench

parent 937e9b7f
No related branches found
No related tags found
1 merge request!198Optimization for miranda
Pipeline #201833 passed
This commit is part of merge request !198. Comments created here will be created in the context of that merge request.
...@@ -33,3 +33,4 @@ criterion = { version = "0.5", features = ["html_reports"] } ...@@ -33,3 +33,4 @@ criterion = { version = "0.5", features = ["html_reports"] }
[[bench]] [[bench]]
name = "edge_detection_bench" name = "edge_detection_bench"
harness = false harness = false
required-features = ["opencv"]
...@@ -63,6 +63,10 @@ fn edge_detection_bench(c: &mut Criterion) { ...@@ -63,6 +63,10 @@ fn edge_detection_bench(c: &mut Criterion) {
let num_frames = 5; let num_frames = 5;
let mut r = runner!(edge_detection); let mut r = runner!(edge_detection);
let gaussian_filter_h = gaussian_filter_h.to();
let structure_h = structure_h.to();
let sx_h = sx_h.to();
let sy_h = sy_h.to();
let frames: Vec<_> = (0..num_frames).map(|_| load_frame(&mut video)).collect(); let frames: Vec<_> = (0..num_frames).map(|_| load_frame(&mut video)).collect();
...@@ -87,10 +91,10 @@ fn edge_detection_bench(c: &mut Criterion) { ...@@ -87,10 +91,10 @@ fn edge_detection_bench(c: &mut Criterion) {
sz as u64, sz as u64,
sb as u64, sb as u64,
input_h.to(), input_h.to(),
gaussian_filter_h.to(), gaussian_filter_h,
structure_h.to(), structure_h,
sx_h.to(), sx_h,
sy_h.to(), sy_h,
theta, theta,
) )
.await .await
......
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