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
The following commit(s) were added to refs/heads/main by this push:
new 47fddfb653 🔄 synced local 'docs/benchmarks/' with remote
'docs/benchmarks/'
47fddfb653 is described below
commit 47fddfb653b1566ac9b7b1e689f20b7f5af3e0be
Author: chaokunyang <[email protected]>
AuthorDate: Fri Feb 20 06:55:05 2026 +0000
🔄 synced local 'docs/benchmarks/' with remote 'docs/benchmarks/'
---
docs/benchmarks/cpp/README.md | 104 ++++++++++++++++++++++++-------
docs/benchmarks/cpp/mediacontent.png | Bin 51863 -> 52226 bytes
docs/benchmarks/cpp/mediacontentlist.png | Bin 54504 -> 57111 bytes
docs/benchmarks/cpp/sample.png | Bin 48714 -> 55251 bytes
docs/benchmarks/cpp/samplelist.png | Bin 51686 -> 53909 bytes
docs/benchmarks/cpp/struct.png | Bin 47309 -> 51352 bytes
docs/benchmarks/cpp/structlist.png | Bin 48428 -> 53820 bytes
docs/benchmarks/cpp/throughput.png | Bin 73763 -> 78902 bytes
8 files changed, 81 insertions(+), 23 deletions(-)
diff --git a/docs/benchmarks/cpp/README.md b/docs/benchmarks/cpp/README.md
index 1721869d80..63eba5adb2 100644
--- a/docs/benchmarks/cpp/README.md
+++ b/docs/benchmarks/cpp/README.md
@@ -1,6 +1,6 @@
# C++ Benchmark Performance Report
-_Generated on 2025-12-15 23:03:06_
+_Generated on 2026-02-19 10:20:08_
## How to Generate This Report
@@ -21,40 +21,98 @@ python benchmark_report.py --json-file
build/benchmark_results.json --output-dir
| CPU Cores (Physical) | 12 |
| CPU Cores (Logical) | 12 |
| Total RAM (GB) | 48.0 |
-| Benchmark Date | 2025-12-15T23:02:49+08:00 |
+| Benchmark Date | 2026-02-19T10:19:31+08:00 |
| CPU Cores (from benchmark) | 12 |
## Benchmark Plots
-
+All class-level plots below show throughput (ops/sec).
+
+### Throughput
+
+<p align="center">
+<img src="throughput.png" width="90%" />
+</p>
+
+### Mediacontent
+
+<p align="center">
+<img src="mediacontent.png" width="90%" />
+</p>
+
+### Mediacontentlist
+
+<p align="center">
+<img src="mediacontentlist.png" width="90%" />
+</p>
+
+### Sample
+
+<p align="center">
+<img src="sample.png" width="90%" />
+</p>
+
+### Samplelist
+
+<p align="center">
+<img src="samplelist.png" width="90%" />
+</p>
+
+### Struct
+
+<p align="center">
+<img src="struct.png" width="90%" />
+</p>
+
+### Structlist
+
+<p align="center">
+<img src="structlist.png" width="90%" />
+</p>
## Benchmark Results
### Timing Results (nanoseconds)
-| Datatype | Operation | Fory (ns) | Protobuf (ns) | Faster |
-| ------------ | ----------- | --------- | ------------- | ----------- |
-| Mediacontent | Serialize | 443.5 | 1982.5 | Fory (4.5x) |
-| Mediacontent | Deserialize | 1349.0 | 2525.2 | Fory (1.9x) |
-| Sample | Serialize | 235.4 | 309.7 | Fory (1.3x) |
-| Sample | Deserialize | 1068.7 | 1397.0 | Fory (1.3x) |
-| Struct | Serialize | 109.4 | 170.0 | Fory (1.6x) |
-| Struct | Deserialize | 129.1 | 161.2 | Fory (1.2x) |
+| Datatype | Operation | fory (ns) | protobuf (ns) | msgpack (ns) |
Fastest |
+| ---------------- | ----------- | --------- | ------------- | ------------ |
------- |
+| MediaContent | Serialize | 120.4 | 863.8 | 281.1 |
fory |
+| MediaContent | Deserialize | 397.9 | 1197.9 | 2768.6 |
fory |
+| MediaContentList | Serialize | 480.9 | 4744.3 | 1407.5 |
fory |
+| MediaContentList | Deserialize | 2022.1 | 6426.0 | 13595.9 |
fory |
+| Sample | Serialize | 72.8 | 92.0 | 296.1 |
fory |
+| Sample | Deserialize | 328.2 | 641.2 | 2642.9 |
fory |
+| SampleList | Serialize | 287.3 | 4761.2 | 1506.7 |
fory |
+| SampleList | Deserialize | 1711.8 | 4875.2 | 13232.0 |
fory |
+| Struct | Serialize | 27.3 | 32.4 | 55.2 |
fory |
+| Struct | Deserialize | 21.4 | 25.0 | 747.3 |
fory |
+| StructList | Serialize | 69.4 | 419.8 | 285.9 |
fory |
+| StructList | Deserialize | 129.4 | 334.4 | 3385.8 |
fory |
### Throughput Results (ops/sec)
-| Datatype | Operation | Fory TPS | Protobuf TPS | Faster |
-| ------------ | ----------- | --------- | ------------ | ----------- |
-| Mediacontent | Serialize | 2,254,915 | 504,410 | Fory (4.5x) |
-| Mediacontent | Deserialize | 741,303 | 396,013 | Fory (1.9x) |
-| Sample | Serialize | 4,248,973 | 3,229,102 | Fory (1.3x) |
-| Sample | Deserialize | 935,709 | 715,837 | Fory (1.3x) |
-| Struct | Serialize | 9,143,618 | 5,881,005 | Fory (1.6x) |
-| Struct | Deserialize | 7,746,787 | 6,202,164 | Fory (1.2x) |
+| Datatype | Operation | fory TPS | protobuf TPS | msgpack TPS |
Fastest |
+| ---------------- | ----------- | ---------- | ------------ | ----------- |
------- |
+| MediaContent | Serialize | 8,306,128 | 1,157,712 | 3,557,700 |
fory |
+| MediaContent | Deserialize | 2,513,488 | 834,808 | 361,190 |
fory |
+| MediaContentList | Serialize | 2,079,229 | 210,777 | 710,492 |
fory |
+| MediaContentList | Deserialize | 494,523 | 155,617 | 73,551 |
fory |
+| Sample | Serialize | 13,745,041 | 10,871,787 | 3,377,292 |
fory |
+| Sample | Deserialize | 3,047,224 | 1,559,633 | 378,369 |
fory |
+| SampleList | Serialize | 3,481,110 | 210,029 | 663,693 |
fory |
+| SampleList | Deserialize | 584,168 | 205,121 | 75,574 |
fory |
+| Struct | Serialize | 36,672,581 | 30,900,039 | 18,114,682 |
fory |
+| Struct | Deserialize | 46,637,124 | 39,947,557 | 1,338,225 |
fory |
+| StructList | Serialize | 14,419,548 | 2,381,886 | 3,497,903 |
fory |
+| StructList | Deserialize | 7,729,173 | 2,990,652 | 295,353 |
fory |
### Serialized Data Sizes (bytes)
-| Datatype | Fory | Protobuf |
-| -------- | ---- | -------- |
-| Struct | 32 | 61 |
-| Sample | 384 | 375 |
+| Datatype | fory | protobuf | msgpack |
+| ---------------- | ---- | -------- | ------- |
+| Struct | 58 | 61 | 55 |
+| Sample | 446 | 375 | 530 |
+| MediaContent | 365 | 301 | 480 |
+| StructList | 184 | 315 | 289 |
+| SampleList | 1980 | 1890 | 2664 |
+| MediaContentList | 1535 | 1520 | 2421 |
diff --git a/docs/benchmarks/cpp/mediacontent.png
b/docs/benchmarks/cpp/mediacontent.png
index 3c42b14f3e..7fd07e4619 100644
Binary files a/docs/benchmarks/cpp/mediacontent.png and
b/docs/benchmarks/cpp/mediacontent.png differ
diff --git a/docs/benchmarks/cpp/mediacontentlist.png
b/docs/benchmarks/cpp/mediacontentlist.png
index 604663b68f..1fccde6493 100644
Binary files a/docs/benchmarks/cpp/mediacontentlist.png and
b/docs/benchmarks/cpp/mediacontentlist.png differ
diff --git a/docs/benchmarks/cpp/sample.png b/docs/benchmarks/cpp/sample.png
index 2932de24b5..127a6e1aab 100644
Binary files a/docs/benchmarks/cpp/sample.png and
b/docs/benchmarks/cpp/sample.png differ
diff --git a/docs/benchmarks/cpp/samplelist.png
b/docs/benchmarks/cpp/samplelist.png
index 6d903f53cb..2ebde46ef2 100644
Binary files a/docs/benchmarks/cpp/samplelist.png and
b/docs/benchmarks/cpp/samplelist.png differ
diff --git a/docs/benchmarks/cpp/struct.png b/docs/benchmarks/cpp/struct.png
index 94209b3754..88e586ff64 100644
Binary files a/docs/benchmarks/cpp/struct.png and
b/docs/benchmarks/cpp/struct.png differ
diff --git a/docs/benchmarks/cpp/structlist.png
b/docs/benchmarks/cpp/structlist.png
index fe2dca4ca8..c676e84df0 100644
Binary files a/docs/benchmarks/cpp/structlist.png and
b/docs/benchmarks/cpp/structlist.png differ
diff --git a/docs/benchmarks/cpp/throughput.png
b/docs/benchmarks/cpp/throughput.png
index 1aa86b16bb..9ffa742b65 100644
Binary files a/docs/benchmarks/cpp/throughput.png and
b/docs/benchmarks/cpp/throughput.png differ
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]