This article is a mirror article of machine translation, please click here to jump to the original article.

View: 4376|Reply: 2

[Source] MessagePack and protobuf-net performance benchmarks

[Copy link]
Posted on 8/31/2023 8:56:38 PM | | | |
Requirements: Recently we saw the release of MessagePack, a serialization framework, which is an efficient binary serialization format. It allows you to exchange data between multiple languages, such as JSON. But it's faster and smaller. Small integers are encoded as a single byte, and a typical short string requires only one extra byte in addition to the string itself.

.net/c# Xml, Json, Hessian, Protocol Buffers serialization comparison
https://www.itsvse.com/thread-4675-1-1.html

.net/c# Google Protocol Buffers tutorial
https://www.itsvse.com/thread-3668-1-1.html

.net/c# Google Protocol Buffers Quick Start
https://www.itsvse.com/thread-3626-1-1.html

MessagePack is supported by over 50 programming languages and environments. Website:The hyperlink login is visible.

In short: it's a tool for serializing and deserializing objects, just like Newtonsoft.Json, except that it's a tool for serializing and deserializing objectsThe performance, speed, and usage are much higher than JSON serialization, and the disadvantage is poor readability (it cannot be intuitively viewed as JSON content).

MessagePack for C #(.NET, .NET Core, Unity, Xamarin):The hyperlink login is visible.

Extremely fast MessagePack serializer for C#. It is 10x faster than MsgPack-Cli and outperforms other C# serializers. MessagePack for C# also has built-in support for LZ4 compression - an extremely fast compression algorithm. Performance matters, especially in applications such as gaming, distributed computing, microservices, or data caching.

The performance comparison chart is as follows:



Benchmark with BenchmarkDotNet for the code:

The referenced packages are as follows:

The test results are as follows:



MessagePack is indeed faster than protobuf-net serialization, deserialization, since deserialization requires converting hexadecimal to byte[] in, serialization should be faster.

(End)





Previous:ESXI 7 is unable to send the keyboard ctrl+alt+delete to the virtual machine
Next:VS 2022 push source code to private Azure DevOps Server issues
 Landlord| Posted on 9/1/2023 9:56:23 PM |
A binary serializer that is faster than MessagePackMemoryPack

GitHub:The hyperlink login is visible.



 Landlord| Posted on 9/17/2023 10:47:32 AM |
asp.net core 3.1 enables the website Brotli compression algorithm
https://www.itsvse.com/thread-9532-1-1.html

.net/c# GZipStream data compression
https://www.itsvse.com/thread-4240-1-1.html

.NET 6 tests Gzip and Brotli algorithms
https://www.itsvse.com/thread-10663-1-1.html
Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com