Run details:
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/111.0
Firefox 111
Ubuntu
Desktop
one year ago
Test name Executions per second
Lodash cloneDeep 338217.4 Ops/sec
JSON parse 512373.8 Ops/sec
For loop 956837.1 Ops/sec
Recursive clone deep 3788096.5 Ops/sec
Recursive reduce clone deep 898473.6 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • Lodash cloneDeep

  • JSON parse

  • For loop

  • Recursive clone deep

  • Recursive reduce clone deep