Run details:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/116.0.0.0 Safari/537.36
Chrome 116
Linux
Desktop
one year ago
Test name Executions per second
Push item to an array 5255.2 Ops/sec
Append an item by spread 751.2 Ops/sec
Direct assign an item to an initialized array 5384.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