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
......@@ -33,3 +33,4 @@ criterion = { version = "0.5", features = ["html_reports"] }
[[bench]]
name = "edge_detection_bench"
harness = false
required-features = ["opencv"]
......@@ -63,6 +63,10 @@ fn edge_detection_bench(c: &mut Criterion) {
let num_frames = 5;
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();
......@@ -87,10 +91,10 @@ fn edge_detection_bench(c: &mut Criterion) {
sz as u64,
sb as u64,
input_h.to(),
gaussian_filter_h.to(),
structure_h.to(),
sx_h.to(),
sy_h.to(),
gaussian_filter_h,
structure_h,
sx_h,
sy_h,
theta,
)
.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