Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:109.0) Gecko/20100101 Firefox/119.0
Firefox 119
Mac OS X 10.15
Desktop
one year ago
Test name Executions per second
structuredClone() 663816.7 Ops/sec
spread syntax 5472389.5 Ops/sec
Object.assign 5229208.0 Ops/sec
Object.fromEntries 1169858.5 Ops/sec
JSON 949865.9 Ops/sec
Cursed Proxy 4381610.5 Ops/sec
Script Preparation code:
Tests:
  • structuredClone()

  • spread syntax

  • Object.assign

  • Object.fromEntries

  • JSON

  • Cursed Proxy