Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/121.0.0.0 Safari/537.36
Chrome 121
Windows
Desktop
9 months ago
Test name Executions per second
structuredClone() 328417.9 Ops/sec
spread syntax 15968508.0 Ops/sec
Object.assign 3162918.8 Ops/sec
Object.fromEntries 493239.8 Ops/sec
JSON 645499.7 Ops/sec
Cursed Proxy 11108596.0 Ops/sec
Script Preparation code:
Tests:
  • structuredClone()

  • spread syntax

  • Object.assign

  • Object.fromEntries

  • JSON

  • Cursed Proxy