tree: 5402151ceb3c40c29ca3985e579ac8d06660e5fc
  1. README.md
  2. throughput.png
docs/benchmarks/cpp/README.md

C++ Benchmark Performance Report

Generated on 2026-06-12 16:14:04

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-06-12T16:13:27+08:00
CPU Cores (from benchmark)12

Benchmark Results

Timing Results (nanoseconds)

DatatypeOperationfory (ns)protobuf (ns)msgpack (ns)Fastest
NumericStructSerialize25.748.285.4fory
NumericStructDeserialize25.131.8887.2fory
SampleSerialize60.696.4361.6fory
SampleDeserialize176.7397.02031.6fory
MediaContentSerialize113.5471.0290.4fory
MediaContentDeserialize247.3641.92015.4fory
NumericStructListSerialize83.3372.9446.9fory
NumericStructListDeserialize158.1268.24342.4fory
SampleListSerialize258.82829.72602.3fory
SampleListDeserialize1001.72794.412220.7fory
MediaContentListSerialize504.22589.81549.5fory
MediaContentListDeserialize1258.63620.310263.4fory

Throughput Results (ops/sec)

DatatypeOperationfory TPSprotobuf TPSmsgpack TPSFastest
NumericStructSerialize38,845,46120,734,96311,707,994fory
NumericStructDeserialize39,872,21731,443,8291,127,092fory
SampleSerialize16,496,48810,372,6572,765,312fory
SampleDeserialize5,660,8522,518,926492,232fory
MediaContentSerialize8,808,0842,122,9263,443,519fory
MediaContentDeserialize4,043,0281,557,819496,175fory
NumericStructListSerialize11,999,5982,681,6612,237,536fory
NumericStructListDeserialize6,323,7303,728,133230,285fory
SampleListSerialize3,864,068353,391384,276fory
SampleListDeserialize998,326357,85481,828fory
MediaContentListSerialize1,983,502386,135645,372fory
MediaContentListDeserialize794,544276,22197,434fory

Serialized Data Sizes (bytes)

Datatypeforyprotobufmsgpack
NumericStruct789387
Sample445375530
MediaContent362301480
NumericStructList255475449
SampleList197818902664
MediaContentList153115202421