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 9487d46a94 🔄 synced local 'docs/benchmarks/' with remote 
'docs/benchmarks/'
9487d46a94 is described below

commit 9487d46a94bb2b78bf65a9b4bfa98461c554e331
Author: chaokunyang <[email protected]>
AuthorDate: Tue Mar 3 10:34:31 2026 +0000

    🔄 synced local 'docs/benchmarks/' with remote 'docs/benchmarks/'
---
 docs/benchmarks/python/README.md            | 127 ++++++++++++++++++++++++++++
 docs/benchmarks/python/mediacontent.png     | Bin 0 -> 49948 bytes
 docs/benchmarks/python/mediacontentlist.png | Bin 0 -> 57263 bytes
 docs/benchmarks/python/sample.png           | Bin 0 -> 53682 bytes
 docs/benchmarks/python/samplelist.png       | Bin 0 -> 60171 bytes
 docs/benchmarks/python/struct.png           | Bin 0 -> 54218 bytes
 docs/benchmarks/python/structlist.png       | Bin 0 -> 52290 bytes
 docs/benchmarks/python/throughput.png       | Bin 0 -> 79016 bytes
 8 files changed, 127 insertions(+)

diff --git a/docs/benchmarks/python/README.md b/docs/benchmarks/python/README.md
new file mode 100644
index 0000000000..2908fb876f
--- /dev/null
+++ b/docs/benchmarks/python/README.md
@@ -0,0 +1,127 @@
+# Python Benchmark Performance Report
+
+_Generated on 2026-03-03 13:42:38_
+
+## How to Generate This Report
+
+```bash
+cd benchmarks/python
+./run.sh
+```
+
+## Hardware & OS Info
+
+| Key                   | Value                        |
+| --------------------- | ---------------------------- |
+| OS                    | Darwin 24.6.0                |
+| Machine               | arm64                        |
+| Processor             | arm                          |
+| Python                | 3.10.8                       |
+| CPU Cores (Physical)  | 12                           |
+| CPU Cores (Logical)   | 12                           |
+| Total RAM (GB)        | 48.0                         |
+| Python Implementation | CPython                      |
+| Benchmark Platform    | macOS-15.7.2-arm64-arm-64bit |
+
+## Benchmark Configuration
+
+| Key        | Value |
+| ---------- | ----- |
+| warmup     | 3     |
+| iterations | 15    |
+| repeat     | 5     |
+| number     | 1000  |
+| list_size  | 5     |
+
+## Benchmark Plots
+
+All plots show throughput (ops/sec); higher is better.
+
+### 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) | pickle (ns) | protobuf (ns) | 
Fastest |
+| ---------------- | ----------- | --------- | ----------- | ------------- | 
------- |
+| Struct           | Serialize   | 417.9     | 868.9       | 548.9         | 
fory    |
+| Struct           | Deserialize | 516.1     | 910.6       | 742.4         | 
fory    |
+| Sample           | Serialize   | 828.1     | 1663.5      | 2383.7        | 
fory    |
+| Sample           | Deserialize | 1282.4    | 2296.3      | 3992.7        | 
fory    |
+| MediaContent     | Serialize   | 1139.9    | 2859.7      | 2867.1        | 
fory    |
+| MediaContent     | Deserialize | 1719.5    | 2854.3      | 3236.1        | 
fory    |
+| StructList       | Serialize   | 1009.1    | 2630.6      | 3281.6        | 
fory    |
+| StructList       | Deserialize | 1387.2    | 2651.9      | 3547.9        | 
fory    |
+| SampleList       | Serialize   | 2828.3    | 5541.0      | 15256.6       | 
fory    |
+| SampleList       | Deserialize | 5043.4    | 8144.7      | 18912.5       | 
fory    |
+| MediaContentList | Serialize   | 3417.9    | 9341.9      | 15853.2       | 
fory    |
+| MediaContentList | Deserialize | 6138.7    | 8435.3      | 16442.6       | 
fory    |
+
+### Throughput Results (ops/sec)
+
+| Datatype         | Operation   | fory TPS  | pickle TPS | protobuf TPS | 
Fastest |
+| ---------------- | ----------- | --------- | ---------- | ------------ | 
------- |
+| Struct           | Serialize   | 2,393,086 | 1,150,946  | 1,821,982    | 
fory    |
+| Struct           | Deserialize | 1,937,707 | 1,098,170  | 1,346,915    | 
fory    |
+| Sample           | Serialize   | 1,207,542 | 601,144    | 419,511      | 
fory    |
+| Sample           | Deserialize | 779,789   | 435,489    | 250,460      | 
fory    |
+| MediaContent     | Serialize   | 877,300   | 349,688    | 348,780      | 
fory    |
+| MediaContent     | Deserialize | 581,563   | 350,354    | 309,018      | 
fory    |
+| StructList       | Serialize   | 991,017   | 380,145    | 304,732      | 
fory    |
+| StructList       | Deserialize | 720,901   | 377,081    | 281,855      | 
fory    |
+| SampleList       | Serialize   | 353,574   | 180,473    | 65,545       | 
fory    |
+| SampleList       | Deserialize | 198,280   | 122,780    | 52,875       | 
fory    |
+| MediaContentList | Serialize   | 292,578   | 107,045    | 63,079       | 
fory    |
+| MediaContentList | Deserialize | 162,902   | 118,550    | 60,818       | 
fory    |
+
+### Serialized Data Sizes (bytes)
+
+| Datatype         | fory | pickle | protobuf |
+| ---------------- | ---- | ------ | -------- |
+| Struct           | 72   | 126    | 61       |
+| Sample           | 517  | 793    | 375      |
+| MediaContent     | 470  | 586    | 301      |
+| StructList       | 205  | 420    | 315      |
+| SampleList       | 1810 | 2539   | 1890     |
+| MediaContentList | 1756 | 1377   | 1520     |
diff --git a/docs/benchmarks/python/mediacontent.png 
b/docs/benchmarks/python/mediacontent.png
new file mode 100644
index 0000000000..05b28cd20f
Binary files /dev/null and b/docs/benchmarks/python/mediacontent.png differ
diff --git a/docs/benchmarks/python/mediacontentlist.png 
b/docs/benchmarks/python/mediacontentlist.png
new file mode 100644
index 0000000000..6ca7b1814d
Binary files /dev/null and b/docs/benchmarks/python/mediacontentlist.png differ
diff --git a/docs/benchmarks/python/sample.png 
b/docs/benchmarks/python/sample.png
new file mode 100644
index 0000000000..eb318e1ab2
Binary files /dev/null and b/docs/benchmarks/python/sample.png differ
diff --git a/docs/benchmarks/python/samplelist.png 
b/docs/benchmarks/python/samplelist.png
new file mode 100644
index 0000000000..94896bcab0
Binary files /dev/null and b/docs/benchmarks/python/samplelist.png differ
diff --git a/docs/benchmarks/python/struct.png 
b/docs/benchmarks/python/struct.png
new file mode 100644
index 0000000000..c8fe09cfe1
Binary files /dev/null and b/docs/benchmarks/python/struct.png differ
diff --git a/docs/benchmarks/python/structlist.png 
b/docs/benchmarks/python/structlist.png
new file mode 100644
index 0000000000..e421b1738d
Binary files /dev/null and b/docs/benchmarks/python/structlist.png differ
diff --git a/docs/benchmarks/python/throughput.png 
b/docs/benchmarks/python/throughput.png
new file mode 100644
index 0000000000..c750a9ffb5
Binary files /dev/null and b/docs/benchmarks/python/throughput.png differ


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

Reply via email to