Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/116.0
Firefox 116
Windows
Desktop
one year ago
Test name Executions per second
structuredClone() 584219.1 Ops/sec
spread syntax 4953451.0 Ops/sec
Object.assign 5139927.5 Ops/sec
Object.fromEntries 1172497.4 Ops/sec
JSON 825874.4 Ops/sec
Cursed Proxy 5860048.5 Ops/sec
Script Preparation code:
Tests:
  • structuredClone()

  • spread syntax

  • Object.assign

  • Object.fromEntries

  • JSON

  • Cursed Proxy