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.git


The following commit(s) were added to refs/heads/main by this push:
     new 7e9a5d7a8 docs: update the C++ benchmark case (#2988)
7e9a5d7a8 is described below

commit 7e9a5d7a816c4c5a98c90ac43d06b02c57c43020
Author: LiangliangSui <[email protected]>
AuthorDate: Thu Dec 4 16:29:28 2025 +0800

    docs: update the C++ benchmark case (#2988)
    
    ## Why?
    
    
    
    ## What does this PR do?
    
    
    update the C++ benchmark case doc
    
    ## Related issues
    
    
    
    ## Does this PR introduce any user-facing change?
    
    
    
    - [ ] Does this PR introduce any public API change?
    - [ ] Does this PR introduce any binary protocol compatibility change?
    
    ## Benchmark
    
    ---------
    
    Signed-off-by: Liangliang Sui <[email protected]>
---
 benchmarks/cpp_benchmark/README.md | 29 +++++++++++++++++++----------
 1 file changed, 19 insertions(+), 10 deletions(-)

diff --git a/benchmarks/cpp_benchmark/README.md 
b/benchmarks/cpp_benchmark/README.md
index 181821d3c..0d2fa724e 100644
--- a/benchmarks/cpp_benchmark/README.md
+++ b/benchmarks/cpp_benchmark/README.md
@@ -59,16 +59,21 @@ cmake --build . -j$(nproc)
 
 ## Benchmark Cases
 
-| Benchmark                        | Description                               
                          |
-| -------------------------------- | 
------------------------------------------------------------------- |
-| `BM_Fory_Struct_Serialize`       | Serialize a simple struct with 8 int32 
fields using Fory            |
-| `BM_Protobuf_Struct_Serialize`   | Serialize the same struct using Protobuf  
                          |
-| `BM_Fory_Struct_Deserialize`     | Deserialize a simple struct using Fory    
                          |
-| `BM_Protobuf_Struct_Deserialize` | Deserialize the same struct using 
Protobuf                          |
-| `BM_Fory_Sample_Serialize`       | Serialize a complex object with various 
types and arrays using Fory |
-| `BM_Protobuf_Sample_Serialize`   | Serialize the same object using Protobuf  
                          |
-| `BM_Fory_Sample_Deserialize`     | Deserialize a complex object using Fory   
                          |
-| `BM_Protobuf_Sample_Deserialize` | Deserialize the same object using 
Protobuf                          |
+| Benchmark                              | Description                         
                                |
+| -------------------------------------- | 
------------------------------------------------------------------- |
+| `BM_Fory_Struct_Serialize`             | Serialize a simple struct with 8 
int32 fields using Fory            |
+| `BM_Protobuf_Struct_Serialize`         | Serialize the same struct using 
Protobuf                            |
+| `BM_Fory_Struct_Deserialize`           | Deserialize a simple struct using 
Fory                              |
+| `BM_Protobuf_Struct_Deserialize`       | Deserialize the same struct using 
Protobuf                          |
+| `BM_Fory_Sample_Serialize`             | Serialize a complex object with 
various types and arrays using Fory |
+| `BM_Protobuf_Sample_Serialize`         | Serialize the same object using 
Protobuf                            |
+| `BM_Fory_Sample_Deserialize`           | Deserialize a complex object using 
Fory                             |
+| `BM_Protobuf_Sample_Deserialize`       | Deserialize the same object using 
Protobuf                          |
+| `BM_Fory_MediaContent_Serialize`       | Serialize a complex object with 
Media and Images using Fory         |
+| `BM_Protobuf_MediaContent_Serialize`   | Serialize the same object using 
Protobuf                            |
+| `BM_Fory_MediaContent_Deserialize`     | Deserialize a complex object with 
Media and Images using Fory       |
+| `BM_Protobuf_MediaContent_Deserialize` | Deserialize the same object using 
Protobuf                          |
+| `BM_PrintSerializedSizes`              | Just compares the serialization 
sizes of Fory and Protobuf          |
 
 ## Data Structures
 
@@ -84,6 +89,10 @@ A complex structure containing:
 - Multiple arrays (int, long, float, double, short, char, bool)
 - String field
 
+### MediaContent
+
+Contains one Media and multiple Images.
+
 ## Proto Definition
 
 The benchmark uses `benchmarks/proto/bench.proto` which is shared with the 
Java benchmark for consistency.


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to