Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/118.0.0.0 Safari/537.36
Chrome 118
Windows
Desktop
one year ago
Test name Executions per second
Object.assign(origArr) 7381064.5 Ops/sec
structuredClone(origArr) 9422.9 Ops/sec
cloneDeep(origArr) 7732.2 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • Object.assign(origArr)

  • structuredClone(origArr)

  • cloneDeep(origArr)


;