HTML Preparation code:
Script Preparation code:
Tests:

Historical Performance Data aggregated from 6 community runs

Desktop Results:
Firefox 6 runs
recursiveDeepCopy
97/s
fastest-json-copy npm package
84/s
rfdc
62/s
structuredClone
39/s
JSON.parse(JSON.stringify())
16/s
lodash cloneDeep
13/s

Fastest: recursiveDeepCopy (7.3x faster)

View exact numbers
  • recursiveDeepCopy: 97 ops/sec
  • fastest-json-copy npm package: 84 ops/sec
  • rfdc: 62 ops/sec
  • structuredClone: 39 ops/sec
  • JSON.parse(JSON.stringify()): 16 ops/sec
  • lodash cloneDeep: 13 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
    JSON.parse(JSON.stringify())
    recursiveDeepCopy
    fastest-json-copy npm package
    rfdc
    structuredClone

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: one year ago)
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:134.0) Gecko/20100101 Firefox/134.0
Firefox 134 on Mac OS X 10.15
View result in a separate tab
recursiveDeepCopy
91/s
fastest-json-copy npm package
67/s
rfdc
64/s
structuredClone
42/s
JSON.parse(JSON.stringify())
17/s
lodash cloneDeep
14/s
View exact numbers
Test name Executions per second
recursiveDeepCopy 91 Ops/sec
fastest-json-copy npm package 67 Ops/sec
rfdc 64 Ops/sec
structuredClone 42 Ops/sec
JSON.parse(JSON.stringify()) 17 Ops/sec
lodash cloneDeep 14 Ops/sec