Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/111.0.0.0 Safari/537.36
Chrome 111
Mac OS X 10.15.7
Desktop
one year ago
Test name Executions per second
myCopy = _.cloneDeep(sampleObject); 95850.6 Ops/sec
JSON Clone 141876.0 Ops/sec
RFDC 深度拷贝 437329.4 Ops/sec
递归 273323.3 Ops/sec
klona test 562358.7 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • myCopy = _.cloneDeep(sampleObject);

  • JSON Clone

  • RFDC 深度拷贝

  • 递归

  • klona test