using System; using BenchmarkDotNet.Configs; using BenchmarkDotNet.Jobs; using BenchmarkDotNet.Running; using BenchmarkDotNet.Validators; namespace ServiceStack.Text.Benchmarks { public class Program { public static void Main(string[] args) { var benchmarks = new[] { typeof(JsonDeserializationBenchmarks), typeof(ParseBuiltinBenchmarks) }; var switcher = new BenchmarkSwitcher(benchmarks); foreach (var benchmark in benchmarks) { switcher.Run( args: new[] {benchmark.Name}, config: ManualConfig .Create(DefaultConfig.Instance) //.With(Job.RyuJitX64) .With(Job.Core) .With(Job.Clr) .With(new BenchmarkDotNet.Diagnosers.CompositeDiagnoser()) .With(ExecutionValidator.FailOnError) ); } } } }