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 895176.3 Ops/sec
JSON.parse(JSON.stringify()) 588668.0 Ops/sec
recursiveDeepCopy 988231.9 Ops/sec
fastest-json-copy npm package 685750.9 Ops/sec
jsondiffpatch.clone() 2640209.5 Ops/sec
rfdc 2821993.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