mirror of
https://github.com/dotnet/MQTTnet.git
synced 2026-10-15 00:15:15 +08:00
commit c3ca0ef7da4bcc2103cda2bb175ea3c5a49da2e6 Author: Christian <6939810+chkr1011@users.noreply.github.com> Date: Sat Jun 25 22:58:18 2022 +0200 Update nugets and fix breaking changes.
30 lines
733 B
C#
30 lines
733 B
C#
using BenchmarkDotNet.Attributes;
|
|
using BenchmarkDotNet.Jobs;
|
|
using MQTTnet.Tests.Mockups;
|
|
using MQTTnet.Tests.Server;
|
|
|
|
namespace MQTTnet.Benchmarks
|
|
{
|
|
[SimpleJob(RuntimeMoniker.Net60)]
|
|
[RPlotExporter, RankColumn]
|
|
[MemoryDiagnoser]
|
|
public class RoundtripProcessingBenchmark
|
|
{
|
|
[GlobalSetup]
|
|
public void GlobalSetup()
|
|
{
|
|
TestEnvironment.EnableLogger = false;
|
|
}
|
|
|
|
[GlobalCleanup]
|
|
public void GlobalCleanup()
|
|
{
|
|
}
|
|
|
|
[Benchmark]
|
|
public void Handle_100_000_Messages_In_Receiving_Client()
|
|
{
|
|
new Load_Tests().Handle_100_000_Messages_In_Receiving_Client().GetAwaiter().GetResult();
|
|
}
|
|
}
|
|
} |