using System; using BenchmarkDotNet.Running; using MQTTnet.Diagnostics; namespace MQTTnet.Benchmarks { public static class Program { public static void Main(string[] args) { Console.WriteLine($"MQTTnet - BenchmarkApp.{TargetFrameworkInfoProvider.TargetFramework}"); Console.WriteLine("1 = MessageProcessingBenchmark"); Console.WriteLine("2 = SerializerBenchmark"); Console.WriteLine("3 = LoggerBenchmark"); var pressedKey = Console.ReadKey(true); switch (pressedKey.KeyChar) { case '1': BenchmarkRunner.Run(); break; case '2': BenchmarkRunner.Run(); break; case '3': BenchmarkRunner.Run(); break; } Console.ReadLine(); } } }