Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/112.0.0.0 Safari/537.36
Chrome 112
Mac OS X 10.15.7
Desktop
one year ago
Test name Executions per second
structuredClone() 607337.3 Ops/sec
spread syntax 19250704.0 Ops/sec
Object.assign 3883813.0 Ops/sec
Object.fromEntries 710929.4 Ops/sec
JSON 793421.8 Ops/sec
Cursed Proxy 15320952.0 Ops/sec
Script Preparation code:
Tests:
  • structuredClone()

  • spread syntax

  • Object.assign

  • Object.fromEntries

  • JSON

  • Cursed Proxy