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 9b88b2280 fix benchmark (#374)
9b88b2280 is described below
commit 9b88b22807734431d37d9e4fdb188b61191a6194
Author: Shawn Yang <[email protected]>
AuthorDate: Tue Dec 16 00:41:48 2025 +0800
fix benchmark (#374)
---
docs/docs/introduction/benchmark.md | 18 ++++++++---------
.../current/docs/introduction/benchmark.md | 22 ++++++++++++---------
static/img/benchmarks/cpp/throughput.png | Bin 0 -> 52502 bytes
.../version-0.14/docs/introduction/benchmark.md | 18 ++++++++---------
4 files changed, 31 insertions(+), 27 deletions(-)
diff --git a/docs/docs/introduction/benchmark.md
b/docs/docs/introduction/benchmark.md
index f3f2d6b8b..a48b16eaa 100644
--- a/docs/docs/introduction/benchmark.md
+++ b/docs/docs/introduction/benchmark.md
@@ -19,17 +19,17 @@ The following benchmarks compare Fory against popular Java
serialization framewo
### Java Serialization
-<img width="33%" alt=""
src="/img/benchmarks/serialization/bench_serialize_compatible_STRUCT_to_directBuffer_tps.png"
/>
-<img width="33%" alt=""
src="/img/benchmarks/serialization/bench_serialize_compatible_MEDIA_CONTENT_to_array_tps.png"
/>
-<img width="33%" alt=""
src="/img/benchmarks/serialization/bench_serialize_MEDIA_CONTENT_to_array_tps.png"
/>
-<img width="33%" alt=""
src="/img/benchmarks/serialization/bench_serialize_SAMPLE_to_array_tps.png" />
+<img width="48%" alt=""
src="/img/benchmarks/serialization/bench_serialize_compatible_STRUCT_to_directBuffer_tps.png"
/>
+<img width="48%" alt=""
src="/img/benchmarks/serialization/bench_serialize_compatible_MEDIA_CONTENT_to_array_tps.png"
/>
+<img width="48%" alt=""
src="/img/benchmarks/serialization/bench_serialize_MEDIA_CONTENT_to_array_tps.png"
/>
+<img width="48%" alt=""
src="/img/benchmarks/serialization/bench_serialize_SAMPLE_to_array_tps.png" />
### Java Deserialization
-<img width="33%" alt=""
src="/img/benchmarks/deserialization/bench_deserialize_compatible_STRUCT_from_directBuffer_tps.png"
/>
-<img width="33%" alt=""
src="/img/benchmarks/deserialization/bench_deserialize_compatible_MEDIA_CONTENT_from_array_tps.png"
/>
-<img width="33%" alt=""
src="/img/benchmarks/deserialization/bench_deserialize_MEDIA_CONTENT_from_array_tps.png"
/>
-<img width="33%" alt=""
src="/img/benchmarks/deserialization/bench_deserialize_SAMPLE_from_array_tps.png"
/>
+<img width="48%" alt=""
src="/img/benchmarks/deserialization/bench_deserialize_compatible_STRUCT_from_directBuffer_tps.png"
/>
+<img width="48%" alt=""
src="/img/benchmarks/deserialization/bench_deserialize_compatible_MEDIA_CONTENT_from_array_tps.png"
/>
+<img width="48%" alt=""
src="/img/benchmarks/deserialization/bench_deserialize_MEDIA_CONTENT_from_array_tps.png"
/>
+<img width="48%" alt=""
src="/img/benchmarks/deserialization/bench_deserialize_SAMPLE_from_array_tps.png"
/>
**Important**: Fory's runtime code generation requires proper warm-up for
performance measurement:
@@ -55,7 +55,7 @@ Fory C++ demonstrates competitive performance compared to
Protobuf C++ serializa
## JavaScript Benchmark
-<img width="33%" alt="" src="/img/benchmarks/javascript/complex_object.jpg" />
+<img width="50%" alt="" src="/img/benchmarks/javascript/complex_object.jpg" />
The data used for this bar graph includes a complex object that has many kinds
of field types, and the size of the JSON data is 3KB.
diff --git
a/i18n/zh-CN/docusaurus-plugin-content-docs/current/docs/introduction/benchmark.md
b/i18n/zh-CN/docusaurus-plugin-content-docs/current/docs/introduction/benchmark.md
index 0b5798efd..b9a539093 100644
---
a/i18n/zh-CN/docusaurus-plugin-content-docs/current/docs/introduction/benchmark.md
+++
b/i18n/zh-CN/docusaurus-plugin-content-docs/current/docs/introduction/benchmark.md
@@ -15,17 +15,17 @@ sidebar_position: 2
### Java 序列化
-<img width="33%" alt=""
src="/img/benchmarks/serialization/bench_serialize_compatible_STRUCT_to_directBuffer_tps.png"
/>
-<img width="33%" alt=""
src="/img/benchmarks/serialization/bench_serialize_compatible_MEDIA_CONTENT_to_array_tps.png"
/>
-<img width="33%" alt=""
src="/img/benchmarks/serialization/bench_serialize_MEDIA_CONTENT_to_array_tps.png"
/>
-<img width="33%" alt=""
src="/img/benchmarks/serialization/bench_serialize_SAMPLE_to_array_tps.png" />
+<img width="48%" alt=""
src="/img/benchmarks/serialization/bench_serialize_compatible_STRUCT_to_directBuffer_tps.png"
/>
+<img width="48%" alt=""
src="/img/benchmarks/serialization/bench_serialize_compatible_MEDIA_CONTENT_to_array_tps.png"
/>
+<img width="48%" alt=""
src="/img/benchmarks/serialization/bench_serialize_MEDIA_CONTENT_to_array_tps.png"
/>
+<img width="48%" alt=""
src="/img/benchmarks/serialization/bench_serialize_SAMPLE_to_array_tps.png" />
### Java 反序列化
-<img width="33%" alt=""
src="/img/benchmarks/deserialization/bench_deserialize_compatible_STRUCT_from_directBuffer_tps.png"
/>
-<img width="33%" alt=""
src="/img/benchmarks/deserialization/bench_deserialize_compatible_MEDIA_CONTENT_from_array_tps.png"
/>
-<img width="33%" alt=""
src="/img/benchmarks/deserialization/bench_deserialize_MEDIA_CONTENT_from_array_tps.png"
/>
-<img width="33%" alt=""
src="/img/benchmarks/deserialization/bench_deserialize_SAMPLE_from_array_tps.png"
/>
+<img width="48%" alt=""
src="/img/benchmarks/deserialization/bench_deserialize_compatible_STRUCT_from_directBuffer_tps.png"
/>
+<img width="48%" alt=""
src="/img/benchmarks/deserialization/bench_deserialize_compatible_MEDIA_CONTENT_from_array_tps.png"
/>
+<img width="48%" alt=""
src="/img/benchmarks/deserialization/bench_deserialize_MEDIA_CONTENT_from_array_tps.png"
/>
+<img width="48%" alt=""
src="/img/benchmarks/deserialization/bench_deserialize_SAMPLE_from_array_tps.png"
/>
更多关于类型前向/后向兼容性、堆外支持、零拷贝序列化的性能测试,请参见
[benchmarks](https://github.com/apache/fory/tree/main/docs/benchmarks)。
@@ -39,9 +39,13 @@ sidebar_position: 2
注意:结果取决于硬件、数据集和实现版本。有关如何自行运行性能测试的信息,请参阅 Fory Rust Benchmark
指南:https://github.com/apache/fory/blob/main/benchmarks/rust_benchmark/README.md
+## C++ 性能测试
+
+<img src="public/benchmarks/cpp/throughput.png" width="90%"/>
+
## JavaScript 性能测试
-<img width="33%" alt="" src="/img/benchmarks/javascript/complex_object.jpg" />
+<img width="50%" alt="" src="/img/benchmarks/javascript/complex_object.jpg" />
此柱状图使用的数据包含一个具有多种字段类型的复杂对象,JSON 数据大小为 3KB。
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
diff --git a/versioned_docs/version-0.14/docs/introduction/benchmark.md
b/versioned_docs/version-0.14/docs/introduction/benchmark.md
index f3f2d6b8b..a48b16eaa 100644
--- a/versioned_docs/version-0.14/docs/introduction/benchmark.md
+++ b/versioned_docs/version-0.14/docs/introduction/benchmark.md
@@ -19,17 +19,17 @@ The following benchmarks compare Fory against popular Java
serialization framewo
### Java Serialization
-<img width="33%" alt=""
src="/img/benchmarks/serialization/bench_serialize_compatible_STRUCT_to_directBuffer_tps.png"
/>
-<img width="33%" alt=""
src="/img/benchmarks/serialization/bench_serialize_compatible_MEDIA_CONTENT_to_array_tps.png"
/>
-<img width="33%" alt=""
src="/img/benchmarks/serialization/bench_serialize_MEDIA_CONTENT_to_array_tps.png"
/>
-<img width="33%" alt=""
src="/img/benchmarks/serialization/bench_serialize_SAMPLE_to_array_tps.png" />
+<img width="48%" alt=""
src="/img/benchmarks/serialization/bench_serialize_compatible_STRUCT_to_directBuffer_tps.png"
/>
+<img width="48%" alt=""
src="/img/benchmarks/serialization/bench_serialize_compatible_MEDIA_CONTENT_to_array_tps.png"
/>
+<img width="48%" alt=""
src="/img/benchmarks/serialization/bench_serialize_MEDIA_CONTENT_to_array_tps.png"
/>
+<img width="48%" alt=""
src="/img/benchmarks/serialization/bench_serialize_SAMPLE_to_array_tps.png" />
### Java Deserialization
-<img width="33%" alt=""
src="/img/benchmarks/deserialization/bench_deserialize_compatible_STRUCT_from_directBuffer_tps.png"
/>
-<img width="33%" alt=""
src="/img/benchmarks/deserialization/bench_deserialize_compatible_MEDIA_CONTENT_from_array_tps.png"
/>
-<img width="33%" alt=""
src="/img/benchmarks/deserialization/bench_deserialize_MEDIA_CONTENT_from_array_tps.png"
/>
-<img width="33%" alt=""
src="/img/benchmarks/deserialization/bench_deserialize_SAMPLE_from_array_tps.png"
/>
+<img width="48%" alt=""
src="/img/benchmarks/deserialization/bench_deserialize_compatible_STRUCT_from_directBuffer_tps.png"
/>
+<img width="48%" alt=""
src="/img/benchmarks/deserialization/bench_deserialize_compatible_MEDIA_CONTENT_from_array_tps.png"
/>
+<img width="48%" alt=""
src="/img/benchmarks/deserialization/bench_deserialize_MEDIA_CONTENT_from_array_tps.png"
/>
+<img width="48%" alt=""
src="/img/benchmarks/deserialization/bench_deserialize_SAMPLE_from_array_tps.png"
/>
**Important**: Fory's runtime code generation requires proper warm-up for
performance measurement:
@@ -55,7 +55,7 @@ Fory C++ demonstrates competitive performance compared to
Protobuf C++ serializa
## JavaScript Benchmark
-<img width="33%" alt="" src="/img/benchmarks/javascript/complex_object.jpg" />
+<img width="50%" alt="" src="/img/benchmarks/javascript/complex_object.jpg" />
The data used for this bar graph includes a complex object that has many kinds
of field types, and the size of the JSON data is 3KB.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]