Script Preparation code:
Tests:

Historical Performance Data aggregated from 130 community runs

Desktop Results:
Chrome 94 runs
JSON.parse(JSON.stringify())
430K/s
strucutredClone
293K/s

Fastest: JSON.parse(JSON.stringify()) (1.5x faster)

View exact numbers
  • JSON.parse(JSON.stringify()): 430,146 ops/sec
  • strucutredClone: 293,171 ops/sec
Firefox 30 runs
strucutredClone
341K/s
JSON.parse(JSON.stringify())
220K/s

Fastest: strucutredClone (1.6x faster)

View exact numbers
  • strucutredClone: 341,319 ops/sec
  • JSON.parse(JSON.stringify()): 220,046 ops/sec
Safari 6 runs
JSON.parse(JSON.stringify())
676K/s
strucutredClone
337K/s

Fastest: JSON.parse(JSON.stringify()) (2.0x faster)

View exact numbers
  • JSON.parse(JSON.stringify()): 676,022 ops/sec
  • strucutredClone: 336,819 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
    strucutredClone
    JSON.parse(JSON.stringify())

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 8 hours ago)
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/146.0.0.0 Safari/537.36 Edg/146.0.0.0
Chrome 146 on Windows
View result in a separate tab
JSON.parse(JSON.stringify())
352K/s
strucutredClone
194K/s
View exact numbers
Test name Executions per second
JSON.parse(JSON.stringify()) 352,094 Ops/sec
strucutredClone 193,615 Ops/sec