Example #1
0
        [MinIterationCount(3)] // each iteration takes several seconds
        public int Count()
        {
            int found = 0;

            foreach (Regex r in _regexes)
            {
                found += Perf_Regex_Industry.Count(r, _input);
            }
            return(found);
        }
Example #2
0
 public int Count() => Perf_Regex_Industry.Count(_regex, _input);
Example #3
0
 public void Setup()
 {
     _regex = new Regex(Pattern, Options);
     _input = Perf_Regex_Industry.ReadInputFile("mariomka.txt.gz");
 }
Example #4
0
 public int Count() => Perf_Regex_Industry.Count(_regex, _3200);
Example #5
0
 public void Setup()
 {
     _regex = new Regex(Pattern, Options);
     _3200  = Perf_Regex_Industry.ReadInputFile("3200.txt.gz");
 }
Example #6
0
 public int Count() => Perf_Regex_Industry.Count(_regex, _sherlock);
Example #7
0
 public void Setup()
 {
     _regex    = new Regex(Pattern, Options);
     _sherlock = Perf_Regex_Industry.ReadInputFile("sherlock.txt.gz");
 }
Example #8
0
 public void Setup()
 {
     _input   = Perf_Regex_Industry.ReadInputFile("sherlock.txt.gz");
     _regexes = s_extractWords.Matches(_input).Cast <Match>().Select(m => m.Captures[0].Value).Distinct().Select(w => new Regex(w, Options)).ToArray();
 }