Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:109.0) Gecko/20100101 Firefox/117.0
Firefox 117
Mac OS X 10.15
Desktop
one year ago
Test name Executions per second
Push item to an array 194618.2 Ops/sec
Append an item by spread 234.9 Ops/sec
Direct assign an item to an initialized array 281840.6 Ops/sec
Direct assign an item usign Array.from 78561.2 Ops/sec
Script Preparation code:
Tests:
  • Push item to an array

  • Append an item by spread

  • Direct assign an item to an initialized array

  • Direct assign an item usign Array.from