Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36
Chrome 131
Windows
Desktop
2 days ago
Test name Executions per second
structuredClone() 247095.0 Ops/sec
spread syntax 25363612.0 Ops/sec
Object.assign 3311473.2 Ops/sec
Object.fromEntries 621713.4 Ops/sec
JSON 622416.6 Ops/sec
Cursed Proxy 26506276.0 Ops/sec
Script Preparation code:
Tests:
  • structuredClone()

  • spread syntax

  • Object.assign

  • Object.fromEntries

  • JSON

  • Cursed Proxy