Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:128.0) Gecko/20100101 Firefox/128.0
Firefox 128
Windows
Desktop
3 months ago
Test name Executions per second
structuredClone() 368067.8 Ops/sec
spread syntax 2990616.0 Ops/sec
Object.assign 10810658.0 Ops/sec
Object.fromEntries 813456.0 Ops/sec
JSON 650027.7 Ops/sec
Cursed Proxy 2518487.5 Ops/sec
Script Preparation code:
Tests:
  • structuredClone()

  • spread syntax

  • Object.assign

  • Object.fromEntries

  • JSON

  • Cursed Proxy