Run details:
Mozilla/5.0 (iPhone; CPU iPhone OS 16_0 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.0 Mobile/15E148 Safari/604.1
Mobile Safari 16
iOS 16.0
Mobile
one year ago
Test name Executions per second
structuredClone() 234073.3 Ops/sec
spread syntax 1667001.5 Ops/sec
Object.assign 1322590.2 Ops/sec
Object.fromEntries 488072.0 Ops/sec
JSON 277279.3 Ops/sec
Cursed Proxy 3805248.5 Ops/sec
Script Preparation code:
Tests:
  • structuredClone()

  • spread syntax

  • Object.assign

  • Object.fromEntries

  • JSON

  • Cursed Proxy