Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/121.0.0.0 Safari/537.36 OPR/107.0.0.0
Opera 107
Mac OS X 10.15.7
Desktop
8 months ago
Test name Executions per second
lodash cloneDeep 1594954.1 Ops/sec
JSON.parse(JSON.stringify()) 1168341.5 Ops/sec
recursiveDeepCopy 1984309.4 Ops/sec
fastest-json-copy npm package 1366852.9 Ops/sec
jsondiffpatch.clone() 4551224.0 Ops/sec
rfdc 4699228.5 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • lodash cloneDeep

  • JSON.parse(JSON.stringify())

  • recursiveDeepCopy

  • fastest-json-copy npm package

  • jsondiffpatch.clone()

  • rfdc


;