Run details:
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101 Firefox/52.0
Firefox 52
Windows 7
Other
7 years ago
Test name Executions per second
Decide length in `new` 495131.1 Ops/sec
Decide length with .length 340783.5 Ops/sec
Push items separately 357383.1 Ops/sec
Assign items separately 341289.4 Ops/sec
Script Preparation code:
Tests:
  • Decide length in `new`

  • Decide length with .length

  • Push items separately

  • Assign items separately