Lodash cloneDeep vs Json clone (deeply nested)

2 years ago
User agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/98.0.4758.121 Safari/537.36
Test name Executions per second
Lodash cloneDeep 166234.5 Ops/sec
Json clone 211285.7 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • Lodash cloneDeep

  • Json clone

Open this result on MeasureThat.net