From ea29aae64a1624f5fd5166d96b9a6ed9ce923c4a Mon Sep 17 00:00:00 2001 From: Jordan Petridis Date: Thu, 8 Feb 2018 17:33:40 +0200 Subject: [PATCH] Fix benchmarks. --- hammond-data/benches/bench.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/hammond-data/benches/bench.rs b/hammond-data/benches/bench.rs index 5113782..806ed87 100644 --- a/hammond-data/benches/bench.rs +++ b/hammond-data/benches/bench.rs @@ -65,7 +65,7 @@ fn bench_pipeline(c: &mut Criterion) { Source::from_url(url).unwrap(); }); - c.bench_function("pipline", |b| { + c.bench_function("pipline", move |b| { b.iter(|| { let sources = hammond_data::dbqueries::get_sources().unwrap(); pipeline::run(sources, true).unwrap(); @@ -79,7 +79,7 @@ fn bench_index_large_feed(c: &mut Criterion) { let url = "https://www.greaterthancode.com/feed/podcast"; let mut core = Core::new().unwrap(); - c.bench_function("index_large_feed", |b| { + c.bench_function("index_large_feed", move |b| { b.iter(|| { let s = Source::from_url(url).unwrap(); // parse it into a channel @@ -100,7 +100,7 @@ fn bench_index_small_feed(c: &mut Criterion) { let url = "https://rss.art19.com/steal-the-stars"; let mut core = Core::new().unwrap(); - c.bench_function("index_small_feed", |b| { + c.bench_function("index_small_feed", move |b| { b.iter(|| { let s = Source::from_url(url).unwrap(); // parse it into a channel