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 3fea86a16a2448cab8727bb61920d85771b2d22b
Author: chaokunyang <[email protected]>
AuthorDate: Tue Mar 10 08:07:37 2026 +0000

    🔄 synced local 'docs/benchmarks/' with remote 'docs/benchmarks/'
---
 docs/benchmarks/swift/README.md      |  46 +++++++++++++++++++++++++++++++++++
 docs/benchmarks/swift/throughput.png | Bin 0 -> 84759 bytes
 2 files changed, 46 insertions(+)

diff --git a/docs/benchmarks/swift/README.md b/docs/benchmarks/swift/README.md
new file mode 100644
index 0000000000..58b6c032af
--- /dev/null
+++ b/docs/benchmarks/swift/README.md
@@ -0,0 +1,46 @@
+# Fory Swift Benchmark
+
+This benchmark compares serialization and deserialization throughput for 
Apache Fory, Protocol Buffers, and MessagePack in Swift.
+
+## Hardware and Runtime Info
+
+| Key                   | Value                         |
+| --------------------- | ----------------------------- |
+| Timestamp             | 2026-03-10T06:25:16Z          |
+| OS                    | Version 15.7.2 (Build 24G325) |
+| Host                  | macbook-pro.local             |
+| CPU Cores (Logical)   | 12                            |
+| Memory (GB)           | 48.00                         |
+| Duration per case (s) | 3                             |
+
+## Throughput Results
+
+<p align="center">
+<img src="throughput.png" width="95%" />
+</p>
+
+| Datatype         | Operation   |   Fory TPS | Protobuf TPS | Msgpack TPS | 
Fastest      |
+| ---------------- | ----------- | ---------: | -----------: | ----------: | 
------------ |
+| Struct           | Serialize   |  9,727,950 |    6,572,406 |     141,248 | 
fory (1.48x) |
+| Struct           | Deserialize | 11,889,570 |    8,584,510 |      99,792 | 
fory (1.39x) |
+| Sample           | Serialize   |  3,496,305 |    1,281,983 |      17,188 | 
fory (2.73x) |
+| Sample           | Deserialize |  1,045,018 |      765,706 |      12,767 | 
fory (1.36x) |
+| MediaContent     | Serialize   |  1,425,354 |      678,542 |      29,048 | 
fory (2.10x) |
+| MediaContent     | Deserialize |    614,447 |      478,298 |      12,711 | 
fory (1.28x) |
+| StructList       | Serialize   |  3,307,962 |    1,028,210 |      24,781 | 
fory (3.22x) |
+| StructList       | Deserialize |  2,788,200 |      708,596 |       8,160 | 
fory (3.93x) |
+| SampleList       | Serialize   |    715,734 |      205,380 |       3,361 | 
fory (3.48x) |
+| SampleList       | Deserialize |    199,317 |      133,425 |       1,498 | 
fory (1.49x) |
+| MediaContentList | Serialize   |    364,097 |      103,721 |       5,538 | 
fory (3.51x) |
+| MediaContentList | Deserialize |    103,421 |       86,331 |       1,529 | 
fory (1.20x) |
+
+## Serialized Size (bytes)
+
+| Datatype         | Fory | Protobuf | Msgpack |
+| ---------------- | ---: | -------: | ------: |
+| MediaContent     |  365 |      301 |     524 |
+| MediaContentList | 1535 |     1520 |    2639 |
+| Sample           |  446 |      375 |     737 |
+| SampleList       | 1980 |     1890 |    3698 |
+| Struct           |   58 |       61 |      65 |
+| StructList       |  184 |      315 |     338 |
diff --git a/docs/benchmarks/swift/throughput.png 
b/docs/benchmarks/swift/throughput.png
new file mode 100644
index 0000000000..291dc81451
Binary files /dev/null and b/docs/benchmarks/swift/throughput.png differ


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

Reply via email to