Run details:
Mozilla/5.0 (iPhone; CPU iPhone OS 17_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) CriOS/119.0.6045.169 Mobile/15E148 Safari/604.1
Chrome Mobile iOS 119
iOS 17.1
Mobile
one year ago
Test name Executions per second
lodash cloneDeep 2704776.8 Ops/sec
JSON.parse(JSON.stringify()) 1651382.2 Ops/sec
recursiveDeepCopy 2463591.5 Ops/sec
fastest-json-copy npm package 1754303.4 Ops/sec
jsondiffpatch.clone() 5817541.0 Ops/sec
rfdc 6883371.0 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • lodash cloneDeep

  • JSON.parse(JSON.stringify())

  • recursiveDeepCopy

  • fastest-json-copy npm package

  • jsondiffpatch.clone()

  • rfdc