Run details:
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:84.0) Gecko/20100101 Firefox/84.0
Firefox 84
Ubuntu
Desktop
3 years ago
Test name Executions per second
Lodash cloneDeep 217222.8 Ops/sec
JSON parse 393847.0 Ops/sec
For loop 235720.1 Ops/sec
Recursive clone deep 2361722.8 Ops/sec
Recursive reduce clone deep 571919.2 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • Lodash cloneDeep

  • JSON parse

  • For loop

  • Recursive clone deep

  • Recursive reduce clone deep