diff options
author | James McCoy <jamessan@jamessan.com> | 2021-01-21 14:45:33 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-21 19:45:33 +0000 |
commit | 7291702f6b4fff10f2470f084abe0785b95659a0 (patch) | |
tree | e39a9c24608db9b661d947059acac18b30d90ca5 /alacritty_terminal/src/term/search.rs | |
parent | 753c4ed19ed026fabfad98b9874c54eb4bdcf8f0 (diff) | |
download | alacritty-7291702f6b4fff10f2470f084abe0785b95659a0.tar.gz alacritty-7291702f6b4fff10f2470f084abe0785b95659a0.zip |
Remove all rustc benchmarks
Co-authored-by: Christian Duerr <contact@christianduerr.com>
Diffstat (limited to 'alacritty_terminal/src/term/search.rs')
-rw-r--r-- | alacritty_terminal/src/term/search.rs | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/alacritty_terminal/src/term/search.rs b/alacritty_terminal/src/term/search.rs index 712daa92..b7aaaaba 100644 --- a/alacritty_terminal/src/term/search.rs +++ b/alacritty_terminal/src/term/search.rs @@ -770,26 +770,3 @@ mod tests { assert_eq!(term.regex_search_left(start, end), Some(match_start..=match_end)); } } - -#[cfg(all(test, feature = "bench"))] -mod benches { - extern crate test; - - use super::*; - - use crate::term::test::mock_term; - - #[bench] - fn regex_search(b: &mut test::Bencher) { - let input = format!("{:^10000}", "Alacritty"); - let mut term = mock_term(&input); - term.regex_search = Some(RegexSearch::new(" Alacritty ").unwrap()); - let start = Point::new(0, Column(0)); - let end = Point::new(0, Column(input.len() - 1)); - - b.iter(|| { - test::black_box(term.regex_search_right(start, end)); - test::black_box(term.regex_search_left(end, start)); - }); - } -} |