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

Function parse_simple

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

Source from the content-addressed store, hash-verified

13
14#[bench]
15fn parse_simple(b: &mut Bencher) {
16 b.iter(|| {
17 let re = r"^bc(d|e)*$";
18 Expr::parse(re).unwrap()
19 });
20}
21
22#[bench]
23fn parse_simple2(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