Benchmark a custom string normalisation function #139
@ -483,7 +483,6 @@ mod benches {
|
|||||||
|
|
||||||
#[bench]
|
#[bench]
|
||||||
fn normalize_search(b: &mut Bencher) {
|
fn normalize_search(b: &mut Bencher) {
|
||||||
// let strings = generate_sample(random_alpanumeric_string);
|
|
||||||
let mut iter = ARTISTS.iter().cycle();
|
let mut iter = ARTISTS.iter().cycle();
|
||||||
b.iter(|| test::black_box(Search::normalize_search(&iter.next().unwrap(), true, true)))
|
b.iter(|| test::black_box(Search::normalize_search(&iter.next().unwrap(), true, true)))
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user