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

Function compile_simple

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

Source from the content-addressed store, hash-verified

15
16#[bench]
17fn compile_simple(b: &mut Bencher) {
18 b.iter(|| {
19 let re = Parser::new().parse(r"^bc(d|e)*$").unwrap();
20 Compiler::new().compile(&[re]).unwrap()
21 });
22}
23
24#[bench]
25fn compile_simple_bytes(b: &mut Bencher) {

Callers

nothing calls this directly

Calls 4

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

Tested by

no test coverage detected