added benchmark option to compare netfx and core runtime

This commit is contained in:
JanEggers
2019-04-15 15:52:51 +02:00
parent 03c61ad82c
commit 477e2d23ab
4 changed files with 36 additions and 6 deletions
@@ -0,0 +1,20 @@
using System.Linq;
using BenchmarkDotNet.Configs;
using BenchmarkDotNet.Jobs;
using BenchmarkDotNet.Validators;
namespace MQTTnet.Benchmarks.Configurations
{
/// <summary>
/// this options may be used to run benchmarks in debugmode and attach a performance profiler
/// https://benchmarkdotnet.org/Configs/Configs.htm
/// </summary>
public class AllowNonOptimized : BaseConfig
{
public AllowNonOptimized()
{
Add(JitOptimizationsValidator.DontFailOnError); // ALLOW NON-OPTIMIZED DLLS
Add(Job.InProcess);
}
}
}