LargeGraph.md

February 9, 2020 ยท View on GitHub

Large object graph

Protobuf-net 3.0.0-alpha.34 / MessagePack 2.0.335 / Ceras 4.1.7 / Apex

MessagePack fares worse here than others because it doesn't track object references

BenchmarkDotNet=v0.12.0, OS=Windows 10.0.18362
Intel Core i5-4690 CPU 3.50GHz (Haswell), 1 CPU, 4 logical and 4 physical cores
.NET Core SDK=3.1.101
  [Host]     : .NET Core 3.1.1 (CoreCLR 4.700.19.60701, CoreFX 4.700.19.60801), X64 RyuJIT

Serialization & Deserialization

MethodMeanErrorStdDevRatioRatioSDGen 0Gen 1Gen 2Allocated
S_Protobuf11,640.7 us145.82 us136.40 us18.350.21109.3750--1655548 B
D_Protobuf21,661.2 us164.21 us145.57 us34.170.2662.500031.2500-5865406 B
S_MessagePack28,070.3 us57.21 us53.52 us44.290.22---227040 B
D_MessagePack63,625.0 us750.98 us702.46 us100.331.15---15032263 B
S_Ceras5,815.5 us10.47 us9.28 us9.180.05---11138 B
D_Ceras14,154.6 us80.27 us75.09 us22.340.1731.250015.6250-2913496 B
S_Apex633.8 us3.13 us2.78 us1.000.00---1 B
D_Apex812.9 us4.77 us4.46 us1.280.0112.69532.9297-652304 B