Script Preparation code:
Tests:

Historical Performance Data aggregated from 15 community runs

Desktop Results:
Chrome 9 runs
JSON.parse + JSON.stringify
1/s
structuredClone
1/s

Fastest: JSON.parse + JSON.stringify (1.4x faster)

View exact numbers
  • JSON.parse + JSON.stringify: 1 ops/sec
  • structuredClone: 1 ops/sec
Other 6 runs
JSON.parse + JSON.stringify
1/s
structuredClone
1/s

Fastest: JSON.parse + JSON.stringify (1.3x faster)

View exact numbers
  • JSON.parse + JSON.stringify: 1 ops/sec
  • structuredClone: 1 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
    JSON.parse + JSON.stringify
    structuredClone

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 5 months ago)
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/142.0.0.0 YaBrowser/25.12.0.0 Safari/537.36
Yandex Browser 25 on Linux
View result in a separate tab
JSON.parse + JSON.stringify
1/s
structuredClone
1/s
View exact numbers
Test name Executions per second
JSON.parse + JSON.stringify 1 Ops/sec
structuredClone 1 Ops/sec