Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/121.0.0.0 Safari/537.36
Chrome 121
Mac OS X 10.15.7
Desktop
9 months ago
Test name Executions per second
structuredClone() 580314.9 Ops/sec
spread syntax 18373940.0 Ops/sec
Object.assign 3818314.5 Ops/sec
Object.fromEntries 715704.4 Ops/sec
JSON 1066111.9 Ops/sec
Cursed Proxy 15105513.0 Ops/sec
Script Preparation code:
Tests:
  • structuredClone()

  • spread syntax

  • Object.assign

  • Object.fromEntries

  • JSON

  • Cursed Proxy