Run details:
Mozilla/5.0 (X11; Linux x86_64; rv:104.0) Gecko/20100101 Firefox/104.0
Firefox 104
Linux
Desktop
2 years ago
Test name Executions per second
Array constructor - 10 items 10780809.0 Ops/sec
Array literal - 10 items 7621364.0 Ops/sec
Array literal (assign by index) - 10 items 8671698.0 Ops/sec
Array literal (explicit length) - 10 items 7096985.5 Ops/sec
Tests:
  • Array constructor - 10 items

  • Array literal - 10 items

  • Array literal (assign by index) - 10 items

  • Array literal (explicit length) - 10 items


;