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

Function parse_small

regex/bench/src/rust_parse.rs:31–36  ·  view source on GitHub ↗
(b: &mut Bencher)

Source from the content-addressed store, hash-verified

29
30#[bench]
31fn parse_small(b: &mut Bencher) {
32 b.iter(|| {
33 let re = r"\p{L}|\p{N}|\s|.|\d";
34 Expr::parse(re).unwrap()
35 });
36}
37
38#[bench]
39fn parse_huge(b: &mut Bencher) {

Callers

nothing calls this directly

Calls 3

unwrapMethod · 0.80
parseFunction · 0.50
iterMethod · 0.45

Tested by

no test coverage detected