rlocate/crates/squozen/bench/bench_patprep.rs

14 lines
325 B
Rust
Raw Normal View History

use squozen::prepare_pattern::prepare_pattern_raw;
const COUNT: usize = 5 * 1000 * 1000 * 100;
fn main() {
let mut end = COUNT;
let mut dest = Vec::<u8>::with_capacity(100);
while end > 0 {
dest.clear();
prepare_pattern_raw(b"/foo/bar/whatever[0-9]*", &mut dest);
end = end - 1;
}
}