Run details:
Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/52.0.2743.116 Safari/537.36
Chrome 52
Windows 7
Other
8 years ago
Test name Executions per second
Array constructor - 100000 items 317075.3 Ops/sec
Array literal - 100000 items 347895.4 Ops/sec
Array literal (assign by index) - 100000 items 370789.2 Ops/sec
Array literal (explicit length) - 100000 items 318761.2 Ops/sec
Script Preparation code:
Tests:
  • Array constructor - 100000 items

  • Array literal - 100000 items

  • Array literal (assign by index) - 100000 items

  • Array literal (explicit length) - 100000 items


;