Run details:
Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 Mobile Safari/537.36
Chrome Mobile 119
Android
Mobile
one year ago
Test name Executions per second
lodash cloneDeep 897954.5 Ops/sec
JSON.parse(JSON.stringify()) 595932.0 Ops/sec
recursiveDeepCopy 1012193.5 Ops/sec
fastest-json-copy npm package 703399.0 Ops/sec
jsondiffpatch.clone() 2676894.0 Ops/sec
rfdc 2845701.8 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • lodash cloneDeep

  • JSON.parse(JSON.stringify())

  • recursiveDeepCopy

  • fastest-json-copy npm package

  • jsondiffpatch.clone()

  • rfdc