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

Function replace_all

regex/bench/src/misc.rs:109–113  ·  view source on GitHub ↗
(b: &mut Bencher)

Source from the content-addressed store, hash-verified

107#[cfg(feature = "re-rust")]
108#[bench]
109fn replace_all(b: &mut Bencher) {
110 let re = regex!("[cjrw]");
111 let text = "abcdefghijklmnopqrstuvwxyz";
112 b.iter(|| re.replace_all(text, ""));
113}
114
115const TXT_32: &'static str = include_str!("data/32.txt");
116const TXT_1K: &'static str = include_str!("data/1K.txt");

Callers

nothing calls this directly

Calls 2

iterMethod · 0.45
replace_allMethod · 0.45

Tested by

no test coverage detected