Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12) AppleWebKit/602.1.50 (KHTML, like Gecko) Version/10.0 Safari/602.1.50
Safari 10
Mac OS X 10.12
Other
8 years ago
Test name Executions per second
Array constructor - 1000 items 428629.2 Ops/sec
Array literal - 1000 items 255101.6 Ops/sec
Array literal (assign by index) - 1000 items 255348.8 Ops/sec
Array literal (explicit length) - 1000 items 310050.1 Ops/sec
Tests:
  • Array constructor - 1000 items

  • Array literal - 1000 items

  • Array literal (assign by index) - 1000 items

  • Array literal (explicit length) - 1000 items