Skip to main content
Version: 0.17

JavaScript Benchmark Performance Report

Generated on 2026-04-14 17:11:43

How to Generate This Report​

cd benchmarks/javascript
./run.sh

Hardware & OS Info​

KeyValue
OSDarwin 24.6.0
Machinearm64
Processorarm
CPU Cores (Physical)12
CPU Cores (Logical)12
Total RAM (GB)48.0
Benchmark Date2026-04-14T09:09:51.959Z
CPU Cores (from benchmark)12
Node.jsv22.20.0
V812.4.254.21-node.33

Benchmark Plots​

All class-level plots below show throughput (ops/sec).

Throughput​

Throughput

MediaContent​

MediaContent

MediaContentList​

MediaContentList

Sample​

Sample

SampleList​

SampleList

Struct​

Struct

StructList​

StructList

Benchmark Results​

Timing Results (nanoseconds)​

DatatypeOperationfory (ns)protobuf (ns)json (ns)Fastest
StructSerialize118.3525.3327.0fory
StructDeserialize103.0121.5259.0fory
SampleSerialize667.42366.21342.7fory
SampleDeserialize521.31221.01312.3fory
MediaContentSerialize773.31370.8769.3json
MediaContentDeserialize610.5827.01085.6fory
StructListSerialize254.62017.61121.3fory
StructListDeserialize306.3653.71014.1fory
SampleListSerialize2812.310782.76130.4fory
SampleListDeserialize2353.46125.56153.1fory
MediaContentListSerialize3495.96712.43540.5fory
MediaContentListDeserialize2653.74087.95258.9fory

Throughput Results (ops/sec)​

DatatypeOperationfory TPSprotobuf TPSjson TPSFastest
StructSerialize8,453,9501,903,7063,058,232fory
StructDeserialize9,705,2878,233,6643,860,538fory
SampleSerialize1,498,391422,620744,790fory
SampleDeserialize1,918,162819,010762,048fory
MediaContentSerialize1,293,157729,4971,299,908json
MediaContentDeserialize1,638,0861,209,140921,191fory
StructListSerialize3,928,325495,648891,810fory
StructListDeserialize3,264,8271,529,744986,144fory
SampleListSerialize355,58192,741163,120fory
SampleListDeserialize424,916163,253162,520fory
MediaContentListSerialize286,053148,977282,445fory
MediaContentListDeserialize376,826244,622190,155fory

Serialized Data Sizes (bytes)​

Datatypeforyprotobufjson
Struct5861103
Sample446377724
MediaContent391307596
StructList184315537
SampleList198019003642
MediaContentList166515503009