Run details:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36
Chrome 131
Linux
Desktop
8 days ago
Test name Executions per second
structuredClone() 418754.0 Ops/sec
spread syntax 12833343.0 Ops/sec
Object.assign 3111254.2 Ops/sec
Object.fromEntries 804609.3 Ops/sec
JSON 903189.1 Ops/sec
Cursed Proxy 13706546.0 Ops/sec
Script Preparation code:
Tests:
  • structuredClone()

  • spread syntax

  • Object.assign

  • Object.fromEntries

  • JSON

  • Cursed Proxy