diff --git a/nblast-rs/src/lib.rs b/nblast-rs/src/lib.rs index 65c0aa8..00a8d90 100644 --- a/nblast-rs/src/lib.rs +++ b/nblast-rs/src/lib.rs @@ -80,6 +80,7 @@ //! // Create an arena to hold your neurons with this score function, and //! // whether it should scale the dot products by the colinearity value. //! let mut arena = NblastArena::new(smat, false); +//! // if the "parallel" feature is enabled, use e.g. `.with_threads(5)` to set 5 threads for multi-neuron queries //! //! let mut rng = fastrand::Rng::with_seed(1991); //! diff --git a/spatial_bench/benches/spatial.rs b/spatial_bench/benches/spatial.rs index 2428f19..ed9f139 100644 --- a/spatial_bench/benches/spatial.rs +++ b/spatial_bench/benches/spatial.rs @@ -68,22 +68,28 @@ pub fn bench_queries(c: &mut Criterion) { }); let ar = make_arena::(points.clone()); - group.bench_function("kiddo", |b| b.iter(|| { - pair_queries(&ar, &pairs); - black_box(()) - })); + group.bench_function("kiddo", |b| { + b.iter(|| { + pair_queries(&ar, &pairs); + black_box(()) + }) + }); let ar = make_arena::(points.clone()); - group.bench_function("nabo", |b| b.iter(|| { - pair_queries(&ar, &pairs); - black_box(()) - })); + group.bench_function("nabo", |b| { + b.iter(|| { + pair_queries(&ar, &pairs); + black_box(()) + }) + }); let ar = make_arena::(points.clone()); - group.bench_function("rstar", |b| b.iter(|| { - pair_queries(&ar, &pairs); - black_box(()) - })); + group.bench_function("rstar", |b| { + b.iter(|| { + pair_queries(&ar, &pairs); + black_box(()) + }) + }); } criterion_group!(benches, bench_construction, bench_queries);