rlocate/crates/squozen/bench/bench_patprep.rs

12 lines
242 B
Rust
Raw Normal View History

use squozen::prepare_pattern::prepare_pattern;
const COUNT: usize = 5 * 1000 * 1000 * 100;
fn main() {
let mut end = COUNT;
while end > 0 {
let _ = prepare_pattern(b"/foo/bar/whatever[0-9]*");
end = end - 1;
}
}