static void RunLoopBenchmark() { Console.WriteLine($"{nameof(RunLoopBenchmark)} {nameof(LoopCount)}"); using (var loopCount = new LoopCount()) { loopCount.Run(); } }
static void RunLoopBenchmark(string name) { if (string.IsNullOrEmpty(name) || string.Compare(name, "count", StringComparison.CurrentCultureIgnoreCase) == 0) { Console.WriteLine($"{nameof(RunLoopBenchmark)} {nameof(LoopCount)}"); using (var loopCount = new LoopCount()) { loopCount.Run(); } } }