示例#1
0
 /// <summary>
 /// execute dotnet run -c Release and choose the benchmarks you want to run
 /// </summary>
 /// <param name="args"></param>
 public static void Main(string[] args)
 => BenchmarkSwitcher
 .FromAssemblyAndTypes(typeof(Program).Assembly, JsonBenchmarks.SerializerBenchmarks.GetTypes())
 .Run(args /*, CreateClrVsCoreConfig() uncomment it to run Clr vs .NET Core comparison*/);
示例#2
0
 /// <summary>
 /// execute dotnet run -c Release and choose the benchmarks you want to run
 /// or dotnet run -- --help to learn more about available command line arguments
 /// </summary>
 public static void Main(string[] args)
 => BenchmarkSwitcher
 .FromAssemblyAndTypes(typeof(Program).Assembly, JsonBenchmarks.SerializerBenchmarks.GetTypes())
 .Run(args);