diff --git a/bench/src/rust_compile.rs b/bench/src/rust_compile.rs index 1f96948522..f88e9b181e 100644 --- a/bench/src/rust_compile.rs +++ b/bench/src/rust_compile.rs @@ -48,7 +48,7 @@ fn compile_small_full(b: &mut Bencher) { #[bench] fn compile_huge(b: &mut Bencher) { b.iter(|| { - let re = Parser::new().parse(r"\p{L}{100}").unwrap(); + let re = Parser::new().parse(r"\p{L}{50}").unwrap(); Compiler::new().size_limit(1 << 30).compile(&[re]).unwrap() }); } @@ -56,12 +56,12 @@ fn compile_huge(b: &mut Bencher) { #[bench] fn compile_huge_bytes(b: &mut Bencher) { b.iter(|| { - let re = Parser::new().parse(r"\p{L}{100}").unwrap(); + let re = Parser::new().parse(r"\p{L}{50}").unwrap(); Compiler::new().size_limit(1 << 30).bytes(true).compile(&[re]).unwrap() }); } #[bench] fn compile_huge_full(b: &mut Bencher) { - b.iter(|| regex!(r"\p{L}{100}")); + b.iter(|| regex!(r"\p{L}{50}")); }