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
+2 -1
View File
@@ -1,5 +1,6 @@
using System;
using BenchmarkDotNet.Running;
using MQTTnet.Benchmarks.Configurations;
using MQTTnet.Diagnostics;
namespace MQTTnet.Benchmarks
@@ -43,7 +44,7 @@ namespace MQTTnet.Benchmarks
BenchmarkRunner.Run<TcpPipesBenchmark>();
break;
case '8':
BenchmarkRunner.Run<MessageProcessingMqttConnectionContextBenchmark>(new AllowNonOptimized());
BenchmarkRunner.Run<MessageProcessingMqttConnectionContextBenchmark>(new RuntimeCompareConfig()/*new AllowNonOptimized()*/);
break;
}