Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/128.0.0.0 Safari/537.36
Chrome 128
Mac OS X 10.15.7
Desktop
2 months ago
Test name Executions per second
structuredClone() 522040.8 Ops/sec
spread syntax 21951246.0 Ops/sec
Object.assign 4579542.0 Ops/sec
Object.fromEntries 1183761.8 Ops/sec
JSON 1243007.5 Ops/sec
Cursed Proxy 17902422.0 Ops/sec
Script Preparation code:
Tests:
  • structuredClone()

  • spread syntax

  • Object.assign

  • Object.fromEntries

  • JSON

  • Cursed Proxy