Run details:
Mozilla/5.0 (iPhone; CPU iPhone OS 18_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/18.1 Mobile/22B83 Safari/604.1
Mobile Safari 18
iOS 18.1
Mobile
17 days ago
Test name Executions per second
structuredClone() 553857.3 Ops/sec
spread syntax 11380878.0 Ops/sec
Object.assign 3445183.8 Ops/sec
Object.fromEntries 1261218.1 Ops/sec
JSON 1148405.9 Ops/sec
Cursed Proxy 13706777.0 Ops/sec
Script Preparation code:
Tests:
  • structuredClone()

  • spread syntax

  • Object.assign

  • Object.fromEntries

  • JSON

  • Cursed Proxy