rapidfuzz 0.1.0

rapid string matching library
Documentation
use criterion::{black_box, criterion_group, criterion_main, Criterion};
use levensthein_rs::process;

pub fn criterion_benchmark(c: &mut Criterion) {
	let query = "please add bananas to my shopping list";
	let choices = vec!["can you add bananas to my shopping list please"; 1_000];
    c.bench_function("speedup (ratio >= 95)", |b| b.iter(|| process::extract_max_par(black_box(&query), black_box(&choices))));
}

criterion_group!(benches, criterion_benchmark);
criterion_main!(benches);