I have finally done a like-for-like benchmaerk on JustEat.Statsd
version 2.1 versus version 3.1
In order to get a consistent measurement, it has to be on the same machine under the same conditions.
dotnet run -c Release --framework netcoreapp2.0
BenchmarkDotNet=v0.11.0, OS=Windows 10.0.17134.167 (1803/April2018Update/Redstone4)
Intel Core i7-4712HQ CPU 2.30GHz (Max: 2.20GHz) (Haswell), 1 CPU, 8 logical and 4 physical cores
.NET Core SDK=2.1.4
[Host] : .NET Core 2.0.7 (CoreCLR 4.6.26328.01, CoreFX 4.6.26403.03), 64bit RyuJIT
DefaultJob : .NET Core 2.0.7 (CoreCLR 4.6.26328.01, CoreFX 4.6.26403.03), 64bit RyuJIT
Method | Mean | Error | Allocated |
---|---|---|---|
RunUdp | 574.3 us | 5.607 us | 132.34 KB |
Method | Mean | Error | Allocated |
---|---|---|---|
SendStatPooledUdp | 24.91 us | 0.1103 us | 384 B |