This is an automated email from the ASF dual-hosted git repository. chaokunyang pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/fory-site.git
commit d1423c2be204950079e71c30015d1df3fbd05c57 Author: chaokunyang <[email protected]> AuthorDate: Mon Dec 15 15:45:36 2025 +0000 🔄 synced local 'static/img/benchmarks/' with remote 'docs/benchmarks/' --- static/img/benchmarks/cpp/README.md | 62 +++++++++++++++++++++++++++++++ static/img/benchmarks/cpp/throughput.png | Bin 0 -> 52502 bytes 2 files changed, 62 insertions(+) diff --git a/static/img/benchmarks/cpp/README.md b/static/img/benchmarks/cpp/README.md new file mode 100644 index 000000000..ceab2eaed --- /dev/null +++ b/static/img/benchmarks/cpp/README.md @@ -0,0 +1,62 @@ +# C++ Benchmark Performance Report + +_Generated on 2025-12-15 23:03:06_ + +## How to Generate This Report + +```bash +cd benchmarks/cpp_benchmark/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 +``` + +## Hardware & OS Info + +| Key | Value | +| -------------------------- | ------------------------- | +| OS | Darwin 24.6.0 | +| Machine | arm64 | +| Processor | arm | +| CPU Cores (Physical) | 12 | +| CPU Cores (Logical) | 12 | +| Total RAM (GB) | 48.0 | +| Benchmark Date | 2025-12-15T23:02:49+08:00 | +| CPU Cores (from benchmark) | 12 | + +## Benchmark Plots + +<p align="center"> +<img src="throughput.png" width="90%"> +</p> + +## Benchmark Results + +### Timing Results (nanoseconds) + +| Datatype | Operation | Fory (ns) | Protobuf (ns) | Faster | +| ------------ | ----------- | --------- | ------------- | ----------- | +| Mediacontent | Serialize | 435.0 | 2104.4 | Fory (4.8x) | +| Mediacontent | Deserialize | 1361.8 | 2695.0 | Fory (2.0x) | +| Sample | Serialize | 219.5 | 350.8 | Fory (1.6x) | +| Sample | Deserialize | 1133.0 | 1512.6 | Fory (1.3x) | +| Struct | Serialize | 51.2 | 184.0 | Fory (3.6x) | +| Struct | Deserialize | 135.1 | 167.0 | Fory (1.2x) | + +### Throughput Results (ops/sec) + +| Datatype | Operation | Fory TPS | Protobuf TPS | Faster | +| ------------ | ----------- | ---------- | ------------ | ----------- | +| Mediacontent | Serialize | 2,298,686 | 475,190 | Fory (4.8x) | +| Mediacontent | Deserialize | 734,318 | 371,056 | Fory (2.0x) | +| Sample | Serialize | 4,556,001 | 2,850,266 | Fory (1.6x) | +| Sample | Deserialize | 882,650 | 661,107 | Fory (1.3x) | +| Struct | Serialize | 19,541,982 | 5,436,142 | Fory (3.6x) | +| Struct | Deserialize | 7,402,696 | 5,987,231 | Fory (1.2x) | + +### Serialized Data Sizes (bytes) + +| Datatype | Fory | Protobuf | +| -------- | ---- | -------- | +| Struct | 34 | 61 | +| Sample | 394 | 375 | diff --git a/static/img/benchmarks/cpp/throughput.png b/static/img/benchmarks/cpp/throughput.png new file mode 100644 index 000000000..6d487c39a Binary files /dev/null and b/static/img/benchmarks/cpp/throughput.png differ --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
