HTML Preparation code:
Script Preparation code:
Tests:

Historical Performance Data aggregated from 8 community runs

Desktop Results:
Chrome 8 runs
_.cloneDeep
1.1M/s
JSON.stringify
947K/s
structuredClone
376K/s

Fastest: _.cloneDeep (2.9x faster)

View exact numbers
  • _.cloneDeep: 1,100,262 ops/sec
  • JSON.stringify: 947,249 ops/sec
  • structuredClone: 376,493 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.stringify
    structuredClone
    _.cloneDeep

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 2 years ago)
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/124.0.0.0 Safari/537.36
Chrome 124 on Linux
View result in a separate tab
_.cloneDeep
861K/s
JSON.stringify
555K/s
structuredClone
285K/s
View exact numbers
Test name Executions per second
_.cloneDeep 861,007 Ops/sec
JSON.stringify 555,022 Ops/sec
structuredClone 285,111 Ops/sec