MCPcopy Create free account
hub / github.com/davidblewett/rure-python / compile_simple_bytes

Function compile_simple_bytes

regex/bench/src/rust_compile.rs:25–30  ·  view source on GitHub ↗
(b: &mut Bencher)

Source from the content-addressed store, hash-verified

23
24#[bench]
25fn compile_simple_bytes(b: &mut Bencher) {
26 b.iter(|| {
27 let re = Parser::new().parse(r"^bc(d|e)*$").unwrap();
28 Compiler::new().bytes(true).compile(&[re]).unwrap()
29 });
30}
31
32#[bench]
33fn compile_simple_full(b: &mut Bencher) {

Callers

nothing calls this directly

Calls 5

unwrapMethod · 0.80
compileMethod · 0.80
iterMethod · 0.45
parseMethod · 0.45
bytesMethod · 0.45

Tested by

no test coverage detected