Run details:
Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/115.0
Firefox 115
Linux
Desktop
one year ago
Test name Executions per second
structuredClone() 223389.7 Ops/sec
spread syntax 3951364.5 Ops/sec
Object.assign 3970898.0 Ops/sec
Object.fromEntries 889754.9 Ops/sec
JSON 657063.5 Ops/sec
Cursed Proxy 4594037.0 Ops/sec
Script Preparation code:
Tests:
  • structuredClone()

  • spread syntax

  • Object.assign

  • Object.fromEntries

  • JSON

  • Cursed Proxy