Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:45.0) Gecko/20100101 Firefox/45.0
Firefox 45
Mac OS X 10.12
Other
8 years ago
Test name Executions per second
Array constructor - 1000 items 196646.1 Ops/sec
Array literal - 1000 items 212894.5 Ops/sec
Array literal (assign by index) - 1000 items 229982.0 Ops/sec
Array literal (explicit length) - 1000 items 220902.7 Ops/sec
Tests:
  • Array constructor - 1000 items

  • Array literal - 1000 items

  • Array literal (assign by index) - 1000 items

  • Array literal (explicit length) - 1000 items