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

Function compile_small_bytes

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

Source from the content-addressed store, hash-verified

46
47#[bench]
48fn compile_small_bytes(b: &mut Bencher) {
49 b.iter(|| {
50 let re = Parser::new().parse(r"\p{L}|\p{N}|\s|.|\d").unwrap();
51 Compiler::new().bytes(true).compile(&[re]).unwrap()
52 });
53}
54
55#[bench]
56fn compile_small_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