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