Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:106.0) Gecko/20100101 Firefox/106.0
Firefox 106
Windows
Desktop
2 years ago
Test name Executions per second
Iteration with blank object 1095226.6 Ops/sec
Object.assign with blank object 1756584.6 Ops/sec
Iteration with created object 1047694.8 Ops/sec
Object.assign with created object 2771499.5 Ops/sec
Iteration with blank object and prototype 940722.9 Ops/sec
Object.assign with blank object and prototype 2159860.8 Ops/sec
Iteration with blank object and prototype prop 953002.4 Ops/sec
Object.assign with blank object and prototype prop 2196449.0 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