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); 97008.0 Ops/sec
JSON Clone 142725.6 Ops/sec
RFDC 深度拷贝 437706.9 Ops/sec
递归 270959.4 Ops/sec
klona test 563954.2 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • myCopy = _.cloneDeep(sampleObject);

  • JSON Clone

  • RFDC 深度拷贝

  • 递归

  • klona test