Skip to main content
Version: 1.0.0

C++ Benchmark Performance Report

Generated on 2026-05-08 17:54:45

How to Generate This Report

cd benchmarks/cpp/build
./fory_benchmark --benchmark_format=json --benchmark_out=benchmark_results.json
cd ..
python benchmark_report.py --json-file build/benchmark_results.json --output-dir report

Benchmark Plot

The plot shows throughput (ops/sec); higher is better.

Throughput

Hardware & OS Info

KeyValue
OSDarwin 24.6.0
Machinearm64
Processorarm
CPU Cores (Physical)12
CPU Cores (Logical)12
Total RAM (GB)48.0
Benchmark Date2026-05-08T16:29:28+08:00
CPU Cores (from benchmark)12

Benchmark Results

Timing Results (nanoseconds)

DatatypeOperationfory (ns)protobuf (ns)msgpack (ns)Fastest
NumericStructSerialize24.948.291.0fory
NumericStructDeserialize26.633.01194.5fory
SampleSerialize62.397.3314.6fory
SampleDeserialize371.1689.02649.9fory
MediaContentSerialize115.0857.2311.7fory
MediaContentDeserialize406.51193.13311.1fory
NumericStructListSerialize81.7495.0485.6fory
NumericStructListDeserialize180.9410.65733.1fory
SampleListSerialize284.95004.91579.6fory
SampleListDeserialize1928.75118.113396.8fory
MediaContentListSerialize464.84861.11671.1fory
MediaContentListDeserialize2099.86610.313963.4fory

Throughput Results (ops/sec)

DatatypeOperationfory TPSprotobuf TPSmsgpack TPSFastest
NumericStructSerialize40,087,66820,733,30510,989,907fory
NumericStructDeserialize37,606,12730,296,744837,189fory
SampleSerialize16,041,29910,277,2073,178,983fory
SampleDeserialize2,694,4341,451,449377,373fory
MediaContentSerialize8,698,5741,166,5393,208,626fory
MediaContentDeserialize2,460,094838,185302,013fory
NumericStructListSerialize12,240,2752,020,1022,059,276fory
NumericStructListDeserialize5,527,3332,435,246174,427fory
SampleListSerialize3,510,210199,804633,061fory
SampleListDeserialize518,490195,38674,645fory
MediaContentListSerialize2,151,560205,715598,396fory
MediaContentListDeserialize476,241151,28071,616fory

Serialized Data Sizes (bytes)

Datatypeforyprotobufmsgpack
NumericStruct789387
Sample445375530
MediaContent362301480
NumericStructList255475449
SampleList197818902664
MediaContentList153115202421