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

Function parse_simple2

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

Source from the content-addressed store, hash-verified

21
22#[bench]
23fn parse_simple2(b: &mut Bencher) {
24 b.iter(|| {
25 let re = r"'[a-zA-Z_][a-zA-Z0-9_]*(')\b";
26 Expr::parse(re).unwrap()
27 });
28}
29
30#[bench]
31fn parse_small(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