Beispiel #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);
        }
Beispiel #2
0
 public int Count() => Perf_Regex_Industry.Count(_regex, _input);
Beispiel #3
0
 public void Setup()
 {
     _regex = new Regex(Pattern, Options);
     _input = Perf_Regex_Industry.ReadInputFile("mariomka.txt.gz");
 }
Beispiel #4
0
 public int Count() => Perf_Regex_Industry.Count(_regex, _3200);
Beispiel #5
0
 public void Setup()
 {
     _regex = new Regex(Pattern, Options);
     _3200  = Perf_Regex_Industry.ReadInputFile("3200.txt.gz");
 }
Beispiel #6
0
 public int Count() => Perf_Regex_Industry.Count(_regex, _sherlock);
Beispiel #7
0
 public void Setup()
 {
     _regex    = new Regex(Pattern, Options);
     _sherlock = Perf_Regex_Industry.ReadInputFile("sherlock.txt.gz");
 }
Beispiel #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();
 }