Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 11_1_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.79 Safari/537.36
Chrome 88
Mac OS X 11.1.0
Desktop
3 years ago
Test name Executions per second
Lodash cloneDeep 433730.8 Ops/sec
JSON parse 344157.9 Ops/sec
For loop 416681.3 Ops/sec
Recursive clone deep 818978.6 Ops/sec
Recursive reduce clone deep 224350.3 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • Lodash cloneDeep

  • JSON parse

  • For loop

  • Recursive clone deep

  • Recursive reduce clone deep