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