Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Firefox/102.0
Firefox 102
Windows
Desktop
one year ago
Test name Executions per second
lodash cloneDeep 720671.3 Ops/sec
JSON.parse(JSON.stringify()) 347018.9 Ops/sec
recursiveDeepCopy 2290221.2 Ops/sec
fastest-json-copy npm package 2948546.5 Ops/sec
jsondiffpatch.clone() 2963168.5 Ops/sec
rfdc 2947581.2 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • lodash cloneDeep

  • JSON.parse(JSON.stringify())

  • recursiveDeepCopy

  • fastest-json-copy npm package

  • jsondiffpatch.clone()

  • rfdc