Run details:
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/111.0
Firefox 111
Ubuntu
Desktop
one year ago
Test name Executions per second
structuredClone() 119071.6 Ops/sec
spread syntax 1171346.5 Ops/sec
Object.assign 1060179.5 Ops/sec
Object.fromEntries 253672.4 Ops/sec
JSON 202179.4 Ops/sec
Cursed Proxy 1478537.9 Ops/sec
Script Preparation code:
Tests:
  • structuredClone()

  • spread syntax

  • Object.assign

  • Object.fromEntries

  • JSON

  • Cursed Proxy