Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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]
23
fn 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]
31
fn parse_small(b: &mut Bencher) {
Callers
nothing calls this directly
Calls
3
unwrap
Method · 0.80
parse
Function · 0.50
iter
Method · 0.45
Tested by
no test coverage detected