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

Function compile_huge_bytes

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

Source from the content-addressed store, hash-verified

69
70#[bench]
71fn compile_huge_bytes(b: &mut Bencher) {
72 b.iter(|| {
73 let re = Parser::new().parse(r"\p{L}{100}").unwrap();
74 Compiler::new().bytes(true).compile(&[re]).unwrap()
75 });
76}
77
78#[bench]
79fn compile_huge_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