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 - 100000 items 40.0 Ops/sec
Array literal - 100000 items 27.6 Ops/sec
Array literal (assign by index) - 100000 items 34.0 Ops/sec
Array literal (explicit length) - 100000 items 35.5 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


;