Run details:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36
Chrome 120
Linux
Desktop
one year ago
Test name Executions per second
structuredClone() 102055.4 Ops/sec
spread syntax 5497310.5 Ops/sec
Object.assign 1076969.4 Ops/sec
Object.fromEntries 203008.8 Ops/sec
JSON 218857.6 Ops/sec
Cursed Proxy 4200691.0 Ops/sec
Script Preparation code:
Tests:
  • structuredClone()

  • spread syntax

  • Object.assign

  • Object.fromEntries

  • JSON

  • Cursed Proxy