HTML Preparation code:
Script Preparation code:
Tests:

Historical Performance Data aggregated from 6 community runs

Desktop Results:
Chrome 6 runs
JSON.stringify(JSON.parse())
477K/s
Lodash cloneDeep
444K/s
Native structuredClone
283K/s

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

View exact numbers
  • JSON.stringify(JSON.parse()): 476,851 ops/sec
  • Lodash cloneDeep: 444,042 ops/sec
  • Native structuredClone: 282,687 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
    Lodash cloneDeep
    Native structuredClone
    JSON.stringify(JSON.parse())

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 4 months ago)
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/145.0.0.0 Safari/537.36
Chrome 145 on Mac OS X 10.15.7
View result in a separate tab
JSON.stringify(JSON.parse())
804K/s
Lodash cloneDeep
678K/s
Native structuredClone
439K/s
View exact numbers
Test name Executions per second
JSON.stringify(JSON.parse()) 804,274 Ops/sec
Lodash cloneDeep 678,408 Ops/sec
Native structuredClone 438,876 Ops/sec