https://github.com/moientajik/protobufvsmsgpackbenchmark
A benchmark between Protobuf and MsgPack serializers with GZip compression alghorithm.
https://github.com/moientajik/protobufvsmsgpackbenchmark
benchmark compression csharp gzip messagepack msgpack protobuf serialization
Last synced: 7 months ago
JSON representation
A benchmark between Protobuf and MsgPack serializers with GZip compression alghorithm.
- Host: GitHub
- URL: https://github.com/moientajik/protobufvsmsgpackbenchmark
- Owner: MoienTajik
- Created: 2020-04-16T15:25:25.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2022-06-23T09:55:53.000Z (over 3 years ago)
- Last Synced: 2024-10-06T06:42:17.172Z (about 1 year ago)
- Topics: benchmark, compression, csharp, gzip, messagepack, msgpack, protobuf, serialization
- Language: C#
- Size: 536 KB
- Stars: 4
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: ReadMe.md
Awesome Lists containing this project
README
### Steps to run:
1. Install .NET Core 3.1 SDK from here: https://dot.net/core
2. Execute `dotnet run` command in the root of the project.
3. See benchmark results in `BenchmarkDotNet.Artifacts` folder.
> BenchmarkDotNet=v0.12.0, OS=Windows 10.0.18363
> Intel Core i7-6700HQ CPU 2.60GHz (Skylake), 1 CPU, 8 logical and 4 physical cores
> .NET Core SDK=3.1.201
> [Host]: .NET Core 3.1.3 (CoreCLR 4.700.20.11803, CoreFX 4.700.20.12001), X64 RyuJIT
> DefaultJob : .NET Core 3.1.3 (CoreCLR 4.700.20.11803, CoreFX 4.700.20.12001), X64 RyuJIT**Serialize + GZip Compression:**
MethodMeanErrorStdDevMedianMsgPackOutputSizeProtobufOutputSize
MsgPackSerialize48.14 ms0.959 ms2.260 ms47.13 ms381793 bytes455954 bytes
ProtobufSerialize81.24 ms1.611 ms4.041 ms80.88 ms381793 bytes455954 bytes
> BenchmarkDotNet=v0.12.0, OS=Windows 10.0.18363
> Intel Core i7-6700HQ CPU 2.60GHz (Skylake), 1 CPU, 8 logical and 4 physical cores
> .NET Core SDK=3.1.201
> [Host]: .NET Core 3.1.3 (CoreCLR 4.700.20.11803, CoreFX 4.700.20.12001), X64 RyuJIT
> DefaultJob : .NET Core 3.1.3 (CoreCLR 4.700.20.11803, CoreFX 4.700.20.12001), X64 RyuJIT**Deserialize + GZip Decompression:**
MethodMeanErrorStdDev
MsgPackDeserialize85.66 ms1.671 ms2.172 ms
ProtobufDeserialize107.33 ms2.002 ms2.142 ms