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 8d4eba6
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions benches/benchmarks.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
use criterion::{criterion_group, criterion_main, Criterion, Throughput};
use jetscii::{ascii_chars, AsciiCharsConst, SubstringConst};
use std::hint::black_box;
use std::sync::OnceLock;

static SPACE: AsciiCharsConst = ascii_chars!(' ');
static XML_DELIM_3: AsciiCharsConst = ascii_chars!('<', '>', '&');
Expand Down Expand Up @@ -183,16 +182,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 8d4eba6

Please sign in to comment.