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

  • JSON Clone

  • RFDC 深度拷贝

  • 递归

  • klona test