diff --git a/benchmark/Microsoft.IdentityModel.Benchmarks/BenchmarkConfig.cs b/benchmark/Microsoft.IdentityModel.Benchmarks/BenchmarkConfig.cs index 628d6c1225..d66c8638c4 100644 --- a/benchmark/Microsoft.IdentityModel.Benchmarks/BenchmarkConfig.cs +++ b/benchmark/Microsoft.IdentityModel.Benchmarks/BenchmarkConfig.cs @@ -16,14 +16,15 @@ public BenchmarkConfig() { AddJob(Job.MediumRun .WithLaunchCount(4) - .WithMaxAbsoluteError(TimeInterval.FromMilliseconds(10))) - // uncomment to disable validation to enable debugging through benchmarks - //.WithOption(ConfigOptions.DisableOptimizationsValidator, true) - .AddColumn(StatisticColumn.P90, StatisticColumn.P95, StatisticColumn.P100) - .WithOrderer(new DefaultOrderer(SummaryOrderPolicy.Method)) - .HideColumns(Column.WarmupCount, Column.Type, Column.Job) - .AddDiagnoser(MemoryDiagnoser.Default); // https://benchmarkdotnet.org/articles/configs/diagnosers.html - //.AddDiagnoser(new EtwProfiler()) // Uncomment to generate traces / flame graphs. Doc: https://adamsitnik.com/ETW-Profiler/ + .WithMaxAbsoluteError(TimeInterval.FromMilliseconds(10)) + .AsDefault()) + // uncomment to disable validation to enable debugging through benchmarks + //.WithOption(ConfigOptions.DisableOptimizationsValidator, true) + .AddColumn(StatisticColumn.P90, StatisticColumn.P95, StatisticColumn.P100) + .WithOrderer(new DefaultOrderer(SummaryOrderPolicy.Method)) + .HideColumns(Column.WarmupCount, Column.Type, Column.Job) + .AddDiagnoser(MemoryDiagnoser.Default); // https://benchmarkdotnet.org/articles/configs/diagnosers.html + //.AddDiagnoser(new EtwProfiler()) // Uncomment to generate traces / flame graphs. Doc: https://adamsitnik.com/ETW-Profiler/ } } }