Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:68.0) Gecko/20100101 Firefox/68.0
Firefox 68
Mac OS X 10.14
Desktop
5 years ago
Test name Executions per second
Push item to an array 103472.0 Ops/sec
Append an item by spread 163.6 Ops/sec
Direct assign an item to an initialized array 91226.3 Ops/sec
Script Preparation code:
Tests:
  • Push item to an array

  • Append an item by spread

  • Direct assign an item to an initialized array