From ffabef89ee992acc0834ba3a1a517e4040b29e90 Mon Sep 17 00:00:00 2001 From: Evgenii Grigorenko Date: Fri, 22 Nov 2024 15:18:46 +0100 Subject: [PATCH] chore: use new trait in benches --- geo/benches/frechet_distance.rs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/geo/benches/frechet_distance.rs b/geo/benches/frechet_distance.rs index 0377c9633a..d5b697ae37 100644 --- a/geo/benches/frechet_distance.rs +++ b/geo/benches/frechet_distance.rs @@ -1,5 +1,5 @@ use criterion::{criterion_group, criterion_main}; -use geo::frechet_distance::FrechetDistance; +use geo::{line_measures::FrechetDistance, Euclidean}; fn criterion_benchmark(c: &mut criterion::Criterion) { c.bench_function("frechet distance f32", |bencher| { @@ -8,7 +8,8 @@ fn criterion_benchmark(c: &mut criterion::Criterion) { bencher.iter(|| { criterion::black_box( - criterion::black_box(&ls_a).frechet_distance(criterion::black_box(&ls_b)), + criterion::black_box(&ls_a) + .frechet_distance::(criterion::black_box(&ls_b)), ); }); }); @@ -19,7 +20,8 @@ fn criterion_benchmark(c: &mut criterion::Criterion) { bencher.iter(|| { criterion::black_box( - criterion::black_box(&ls_a).frechet_distance(criterion::black_box(&ls_b)), + criterion::black_box(&ls_a) + .frechet_distance::(criterion::black_box(&ls_b)), ); }); });