Run details:
Mozilla/5.0 (X11; Linux x86_64; rv:112.0) Gecko/20100101 Firefox/112.0
Firefox 112
Linux
Desktop
8 months ago
Test name Executions per second
structuredClone() 483708.2 Ops/sec
spread syntax 4712056.0 Ops/sec
Object.assign 15304931.0 Ops/sec
Object.fromEntries 902616.8 Ops/sec
JSON 651961.3 Ops/sec
Cursed Proxy 2563376.2 Ops/sec
Script Preparation code:
Tests:
  • structuredClone()

  • spread syntax

  • Object.assign

  • Object.fromEntries

  • JSON

  • Cursed Proxy