File size after the size comparison of C # .NET BinaryFormatter, protobuf-net, Newtonsoft.Json sequence and the sequence of the method and efficiency of their write sequence

Test results as shown below:

After finishing the test results:

in conclusion:

1, these tools, protobuf-net serialization and de-serialization efficiency is the fastest, but the file size is three times bigger than BinaryFormatter, if large amounts of data required for network transmission, then it is good BinaryFormatter

2, BinaryFormatter and deserialize Newtonsoft.Json more slowly

 

Guess you like

Origin www.cnblogs.com/s0611163/p/11872484.html
Recommended