private static void RunRegisteredBenchers() { Console.WriteLine("\nStarting benchmarks."); Console.WriteLine("===================================================================="); foreach (var bencher in RegisteredBenchers) { OriginalController.DisplayBencherInfo(bencher); try { OriginalController.RunBencher(bencher); } catch (Exception ex) { BencherUtils.DisplayException(ex); } } Console.WriteLine("\nPerforming memory measurement runs."); Console.WriteLine("===================================================================="); AppDomain.MonitoringIsEnabled = true; foreach (var bencher in RegisteredBenchers) { OriginalController.DisplayBencherInfo(bencher); try { OriginalController.RunMemoryAnalysisForBencher(bencher); } catch (Exception ex) { BencherUtils.DisplayException(ex); } } }
private static void RunRegisteredBenchers() { Console.WriteLine("\nStarting benchmarks."); Console.WriteLine("===================================================================="); foreach (var bencher in RegisteredBenchers) { OriginalController.DisplayBencherInfo(bencher); try { OriginalController.RunBencher(bencher); } catch (Exception ex) { BencherUtils.DisplayException(ex); } } }