Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/116.0.0.0 Safari/537.36
Chrome 116
Windows
Desktop
one year ago
Test name Executions per second
structuredClone() 220178.6 Ops/sec
spread syntax 11120441.0 Ops/sec
Object.assign 2490693.5 Ops/sec
Object.fromEntries 350467.0 Ops/sec
JSON 409548.7 Ops/sec
Cursed Proxy 7743443.5 Ops/sec
Script Preparation code:
Tests:
  • structuredClone()

  • spread syntax

  • Object.assign

  • Object.fromEntries

  • JSON

  • Cursed Proxy