Script Preparation code:
Tests:

Historical Performance Data aggregated from 6 community runs

Desktop Results:
Chrome 6 runs
JSON.Parse
6.1M/s
JSON.Stringify
5.8M/s
Decode
3.4M/s
Encode
918K/s
EncodeInto
0/s
View exact numbers
  • JSON.Parse: 6,068,602 ops/sec
  • JSON.Stringify: 5,792,247 ops/sec
  • Decode: 3,420,279 ops/sec
  • Encode: 917,892 ops/sec
  • EncodeInto: 0 ops/sec

Results show median performance across all community submissions. Run this benchmark yourself to verify on your device.

Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    Encode
    EncodeInto
    JSON.Stringify
    Decode
    JSON.Parse

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 10 months ago)
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/141.0.0.0 Safari/537.36
Chrome 141 on Mac OS X 10.15.7
View result in a separate tab
JSON.Stringify
11.8M/s
JSON.Parse
11.7M/s
Decode
11.7M/s
Encode
1.7M/s
EncodeInto
0/s
View exact numbers
Test name Executions per second
JSON.Stringify 11,786,870 Ops/sec
JSON.Parse 11,729,858 Ops/sec
Decode 11,705,654 Ops/sec
Encode 1,673,598 Ops/sec
EncodeInto 0 Ops/sec