Run details:
Mozilla/5.0 (iPhone; CPU iPhone OS 16_6 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) FxiOS/115.1 Mobile/15E148 Safari/605.1.15
Mobile Safari 16
iOS 16.6
Mobile
one year ago
Test name Executions per second
Iteration with blank object 1914487.5 Ops/sec
Object.assign with blank object 4250251.0 Ops/sec
Iteration with created object 1468575.0 Ops/sec
Object.assign with created object 2563194.2 Ops/sec
Iteration with blank object and prototype 727823.4 Ops/sec
Object.assign with blank object and prototype 862485.8 Ops/sec
Iteration with blank object and prototype prop 612203.0 Ops/sec
Object.assign with blank object and prototype prop 664623.2 Ops/sec
Script Preparation code:
Tests:
  • Iteration with blank object

  • Object.assign with blank object

  • Iteration with created object

  • Object.assign with created object

  • Iteration with blank object and prototype

  • Object.assign with blank object and prototype

  • Iteration with blank object and prototype prop

  • Object.assign with blank object and prototype prop


;