aboutsummaryrefslogtreecommitdiff
path: root/benches
diff options
context:
space:
mode:
Diffstat (limited to 'benches')
-rw-r--r--benches/hittebench.rs7
1 files changed, 5 insertions, 2 deletions
diff --git a/benches/hittebench.rs b/benches/hittebench.rs
index 15ca3ff..163fd1e 100644
--- a/benches/hittebench.rs
+++ b/benches/hittebench.rs
@@ -1,6 +1,9 @@
use criterion::{criterion_group, criterion_main, Criterion};
-use hittekaart::{gpx, renderer};
+use hittekaart::{
+ gpx,
+ renderer::{self, heatmap},
+};
static BENCH_DATA: &str = include_str!("bench.gpx");
@@ -12,7 +15,7 @@ pub fn criterion_benchmark(c: &mut Criterion) {
let data = vec![gpx::extract_from_str(BENCH_DATA).unwrap()];
c.bench_function("render_heatcounter", |b| {
- b.iter(|| renderer::render_heatcounter(19, &data, |_| ()));
+ b.iter(|| renderer::prepare::<heatmap::Renderer, _>(19, &data, || Ok(())));
});
}