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