Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/117.0.0.0 Safari/537.36 OPR/103.0.0.0
Opera 103
Mac OS X 10.15.7
Desktop
one year ago
Test name Executions per second
structuredClone() 536763.1 Ops/sec
spread syntax 17074934.0 Ops/sec
Object.assign 3281652.5 Ops/sec
Object.fromEntries 614949.0 Ops/sec
JSON 868801.8 Ops/sec
Cursed Proxy 13592783.0 Ops/sec
Script Preparation code:
Tests:
  • structuredClone()

  • spread syntax

  • Object.assign

  • Object.fromEntries

  • JSON

  • Cursed Proxy