Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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]
31
fn 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]
39
fn parse_huge(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