Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:72.0) Gecko/20100101 Firefox/72.0
Firefox 72
Mac OS X 10.15
Desktop
4 years ago
Test name Executions per second
Iteration with blank object 16853192.0 Ops/sec
Object.assign with blank object 4741288.5 Ops/sec
Iteration with created object 17946056.0 Ops/sec
Object.assign with created object 5912600.0 Ops/sec
Iteration with blank object and prototype 5608727.0 Ops/sec
Object.assign with blank object and prototype 3461991.2 Ops/sec
Iteration with blank object and prototype prop 6119875.0 Ops/sec
Object.assign with blank object and prototype prop 3286556.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