Skip to content

Commit

Permalink
remove unused functions in benchmarks
Browse files Browse the repository at this point in the history
  • Loading branch information
Dr-Emann committed Oct 10, 2023
1 parent 45f637c commit 6d50168
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions benches/benchmarks.rs
Original file line number Diff line number Diff line change
Expand Up @@ -183,16 +183,6 @@ fn big_16(c: &mut Criterion) {
});
}

fn memchr_finder() -> &'static memchr::memmem::Finder<'static> {
static FINDER: OnceLock<memchr::memmem::Finder> = OnceLock::new();
FINDER.get_or_init(|| memchr::memmem::Finder::new("xyzzy"))
}

fn substring() -> &'static SubstringConst {
static SUBSTRING: OnceLock<SubstringConst> = OnceLock::new();
SUBSTRING.get_or_init(|| SubstringConst::new("xyzzy"))
}

fn substr(c: &mut Criterion) {
let mut haystack = prefix_string();
haystack.push_str("xyzzy");
Expand Down

0 comments on commit 6d50168

Please sign in to comment.