Script Preparation code:
Tests:

Historical Performance Data aggregated from 143 community runs

Desktop Results:
Chrome 105 runs
JSON.parse(JSON.stringify())
418K/s
strucutredClone
287K/s

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

View exact numbers
  • ✓ JSON.parse(JSON.stringify()): 418,168 ops/sec
  • • strucutredClone: 287,309 ops/sec
Firefox 32 runs
strucutredClone
333K/s
JSON.parse(JSON.stringify())
213K/s

Fastest: strucutredClone (1.6x faster)

View exact numbers
  • ✓ strucutredClone: 333,059 ops/sec
  • • JSON.parse(JSON.stringify()): 213,272 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 days ago)
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/155.0.0.0 Safari/537.36
Chrome 155 on Windows
View result in a separate tab
JSON.parse(JSON.stringify())
214K/s
strucutredClone
106K/s
View exact numbers
Test name Executions per second
✓ JSON.parse(JSON.stringify()) 214,446 Ops/sec
strucutredClone 105,766 Ops/sec