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); 96413.0 Ops/sec
JSON Clone 143078.1 Ops/sec
RFDC 深度拷贝 442524.9 Ops/sec
递归 273722.6 Ops/sec
klona test 564371.7 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • myCopy = _.cloneDeep(sampleObject);

  • JSON Clone

  • RFDC 深度拷贝

  • 递归

  • klona test