Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36
Chrome 109
Windows
Desktop
one year ago
Test name Executions per second
cloneDeep (small object) 156655.9 Ops/sec
cloneDeep (large object) 2909.6 Ops/sec
structuredClone (small object) 90916.8 Ops/sec
structuredClone (large object) 4016.6 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • cloneDeep (small object)

  • cloneDeep (large object)

  • structuredClone (small object)

  • structuredClone (large object)