Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Safari/537.36
Chrome 130
Windows
Desktop
5 days ago
Test name Executions per second
structuredClone() 480907.0 Ops/sec
spread syntax 13510788.0 Ops/sec
Object.assign 3724411.8 Ops/sec
Object.fromEntries 1016888.2 Ops/sec
JSON 1166573.8 Ops/sec
Cursed Proxy 14077827.0 Ops/sec
Script Preparation code:
Tests:
  • structuredClone()

  • spread syntax

  • Object.assign

  • Object.fromEntries

  • JSON

  • Cursed Proxy