Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:139.0) Gecko/20100101 Firefox/139.0
Firefox 139
Mac OS X 10.15
Desktop
10 months ago
Test name Executions per second
structuredClone() 795630.4 Ops/sec
spread syntax 7955542.0 Ops/sec
Object.assign 28211466.0 Ops/sec
Object.fromEntries 1771490.6 Ops/sec
JSON 1242840.5 Ops/sec
Cursed Proxy 35649600.0 Ops/sec
Copy 8243931.0 Ops/sec
Script Preparation code:
Tests:
  • structuredClone()

  • spread syntax

  • Object.assign

  • Object.fromEntries

  • JSON

  • Cursed Proxy

  • Copy