Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:123.0) Gecko/20100101 Firefox/123.0
Firefox 123
Mac OS X 10.15
Desktop
8 months ago
Test name Executions per second
structuredClone() 317509.6 Ops/sec
spread syntax 3403020.0 Ops/sec
Object.assign 11495085.0 Ops/sec
Object.fromEntries 583908.5 Ops/sec
JSON 483887.0 Ops/sec
Cursed Proxy 2201489.0 Ops/sec
Script Preparation code:
Tests:
  • structuredClone()

  • spread syntax

  • Object.assign

  • Object.fromEntries

  • JSON

  • Cursed Proxy