Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36
Chrome 120
Mac OS X 10.15.7
Desktop
10 months ago
Test name Executions per second
structuredClone() 567439.1 Ops/sec
spread syntax 16755760.0 Ops/sec
Object.assign 3659795.5 Ops/sec
Object.fromEntries 661771.2 Ops/sec
JSON 990473.2 Ops/sec
Cursed Proxy 15418801.0 Ops/sec
Script Preparation code:
Tests:
  • structuredClone()

  • spread syntax

  • Object.assign

  • Object.fromEntries

  • JSON

  • Cursed Proxy