Run details:
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/119.0
Firefox 119
Ubuntu
Desktop
one year ago
Test name Executions per second
structuredClone() 183742.6 Ops/sec
spread syntax 2006420.4 Ops/sec
Object.assign 2232380.0 Ops/sec
Object.fromEntries 430205.0 Ops/sec
JSON 408120.2 Ops/sec
Cursed Proxy 2172557.8 Ops/sec
Script Preparation code:
Tests:
  • structuredClone()

  • spread syntax

  • Object.assign

  • Object.fromEntries

  • JSON

  • Cursed Proxy