v3.0.1
Nino.Serialization v3.0.1
- [Fix] Fix endianness issue for empty collections
- [Optimization] Faster deserialization for List types
- [Feat] Nino for Unity now installs via UPM
Performance Report
expand
BenchmarkDotNet v0.14.0, Ubuntu 22.04.5 LTS (Jammy Jellyfish)
AMD EPYC 7763, 1 CPU, 4 logical and 2 physical cores
.NET SDK 9.0.100
[Host] : .NET 8.0.10 (8.0.1024.46610), X64 RyuJIT AVX2
Job-UDEFYT : .NET 9.0.0 (9.0.24.52809), X64 RyuJIT AVX2
Runtime=.NET 9.0 IterationCount=20 WarmupCount=1
Method | Mean | Error | StdDev | Ratio | RatioSD | Payload |
---|---|---|---|---|---|---|
MessagePackDeserializeSimpleClass | 1,996.9318 ns | 5.8131 ns | 5.7092 ns | 4.51 | 0.03 | - |
MemoryPackDeserializeSimpleClass | 609.7679 ns | 2.2801 ns | 2.5344 ns | 1.38 | 0.01 | - |
NinoDeserializeSimpleClass | 442.7896 ns | 2.4367 ns | 2.8061 ns | 1.00 | 0.01 | - |
MessagePackSerializeSimpleClass | 1,112.9910 ns | 1.4135 ns | 1.4516 ns | 4.46 | 0.02 | 700B |
MemoryPackSerializeSimpleClass | 610.6922 ns | 2.0925 ns | 2.2389 ns | 2.45 | 0.01 | 755B |
NinoSerializeSimpleClass | 249.6187 ns | 0.9144 ns | 0.9784 ns | 1.00 | 0.01 | 724B |
MessagePackDeserializeSimpleClasses | 196,423.8561 ns | 1,025.8870 ns | 1,181.4130 ns | 4.24 | 0.03 | - |
MemoryPackDeserializeSimpleClasses | 59,163.3138 ns | 309.3698 ns | 331.0222 ns | 1.28 | 0.01 | - |
NinoDeserializeSimpleClasses | 46,370.0857 ns | 239.2497 ns | 245.6918 ns | 1.00 | 0.01 | - |
MessagePackSerializeSimpleClasses | 108,997.3315 ns | 171.3512 ns | 190.4564 ns | 4.82 | 0.02 | 68.36KB |
MemoryPackSerializeSimpleClasses | 57,760.9782 ns | 227.7825 ns | 243.7247 ns | 2.55 | 0.02 | 73.73KB |
NinoSerializeSimpleClasses | 22,608.9590 ns | 101.2861 ns | 112.5792 ns | 1.00 | 0.01 | 70.71KB |
MessagePackDeserializeSimpleStruct | 74.2694 ns | 0.2833 ns | 0.3149 ns | 128.61 | 2.33 | - |
MemoryPackDeserializeSimpleStruct | 2.0172 ns | 0.0050 ns | 0.0056 ns | 3.49 | 0.06 | - |
NinoDeserializeSimpleStruct | 0.5777 ns | 0.0096 ns | 0.0106 ns | 1.00 | 0.03 | - |
MessagePackSerializeSimpleStruct | 76.6123 ns | 0.4130 ns | 0.4590 ns | 10.23 | 0.11 | 16B |
MemoryPackSerializeSimpleStruct | 10.2233 ns | 0.0691 ns | 0.0795 ns | 1.37 | 0.02 | 16B |
NinoSerializeSimpleStruct | 7.4894 ns | 0.0623 ns | 0.0667 ns | 1.00 | 0.01 | 16B |
MessagePackDeserializeSimpleStructs | 4,194.2211 ns | 8.8535 ns | 9.4731 ns | 32.94 | 0.65 | - |
MemoryPackDeserializeSimpleStructs | 157.4929 ns | 1.4636 ns | 1.6268 ns | 1.24 | 0.03 | - |
NinoDeserializeSimpleStructs | 127.3916 ns | 2.2524 ns | 2.5939 ns | 1.00 | 0.03 | - |
MessagePackSerializeSimpleStructs | 4,157.2686 ns | 22.5473 ns | 25.9655 ns | 32.05 | 0.67 | 1.57KB |
MemoryPackSerializeSimpleStructs | 142.3828 ns | 2.2060 ns | 2.5405 ns | 1.10 | 0.03 | 1.57KB |
NinoSerializeSimpleStructs | 129.7484 ns | 2.3266 ns | 2.6793 ns | 1.00 | 0.03 | 1.57KB |