private static IEnumerable <Summary> RunAll() { var switcher = new BenchmarkSwitcher(typeof(Program).Assembly); var summaries = switcher.RunAll(); return(summaries); }
private static void Main(string[] args) { var switcher = new BenchmarkSwitcher(typeof(BenchmarkConfig).Assembly); switcher.RunAll(new BenchmarkConfig()); //For single run. //switcher.Run(args, new BenchmarkConfig()); }
static void Main(string[] args) { var benchmarkSwitcher = new BenchmarkSwitcher(new[] { typeof(Md5VsSha256), typeof(BuilderVsConcat), }); benchmarkSwitcher.RunAll(); }
static void Main(string[] args) { var switcher = new BenchmarkSwitcher(new Type[] { typeof(MyBenchmarkClass) } ); switcher.RunAll(); }
static void Main(string[] args) { var switcher = new BenchmarkSwitcher(BenchmarkTypes); if (args == null || args.Length == 0) { switcher.RunAll(); } else { switcher.Run(args); } }
public static async Task Main(string[] args) { var runner = new BenchmarkSwitcher(All.Benchmarks); if (args.Any(a => a.Contains("filter"))) { runner.Run(args); return; } runner.RunAll(); Console.WriteLine("Creating report..."); var fs = new FileSystem(); await new Report(fs).Save(); Console.WriteLine("Done!"); }
public static void Main() { var switcher = new BenchmarkSwitcher(typeof(Program).Assembly); switcher.RunAll(); }