Skip to main content
Version: dev

Fory Dart Benchmark

This benchmark compares serialization and deserialization throughput for Apache Fory, Protocol Buffers, and JSON in Dart.

Throughput Plot

Throughput

Hardware and Runtime Info

KeyValue
Timestamp2026-05-08T08:23:10.201764Z
OSVersion 15.7.2 (Build 24G325)
HostMacBook-Pro.local
CPU Cores (Logical)12
Memory (GB)48.00
Dart3.10.7 (stable) (Tue Dec 23 00:01:57 2025 -0800) on "macos_arm64"
Samples per case5
Warmup per case (s)1.0
Duration per case (s)1.5

Throughput Results

DatatypeOperationFory TPSProtobuf TPSJSON TPSFastest
NumericStructSerialize9,007,8091,582,003774,574fory (5.69x)
NumericStructDeserialize9,039,4033,343,4591,391,036fory (2.70x)
SampleSerialize2,434,800538,385133,800fory (4.52x)
SampleDeserialize2,362,665909,410239,924fory (2.60x)
MediaContentSerialize1,167,225423,564223,387fory (2.76x)
MediaContentDeserialize1,987,141770,107254,156fory (2.58x)
NumericStructListSerialize2,551,102283,827139,615fory (8.99x)
NumericStructListDeserialize3,028,068530,360265,058fory (5.71x)
SampleListSerialize568,93747,42625,386fory (12.00x)
SampleListDeserialize542,871108,34948,058fory (5.01x)
MediaContentListSerialize226,50781,82841,780fory (2.77x)
MediaContentListDeserialize458,667139,39550,183fory (3.29x)

Serialized Size (bytes)

DatatypeForyProtobufJSON
NumericStruct7893159
Sample445377791
MediaContent362307619
NumericStructList255475816
SampleList197819003976
MediaContentList153115503122