Run details:
Mozilla/5.0 (X11; Linux x86_64; rv:126.0) Gecko/20100101 Firefox/126.0
Firefox 126
Linux
Desktop
6 months ago
Test name Executions per second
structuredClone() 225796.5 Ops/sec
spread syntax 4997417.0 Ops/sec
Object.assign 18926578.0 Ops/sec
Object.fromEntries 994790.4 Ops/sec
JSON 754497.8 Ops/sec
Cursed Proxy 3451422.8 Ops/sec
Script Preparation code:
Tests:
  • structuredClone()

  • spread syntax

  • Object.assign

  • Object.fromEntries

  • JSON

  • Cursed Proxy