Skip to main content
Version: 0.16

Python Benchmark Performance Report

Generated on 2026-03-03 13:42:38

How to Generate This Report​

cd benchmarks/python
./run.sh

Hardware & OS Info​

KeyValue
OSDarwin 24.6.0
Machinearm64
Processorarm
Python3.10.8
CPU Cores (Physical)12
CPU Cores (Logical)12
Total RAM (GB)48.0
Python ImplementationCPython
Benchmark PlatformmacOS-15.7.2-arm64-arm-64bit

Benchmark Configuration​

KeyValue
warmup3
iterations15
repeat5
number1000
list_size5

Benchmark Plots​

All plots show throughput (ops/sec); higher is better.

Throughput​

Mediacontent​

Mediacontentlist​

Sample​

Samplelist​

Struct​

Structlist​

Benchmark Results​

Timing Results (nanoseconds)​

DatatypeOperationfory (ns)pickle (ns)protobuf (ns)Fastest
StructSerialize417.9868.9548.9fory
StructDeserialize516.1910.6742.4fory
SampleSerialize828.11663.52383.7fory
SampleDeserialize1282.42296.33992.7fory
MediaContentSerialize1139.92859.72867.1fory
MediaContentDeserialize1719.52854.33236.1fory
StructListSerialize1009.12630.63281.6fory
StructListDeserialize1387.22651.93547.9fory
SampleListSerialize2828.35541.015256.6fory
SampleListDeserialize5043.48144.718912.5fory
MediaContentListSerialize3417.99341.915853.2fory
MediaContentListDeserialize6138.78435.316442.6fory

Throughput Results (ops/sec)​

DatatypeOperationfory TPSpickle TPSprotobuf TPSFastest
StructSerialize2,393,0861,150,9461,821,982fory
StructDeserialize1,937,7071,098,1701,346,915fory
SampleSerialize1,207,542601,144419,511fory
SampleDeserialize779,789435,489250,460fory
MediaContentSerialize877,300349,688348,780fory
MediaContentDeserialize581,563350,354309,018fory
StructListSerialize991,017380,145304,732fory
StructListDeserialize720,901377,081281,855fory
SampleListSerialize353,574180,47365,545fory
SampleListDeserialize198,280122,78052,875fory
MediaContentListSerialize292,578107,04563,079fory
MediaContentListDeserialize162,902118,55060,818fory

Serialized Data Sizes (bytes)​

Datatypeforypickleprotobuf
Struct7212661
Sample517793375
MediaContent470586301
StructList205420315
SampleList181025391890
MediaContentList175613771520