Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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]
15
fn 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]
23
fn parse_simple2(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